Closed leoterry-ulrica closed 5 months ago
遇到了相同的错误。我使用one-api连接本地部署的xinference
@c121914yu 是不是跟v4.7-alpha3这个修复有关:简易模式中,单纯选择知识库,仍保持旧逻辑,不调用工具。
遇到了相同的错误。我使用one-api连接本地部署的xinference
你解决了吗?
遇到了相同的错误。我使用one-api连接本地部署的xinference
你解决了吗?
未解决,我正在等待正式版镜像,等正式版发布了我再测试
根据我的测试,这个错误与packages\service\core\workflow\dispatch\agent\runTool\toolChoice.ts中第110行左右调用模型时,设置stream=True有关,我使用的Xinference不支持在设置Tools的同时设置stream=True
根据我的测试,这个错误与packages\service\core\workflow\dispatch\agent\runTool\toolChoice.ts中第110行左右调用模型时,设置stream=True有关,我使用的Xinference不支持在设置Tools的同时设置stream=True
现在解决办法是改fastgpt代码,还是让xinference修改?
@c121914yu 请问如何修改?
Xinference 目前使用 tools 的时候不能支持 stream。
Xinference 目前使用 tools 的时候不能支持 stream。
那有什么解决方案吗?
我使用的是xinference v0.9.3,fastgpt 当前的最新main分支 让fastgpt兼容xinference的tools call的方法是设置stream=False,并且在工具调用返回的请求体中设置一个空的content。参见https://github.com/zhanghx0905/FastGPT/commit/2d21659be106cb56877fd7e646d3652f080071c6
不知道为什么,虽然模型结果正确返回了,fastgpt的对话框里没有显示出结果。
虽然模型结果正确返回了,fastgpt的对话框里没有显示出结果。
那必然是改得模型。直接做一个伪流接口。
虽然模型结果正确返回了,fastgpt的对话框里没有显示出结果。
那必然是改得模型。直接做一个伪流接口。
@qinxuye 这个能处理的吗?
我也是这个问题,有谁解决了吗
有人解决了吗
同样遇到了这个问题。
Xinference support: https://github.com/xorbitsai/inference/issues/1208
例行检查
你的版本
问题描述 OneAPI-v0.6.3-alpha.1,FastGPT-v4.7版本。 在应用中一旦挂上知识库或工具,chat的时候会报以下错误(如果把知识库或工具拿掉,那可以正常chat):
相关截图