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

[Bug] 添加apikey之后检查通过,但是模型没有任何输出,也不报错 #4032

Closed neverl805 closed 1 month ago

neverl805 commented 1 month ago

📦 部署环境

Docker

📌 软件版本

1.19.4

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

image 我在别的网站上可以使用,但是这里配置后,模型没有任何输出,docker镜像也没报错日志

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

lobehubbot commented 1 month ago

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


📦 Deployment environment

Docker

📌 Software version

1.19.4

💻 System environment

Ubuntu

🌐 Browser

Chrome

🐛 Problem description

image I can use it on other websites, but after configuring it here, the model does not output any output, and the docker image does not report any error logs.

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

lobehubbot commented 1 month ago

👀 @neverl805

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

dosubot[bot] commented 1 month ago

@neverl805 你好! 我是Dosu,一个可以帮助你解决问题,回答疑问,以及成为贡献者的机器人。在等待人类维护者的期间,我可以帮助你解决疑难问题。

The issue you're experiencing, where the model produces no output and no error logs after adding the API key in the Docker environment on Ubuntu with software version 1.19.4, might be due to an incorrect Docker command configuration or execution.

Ensure that your Docker command includes the necessary environment variables and is executed properly. Here is the correct Docker command to start the LobeChat service:

$ docker run -d -p 3210:3210 \
  -e OPENAI_API_KEY=sk-xxxx \
  -e ACCESS_CODE=lobe66 \
  --name lobe-chat \
  lobehub/lobe-chat

Replace sk-xxxx with your actual OpenAI API Key. If you need to use a proxy, include the OPENAI_PROXY_URL environment variable as well:

$ docker run -d -p 3210:3210 \
  -e OPENAI_API_KEY=sk-xxxx \
  -e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
  -e ACCESS_CODE=lobe66 \
  --name lobe-chat \
  lobehub/lobe-chat

If the issue persists, check the Docker logs for any hidden errors:

$ docker logs lobe-chat

This will help identify any underlying issues that are not immediately visible [1].

To continue talking to Dosu, mention @dosu.

arvinxx commented 1 month ago

加 /v1

lobehubbot commented 1 month ago

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


Add /v1

lobehubbot commented 1 month ago

✅ @neverl805

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