Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to v2 Assistant API required to use gpt-4o model #21

Open
paulz opened this issue Jun 20, 2024 · 0 comments
Open

Migration to v2 Assistant API required to use gpt-4o model #21

paulz opened this issue Jun 20, 2024 · 0 comments

Comments

@paulz
Copy link
Member

paulz commented Jun 20, 2024

Migration Guide

https://github.com/thisisartium/apex/actions/runs/9591944615/job/26449731145#step:9:123 fails to get response from LLM:

The requested model 'gpt-4o' cannot be used with the Assistants API in v1. Follow the migration guide to upgrade to v2: https://platform.openai.com/docs/assistants/migration.

See server log output:

Error: ** (MatchError) no match of right hand side value: {:ok, #Req.Response<status: 400, headers: %{"alt-svc" => ["h3=":443"; ma=86400"], "cf-cache-status" => ["DYNAMIC"], "cf-ray" => ["896943aeeca107c7-IAD"], "connection" => ["keep-alive"], "content-type" => ["application/json"], "date" => ["Thu, 20 Jun 2024 05:12:31 GMT"], "openai-organization" => ["artium-ii"], "openai-processing-ms" => ["82"], "openai-version" => ["2020-10-01"], "server" => ["cloudflare"], "set-cookie" => ["__cf_bm=a.OLhIe2iGLoLehECnrfs7gBkQ9wRyyQgLbRit46Tbc-1718860351-1.0.1.1-OEBpPR5iwzrkgj9CLVNOeN8kF_4xQ279EddCV6DtUkLmGZMl9msI0lsiAPB6LonMoAOZc43cf7Sdkq.UxMNXiw; path=/; expires=Thu, 20-Jun-24 05:42:31 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=lWZ2mQG9wRHOJrPbcGQhftszns3tEHLfXj8R0JKKSYo-1718860351978-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None"], "strict-transport-security" => ["max-age=15724800; includeSubDomains"], "x-request-id" => ["req_049226b6d1ae6e7aa20427106ae448db"]}, body: %{"error" => %{"code" => "unsupported_model", "message" => "The requested model 'gpt-4o' cannot be used with the Assistants API in v1. Follow the migration guide to upgrade to v2: https://platform.openai.com/docs/assistants/migration.", "param" => "model", "type" => "invalid_request_error"}}, trailers: %{}, private: %{}, ...>}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant