langchain报的错误,OpenAI已不支持模型text-davinci-003

智增增api8个月前更新 zhizengzeng
410 0

注意langchain里面的默认模型text-davinci-003,openai已经废弃了,所以可能会报错,需要将模型名字修改为:gpt-3.5-turbo-instruct

{“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”}}

langchain报的错误,OpenAI已不支持模型text-davinci-003

解决办法:

需要指定模型名字model=’gpt-3.5-turbo-instruct’

llm = OpenAI(temperature=0.9,model=’gpt-3.5-turbo-instruct’)

 

© 版权声明

相关文章

暂无评论

暂无评论...