Flowise [BUG] 无法从聊天模型响应中解析函数参数

lrl1mhuk  于 6个月前  发布在  其他
关注(0)|答案(4)|浏览(104)
[langchain-ai/langchainjs#2322](https://github.com/langchain-ai/langchainjs/issues/2322)
flowise-flowise-1 | 2023-11-16 17:30:22 [ERROR]: [server]: 错误:从聊天模型响应中解析函数参数失败。文本: "{
 flowise-flowise-1 | "fromEmail": "**example**",
 flowise-flowise-1 | "toEmail": "**example**",
 flowise-flowise-1 | "subject": "**example**",
 flowise-flowise-1 | "content": "**example**". 语法错误:意外的JSON输入结束
 flowise-flowise-1 | 错误:从聊天模型响应中解析函数参数失败。文本: "{
 flowise-flowise-1 | "fromEmail": "**example**",
 flowise-flowise-1 | "toEmail": "**example**",
 flowise-flowise-1 | "subject": "**example**",
 flowise-flowise-1 | "content": "**example**". 语法错误:意外的JSON输入结束
 flowise-flowise-1 | at parseOutput (/usr/src/packages/node_modules/langchain/dist/agents/openai/index.cjs:32:19)
 flowise-flowise-1 | at OpenAIAgent.plan (/usr/src/packages/node_modules/langchain/dist/agents/openai/index.cjs:176:16)
 flowise-flowise-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
 flowise-flowise-1 | at async AgentExecutor._call (/usr/src/packages/node_modules/langchain/dist/agents/executor.cjs:144:26)
 flowise-flowise-1 | at async AgentExecutor.call (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:104:28)
 flowise-flowise-1 | at async AgentExecutor.run (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:69:30)
 flowise-flowise-1 | at async OpenAIFunctionAgent_Agents.run (/usr/src/packages/packages/components/dist/nodes/agents/OpenAIFunctionAgent/OpenAIFunctionAgent.js:77:28)
 flowise-flowise-1 | at async App.processPrediction (/usr/src/packages/packages/server/dist/index.js:1212:19)
 flowise-flowise-1 | at async /usr/src/packages/packages/server/dist/index.js:915:13
 flowise-flowise-1 | 2023-11-16 17:31:29 [ERROR]: [server]: 错误:请求超时。
 flowise-flowise-1 | TimeoutError:请求超时。
 flowise-flowise-1 | at wrapOpenAIClientError (/usr/src/packages/node_modules/langchain/dist/util/openai.cjs:9:17)
 flowise-flowise-1 | at /usr/src/packages/node_modules/langchain/dist/chat_models/openai.cjs:521:69
 flowise-flowise-1 | at process.processTicksAndRejections (node:internal/process
jdgnovmf

jdgnovmf1#

你在使用OpenAI的功能代理吗?

omjgkv6w

omjgkv6w2#

你是否在使用OpenAI的功能代理?

是的

pw136qt2

pw136qt23#

你能做一步一步的指南,这样我们就可以复制这个问题吗?

pvabu6sv

pvabu6sv4#

你能做一步一步的指南,以便我们可以复制这个问题吗?
我创建了以下聊天流程:

  1. 打开AI功能代理(与对话检索代理相同)
  2. 使用检索工具(自定义工具)从chroma现有的upsert中查询相关数据。
  3. 使用send_mailgrid(自定义工具)。
    但是似乎OpenAI聊天模型的响应json无效。

相关问题