lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
Other
35.48k stars 8.37k forks source link

[Bug] The openai agent parameters in the Docker startup method cannot be switched to the official API direct connection mode. #2569

Open osbi-code opened 2 months ago

osbi-code commented 2 months ago

💻 Operating System

Ubuntu

📦 Environment

Docker

🌐 Browser

Chrome

🐛 Bug Description

After I started Docker with the following command (specifying the openai apikey and proxy in the parameters):

sudo docker run -d -p 22004:3210 \
  -e ACCESS_CODE=XXXXXX\
  -e OPENAI_API_KEY=sk-62yXKMz9LiXXXXXXXX \
  -e OPENAI_PROXY_URL=https://XXXXXX/v1 \
  --restart always \
  --name lobe-chat_demo \
  lobehub/lobe-chat

I later obtained the official direct connection key. I then set the key in the web interface, leaving the proxy field empty. However, the system kept prompting that the key does not exist.

🚦 Expected Behavior

No response

📷 Recurrence Steps

No response

📝 Additional Information

No response

lobehubbot commented 2 months ago

👀 @zhoufann9188

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