"warning":"This model version is deprecated. Migrate before January 4, 2024
Problem
Describe the bug Im using v3.3.0 attempting to make a call with text-davinci-003 [code block] I get this sort of return: {"warning":"This model version is deprecated. Migrate before January 4, 2024 to avoid disruption of service. Learn more https://platform.openai.com/docs/deprecations"...... I go to my account and try then use - gpt-3.5-turbo-instruct for the model, and promptly get a response of Model does not exist. The information provided in the blog posts, says this is a drop in replacement. I'm kinda stuck, and I don't believe an API call should return a warning as the object and a 200 response. To Reproduce 1. Create a Node application 2. Add the code to call the API 3. Make the call and watch the result Code snippets [code block] ``` OS Windows 11 Node version Node 18.12.1 Library version v3.3.0
Error Output
error occurred during OpenAI request: ', parsed);
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: "warning":"This model version is deprecated. Migrate before January 4, 2024
It seems completion is deprecated, and they recommend using chat completion. If you change the code to use `createChatCompletion` and change the model to the one they recommend here (gpt-3.5-turbo-instruct): you will get an error that the model does not exist. You can check that by calling the `https://api.openai.com/v1/models`. What I did was change the `createComplation` to `createChatComplet
Trust Score
2 verifications
- 1
It seems completion is deprecated, and they recommend using chat completion.
It seems completion is deprecated, and they recommend using chat completion.
- 2
If you change the code to use `createChatCompletion` and change the model to the
If you change the code to use `createChatCompletion` and change the model to the one they recommend here (gpt-3.5-turbo-instruct):
- 3
you will get an error that the model does not exist. You can check that by calli
you will get an error that the model does not exist. You can check that by calling the `https://api.openai.com/v1/models`.
- 4
What I did was change the `createComplation` to `createChatCompletion`.
What I did was change the `createComplation` to `createChatCompletion`.
Validation
Resolved in openai/openai-node GitHub issue #208. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep