Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Which GPT4 model to use in Open AI integration to avoid getting this error:
This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?: {"status":400,"response_body":"{\"message\":\"This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?\",\"body\":{\"error\":{\"message\":\"This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?\",\"type\":\"invalid_request_error\",\"param\":\"model\",\"code\":null}},\"return_value\":\"\"}","verb":"POST","url":"https://flow-connectors.sfe.shopifyinternal.com/actions","request_body":"{\"shop_id\":50509283527,\"shopify_domain\":\"jeans4you-shop.myshopify.com\",\"properties\":{\"prompt\":\"Given the review text, evaluate its content and identify the main topic of the review. The review topic should be one of the predefined categories: product-discrepancies, delivery-issues, personal-preferences, too-small, or too-big.\\n\\nReview: This jacket is 3 sizes smaller than I ordered, but say 2 sizes bigger than what I ordered. SAD.\\n\\nReturn the most relevant review topic.\",\"model\":\"gpt-4\",\"suffix\":\"\",\"max_tokens\":256,\"temperature\":0.7,\"top_p\":1.0,\"stop\":\"\",\"presence_penalty\":0.0,\"frequency_penalty\":0.0,\"logit_bias\":\"{\\n \\\"delivery-issues\\\": 1.0,\\n \\\"product-discrepancies\\\": 1.0,\\n \\\"personal-preferences\\\": 1.0,\\n \\\"too-small\\\": 1.0,\\n \\\"too-big\\\": 1.0\\n}\\n\"},\"action_run_id\":\"f47dc9323d37dd3e1ca6ee43462606e759411ec1\",\"action_definition_id\":\"Generate text\"}"}
GPT-4 can't be used with the API that Flow uses for that action.
Are you going to make it available in the future?
Likely, but we don't have this planned currently.
For seamless OpenAI integration, GPT-4 Turbo is the preferred model. It delivers the same capabilities as GPT-4 but with improved speed and cost-effectiveness. In fact, we used this model in our AI Chatbot app, Carty.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024