问题1:Langchain在使用OpenAIEmbeddings创建向量空间时,可能会有报错:
openai.AuthenticationError: Error code: 401 -
{'error': {'message': 'Incorrect API key provided: sk-4bip3***************************************8r3j.
You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
问题2:Langchain中使用bind_tools方法绑定工具tools时,或Agent创建代理create_react_agent时,无效果时
经排查我使用的是代理的GPT,不知道什么原因有些方法没有达到预定效果,改成“通义千问”或其他别的模型后就可以了
(又浪费一天时间)
1080

被折叠的 条评论
为什么被折叠?



