langchain报的错误,OpenAI已不支持模型text-davinci-003
注意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”}}

解决办法:
需要指定模型名字model=’gpt-3.5-turbo-instruct’
llm = OpenAI(temperature=0.9,model=’gpt-3.5-turbo-instruct’)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...