FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
例行检查
你的版本
问题描述, 日志截图
使用fastgpt制作一个智能体,并且其中使用了工具调用,且模型选择的是不支持函数调用的qwen2。发布这个智能体的API,使用Python的openai库进行非流式请求,响应内容会以“0: ”开始。
复现步骤
我使用的代码是
使用环境变量OPENAI_BASE_URL、OPENAI_API_KEY传入BaseURL和apikey。
预期结果
响应结果不是以“0: ”开头,就正常文本。
相关截图