lobehub / lobe-chat

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

如何通过配置环境变量让lobchat容器第一次启动打开的时候只能看到智谱AI的模型,看不到其他模型 #2831

Closed zhangleijun111 closed 4 months ago

zhangleijun111 commented 4 months ago

📦 部署环境

📌 软件版本

7.9

💻 系统环境

🌐 浏览器

🐛 问题描述

如何通过配置环境变量让lobchat容器第一次启动打开的时候只能看到智谱AI的模型,看不到其他模型,像图片上这个样子 1717991239032

📷 复现步骤

如何通过配置环境变量让lobchat容器第一次启动打开的时候只能看到智谱AI的模型,看不到其他模型 1717991239032

🚦 期望结果

如何通过配置环境变量让lobchat容器第一次启动打开的时候只能看到智谱AI的模型,看不到其他模型 1717991239032

📝 补充信息

No response

lobehubbot commented 4 months ago

👀 @zhangleijun111

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 4 months ago

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


📦 Deployment environment

📌 Software version

7.9

💻 System environment

🌐 Browser

-[X]Chrome

🐛 Problem description

How to configure environment variables so that when the lobchat container is started for the first time, only the model of Zhipu AI can be seen, and no other models can be seen, like this in the picture 1717991239032

📷 Steps to reproduce

How to configure environment variables so that when the lobchat container is started for the first time, only the model of Zhipu AI can be seen, and no other models can be seen. 1717991239032

🚦 Expected results

How to configure environment variables so that when the lobchat container is started for the first time, only the model of Zhipu AI can be seen, and no other models can be seen. 1717991239032

📝 Supplementary information

No response

sxjeru commented 4 months ago

参考:https://lobehub.com/zh/docs/self-hosting/environment-variables/model-provider 可尝试添加下述 env。

ENABLED_OPENAI=0 ENABLED_OLLAMA=0

lobehubbot commented 4 months ago

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


Reference: https://lobehub.com/zh/docs/self-hosting/environment-variables/model-provider You can try adding the following env.

ENABLED_OPENAI=0 ENABLED_OLLAMA=0

zhangleijun111 commented 4 months ago

Bot检测到问题主体的语言不是英语,自动翻译它。👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

参考:https://lobe hub . com/zh/docs/self-hosting/environment-variables/model-provider您可以尝试添加以下env。

ENABLED_OPENAI=0ENABLED_OLLAMA=0

是否有环境变量吧智谱AI打开并且把KEY默认填入

lobehubbot commented 4 months ago

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


Bot detects that the language of the question subject is not English and automatically translates it. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Reference: [https://lobe hub . com/zh/docs/self-hosting/environment-variables/model-provider](https://lobehub.com/zh/docs/self-hosting/environment-variables/ model-provider) you can try adding the following env.

ENABLED_OPENAI=0ENABLED_OLLAMA=0

Is there any environment variable? Open Zhipu AI and fill in the KEY by default.

sxjeru commented 4 months ago

是否有环境变量吧智谱AI打开并且把KEY默认填入

ZHIPU_API_KEY=''

https://lobehub.com/zh/docs/self-hosting/environment-variables/model-provider#zhipu-api-key

lobehubbot commented 4 months ago

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


Is there any environment variable? Open Zhipu AI and fill in the KEY by default.

ZHIPU_API_KEY=''

https://lobehub.com/zh/docs/self-hosting/environment-variables/model-provider#zhipu-api-key

zhangleijun111 commented 4 months ago

机器人程序检测到问题主体的语言不是英语,自动翻译它。👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

有什么环境变量吗?打开智普AI,默认填钥匙。

ZHIPU_API_KEY= ' '

https://lobe hub . com/zh/docs/self-hosting/environment-variables/model-provider # zhipu-API-key

没有办法默认打开只能通过配置环境变量输入密钥操作是嘛,开关还是需要手动的???

lobehubbot commented 4 months ago

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


The robot program detects that the language of the subject of the question is not English and automatically translates it. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Are there any environment variables? Open Zhipu AI and fill in the key by default.

ZHIPU_API_KEY= ' '

[https://lobe hub . com/zh/docs/self-hosting/environment-variables/model-provider # zhipu-API-key](https://lobehub.com/zh/docs/self-hosting/ environment-variables/model-provider#zhipu-api-key)

There is no way to turn it on by default. You can only enter the key operation by configuring environment variables. Does the switch still need to be done manually? ? ?

sxjeru commented 4 months ago

可以先试试看,如果没有自动展示智谱AI模型再回复,我去看看能否提个pr。

lobehubbot commented 4 months ago

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


You can give it a try first. If the AI ​​model is not displayed automatically before replying, I will see if I can submit a PR.

zhangleijun111 commented 4 months ago

Bot检测到问题正文的语言不是英语,请自动翻译。👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

可以先试一试。如果AI模型在回复前没有自动显示,我会看看是否可以提交PR。

0137bb859c203f1c7809689c6aeeece 3604f48a7b0fac2c2e9b0e93527ae36 我的环境变量配置zhipukey,容器第一次启动页打开了,但是检查通过不了,但是我讲key手动填入是可以的,这是为什么呢???

lobehubbot commented 4 months ago

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


Bot has detected that the language of the question text is not English, please automatically translate it. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

You can try it first. If the AI ​​model doesn't show up automatically before replying, I'll see if I can submit a PR.

0137bb859c203f1c7809689c6aeeece 3604f48a7b0fac2c2e9b0e93527ae36 My environment variables are configured in zhipukey. The container startup page opens for the first time, but the check fails. However, I said that it is OK to fill in the key manually. Why is this? ? ?

sxjeru commented 4 months ago

环境变量名是全大写的,ZHIPU_API_KEY。

lobehubbot commented 4 months ago

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


The environment variable name is in all uppercase letters, ZHIPU_API_KEY.

zhangleijun111 commented 4 months ago

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

The environment variable name is in all uppercase letters, ZHIPU_API_KEY.

8bf3985a22d7206ae408a23a1dc165e我改成了大写还是不行为什么呢

sxjeru commented 4 months ago

能给出更多信息吗,这边测试是没问题的。

另外可以关一下重复的 issue:#2825

lobehubbot commented 4 months ago

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


Can you give more information? There is no problem in testing here.

In addition, you can close the duplicate issue: #2825

zhangleijun111 commented 4 months ago

Bot检测到问题正文的语言不是英语,请自动翻译。👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

你能提供更多信息吗?在这里测试没有问题。

此外,您可以关闭重复的问题:#2825

可以了而且智普的开关也自动打开了谢谢!,麻烦问下上传文档的功能大概多久才会有啊

lobehubbot commented 4 months ago

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


Bot has detected that the language of the question text is not English, please automatically translate it. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Can you provide more information? No problem testing here.

Additionally, you can close duplicate issues: #2825

It’s ok and the smart switch is automatically turned on. Thank you! , please ask how long it will take for the function of uploading documents to be available.

sxjeru commented 4 months ago

或许这个月底?我也很期待文件上传能早日实装。

lobehubbot commented 4 months ago

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


Maybe the end of this month? I'm also looking forward to the early implementation of file upload.

arvinxx commented 4 months ago

麻烦问下上传文档的功能大概多久才会有啊

这个月中开始做,快的话月底上。

lobehubbot commented 4 months ago

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


Could you please tell me how long it will take for the function of uploading documents to be available?

Start working on it in the middle of this month and finish it by the end of the month if possible.

lobehubbot commented 4 months ago

✅ @zhangleijun111

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