lobehub/lobe-chat

[Bug] 官网文档Docker部署的示例“.env”文件的“OPENAI_API_KEY”变量存在拼写错误

Closed this issue · 8 comments

📦 部署环境

Docker

📌 软件版本

1.15.13

💻 系统环境

Ubuntu

🌐 浏览器

Edge

🐛 问题描述

官网文档Docker部署的示例“.env”文件的“OPENAI_API_KEY”变量存在拼写错误
目前是:
# OPEANAI_API_KEY=sk-xxxx
应改为:
# OPENAI_API_KEY=sk-xxxx

📷 复现步骤

  1. 官网文档“使用 Docker 部署”的示例文档中
  2. 官网文档”使用 Docker Compose 部署“的示例文档中
  3. https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/local/.env.zh-CN.example
  4. https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/production/.env.zh-CN.example
    image
    image

🚦 期望结果

虽然用户在此处填写Open API Key时就应该发现此问题,但是此处拼写错误不明显,用户容易忽略,修改后可减少用户部署时出现问题的概率。

📝 补充信息

No response

👀 @qq940500529

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

@qq940500529 你好!我是Dosu,一个能帮助你解决软件问题、回答你的问题并成为贡献者的机器人。有什么我可以帮你的吗?🤖

在官网文档的 Docker 部署示例中,确实存在 OPENAI_API_KEY 变量拼写错误的问题。目前的拼写是 # OPEANAI_API_KEY=sk-xxxx,应改为 # OPENAI_API_KEY=sk-xxxx

建议您在部署时手动更正此拼写错误,以确保环境变量能够正确生效。

您可以参考以下链接中的示例文件进行修改:

感谢您提出这个问题,这将有助于改进文档并减少用户部署时出现问题的概率。

To continue talking to Dosu, mention @dosu.

好家伙,我在这里卡了一下午,原来这么弱智的问题

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


Good guy, I've been stuck here all afternoon. It turns out it's such a mentally retarded problem.

🤣 欢迎 PR 修改

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


🤣 PR modifications are welcome

@qq940500529

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

🎉 This issue has been resolved in version 1.15.17 🎉

The release is available on:

Your semantic-release bot 📦🚀