DeepInsight-AI / DeepBI

LLM based data scientist, AI native data application. AI-driven infinite thinking redefines BI.
https://www.deepbi.com/
MIT License
2.39k stars 411 forks source link

openai被强制要求开启代理 #152

Closed stepkim1 closed 1 month ago

stepkim1 commented 2 months ago

openai设置apikey的时候强制要求配置代理地址, 海外机器不需要强制代理的话需要怎么跳过这个验证呢

wangshiyouyang commented 1 month ago

可以修改 安装后的 client/dist/llm.json 配置

将: "OpenAI": { "OpenaiApiKey": "", "HttpProxyHost": "", "HttpProxyPort": "", "ApiHost": "", "required": [ "OpenaiApiKey", "HttpProxyHost" // 去掉这行 },

修改为 "OpenAI": { "OpenaiApiKey": "", "HttpProxyHost": "", "HttpProxyPort": "", "ApiHost": "", "required": [ "OpenaiApiKey" ] },