songquanpeng / one-api

OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
https://openai.justsong.cn/
MIT License
18.54k stars 4.18k forks source link

使用本机one API把千帆模型接入到本机fast GPT,操作fast GPT对话时,one API无法获得请求,提示网络连接错误 #871

Open littlemousehao opened 9 months ago

littlemousehao commented 9 months ago

例行检查

问题描述 使用本机one API把千问模型接入到本机fast GPT,操作fast GPT对话时,one API无法获得请求,提示网络连接错误。 复现步骤 one API端口设置为13000,并且添加完渠道和令牌,并将fast GPT端口设置为3000、OPENAI_BASE_URL=http://localhost:13000/v1,操作fast GPT对话时,就提示网络连接错误,one API无法接收请求。 预期结果 one API正常接收fast GPT请求,并作为中转将提示词发送到千问。 相关截图 如果没有的话,请删除此节。

suwubee commented 9 months ago

建议用curl在本机跑下,或者获取下输入输出的数据,oneapi是支持fastgpt的api的,从描述中看不出是oneapi的问题,更多可能是你网络的问题。

littlemousehao commented 9 months ago

我都是安装在一个电脑端啊,用localhost:13000可以访问one API,用localhost:3000可以访问fast GPT,该配置的地方都配置了,但操作fast GPT对话时就是提示网络错误。

littlemousehao commented 9 months ago

同时one API对千帆模型无法测试连接

songquanpeng commented 9 months ago

最好能贴出来日志,先看一下 one api 有没有获取到对应的请求

oolott commented 6 months ago

one API需要连外网 而且要翻墙