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
15.99k stars 3.71k forks source link

curl 没问题,但是添加到渠道会报错 ,为什么呢 #1582

Open tomridder opened 2 days ago

tomridder commented 2 days ago

curl --request POST \ --url http://154.40.47.16:8100/v1/chat/completions \ --header 'Authorization: Bearer 2d6e3049-db21-4e10-adee-74822006a827' \ --header 'content-type: application/json' \ --data '{ "model": "gpt-4", "messages": [ { "role": "user", "content": "你是谁" } ] }'

这个是curl的 命令,可以正常返回结果

但是在渠道填入就报错 ,是不是不支持http,只支持https的

QAbot-zh commented 2 days ago

不会,我也有渠道是 http + ip 的形式,能正常使用的,你看看有报什么错?