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.34k stars 9.94k forks source link

设置环境变量后,依然弹出需要设置OpenAI API Key #2230

Closed RubuJam closed 6 months ago

RubuJam commented 6 months ago

💻 系统环境

iOS

📦 部署环境

Vercel / Zeabur / Sealos

🌐 浏览器

Chrome

🐛 问题描述

我的环境变量设置如下 DEFAULT_AGENT_CONFIG= plugins=search-engine,lobe-image-designer;enableAutoCreateTopic=true;model=gemini-pro;provider=google; OPENAI_MODEL_LIST= -all 部署后,虽在设置中显示正确,但首次使用需要自行设置模型,不然会一直弹出如下内容,且此时token统计也没工作,需要点击任意一个模型才会启用,似乎provider没能正确处理 IMG_5435

🚦 期望结果

直接调用对应模型(此问题似乎在这几个版本中出现)

📷 复现步骤

No response

📝 补充信息

No response

lobehubbot commented 6 months ago

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


💻 System environment

iOS

📦 Deployment environment

Vercel / Zeabur / Sealos

🌐 Browser

Chrome

🐛 Problem description

My environment variables are set as follows DEFAULT_AGENT_CONFIG= plugins=search-engine,lobe-image-designer;enableAutoCreateTopic=true;model=gemini-pro;provider=google; OPENAI_MODEL_LIST= -all After deployment, although it is displayed correctly in the settings, you need to set the model yourself for the first time, otherwise the following content will always pop up, and the token statistics are not working at this time. You need to click on any model to enable it. It seems that provider is not correct. deal with IMG_5435

🚦 Expected results

Directly call the corresponding model (this problem seems to occur in these versions)

📷 Steps to reproduce

No response

📝 Supplementary information

No response

lobehubbot commented 6 months ago

👀 @RubuJam

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 6 months ago

你试过浏览器的无痕模式也是这样吗?

lobehubbot commented 6 months ago

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


Have you tried the incognito mode of your browser?

RubuJam commented 6 months ago

你试过浏览器的无痕模式也是这样吗?

对,而且我定位到0.149.5版本起,开始出现此问题,高度怀疑是0.149.5的某些变动,导致出现该问题

lobehubbot commented 6 months ago

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


Have you tried the incognito mode of your browser and is this the same?

Yes, and I have located version 0.149.5, and this problem started to occur. I highly suspect that some changes in 0.149.5 caused this problem.

arvinxx commented 6 months ago

结合这两个因素来看,应该是bug,有另外一个用户也遇到了类似的问题, https://github.com/lobehub/lobe-chat/issues/2203

我等下看下修一下

lobehubbot commented 6 months ago

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


Combining these two factors, it should be a bug. Another user also encountered a similar problem, https://github.com/lobehub/lobe-chat/issues/2203

I'll wait and see and fix it.

RubuJam commented 6 months ago

结合这两个因素来看,应该是bug,有另外一个用户也遇到了类似的问题, https://github.com/lobehub/lobe-chat/issues/2203

我等下看下修一下

我这两天有点其它事情,只能麻烦你了

lobehubbot commented 6 months ago

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


Based on these two factors, it should be a bug. Another user also encountered a similar problem, https://github.com/lobehub/lobe-chat/issues/2203

I'll wait and see and fix it later

I have some other things to do these two days, so I can only trouble you.

lobehubbot commented 6 months ago

✅ @RubuJam

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

lobehubbot commented 6 months ago

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

The release is available on:

Your semantic-release bot :package::rocket:

Firetheft commented 2 months ago

问题依然存在

lobehubbot commented 2 months ago

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


The problem still exists