developersdigest / Get_Started_with_LangChain_in_Nodejs

43 stars 15 forks source link

the model `text-davinci-003` has been deprecated #2

Open jorgexxx opened 6 months ago

jorgexxx commented 6 months ago

the code fails with error: { message: 'The model text-davinci-003 has been deprecated, learn more here: https://platform.openai.com/docs/deprecations', type: 'invalid_request_error', param: null, code: 'model_not_found' }

  const res = await chain.call({
    query: question,
  });
bao-ho commented 5 months ago

Have you tried using a newer model (like gpt-3.5-turbo)? https://js.langchain.com/docs/integrations/llms/openai