lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Qwen / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS/Plugins/Artifacts). One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
46.77k stars 10.31k forks source link

[Request] 如何禁用默认的OPENAI #1748

Closed itdsee closed 7 months ago

itdsee commented 8 months ago

🥰 需求描述

例如只想代理MOONSHOT和智谱AI服务,点开模型选择后 依旧是OPENAI,而且选择OAI下的模型还需要额外提示输入OAI的key

docker run -d -p 3210:3210 -e DEFAULT_AGENT_CONFIG='model=moonshot-v1-8k;provider=moonshot' -e CUSTOM_MODELS=-all,+moonshot-v1-8k,+moonshot-v1-32k,+moonshot-v1-128k,+glm-4,+glm-4v,+glm-3-turbo -e MOONSHOT_API_KEY=sk-xxx -e ZHIPU_API_KEY=xxxx --name lobe-chat lobehub/lobe-chat

模型选择

🧐 解决方案

禁用默认的OAI

📝 补充信息

No response

lobehubbot commented 8 months ago

👀 @itdsee

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 8 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

For example, if you only want to represent MOONSHOT and Zhipu AI services, after clicking on the model selection, it will still be OPENAI, and when selecting a model under OAI, you need to be prompted to enter the OAI key.

docker run -d -p 3210:3210 -e DEFAULT_AGENT_CONFIG='model=moonshot-v1-8k;provider=moonshot' -e CUSTOM_MODELS=-all,+moonshot-v1-8k,+moonshot-v1-32k,+moonshot- v1-128k,+glm-4,+glm-4v,+glm-3-turbo -e MOONSHOT_API_KEY=sk-xxx -e ZHIPU_API_KEY=xxxx --name lobe-chat lobehub/lobe-chat

Model selection

🧐 Solution

Disable default OAI

📝 Supplementary information

No response

lobehubbot commented 7 months ago

✅ @itdsee

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 7 months ago

:tada: This issue has been resolved in version 0.147.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: