Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Critical] 在客户端配置语言模型的API key和代理地址之后无法使用服务端提供的服务 #2436

Open
BrandonStudio opened this issue May 9, 2024 · 10 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@BrandonStudio
Copy link
Contributor

💻 系统环境

Windows

📦 部署环境

Vercel / Zeabur / Sealos

🌐 浏览器

Edge

🐛 问题描述

无法输入服务端访问密码

在填写API key和代理地址之后,删除配置,无法使用服务端提供的代理和内置API key

🚦 期望结果

No response

📷 复现步骤

No response

📝 补充信息

No response

@BrandonStudio BrandonStudio added the 🐛 Bug Something isn't working | 缺陷 label May 9, 2024
@lobehubbot
Copy link
Member

👀 @BrandonStudio

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
Copy link
Member

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


💻 System environment

Windows

📦 Deployment environment

Vercel / Zeabur / Sealos

🌐 Browser

Edge

🐛 Problem description

Unable to enter server access password

After filling in the API key and proxy address, delete the configuration and the proxy and built-in API key provided by the server cannot be used.

🚦 Expected results

No response

📷 Steps to reproduce

No response

📝 Supplementary information

No response

@arvinxx
Copy link
Contributor

arvinxx commented May 9, 2024

能具体说明下问题么?你这么说没看懂

@lobehubbot
Copy link
Member

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


Can you explain the problem in detail? You don't understand what you said?

@BrandonStudio
Copy link
Contributor Author

BrandonStudio commented May 9, 2024

  1. 服务端配好了环境变量,可以直接用语言模型。
  2. 客户端不做任何配置,填写密码后可以使用服务端配好的语言模型。
  3. 客户端配置自己的API key和代理地址之后可以使用自己配置的语言模型。
  4. 客户端删除 API key 和代理地址配置之后不能使用服务端配好的语言模型,而且不提示输入密码,只是提示 API key 不能为空。

Translation of the bot is terrible

  1. The environment variables are set on the server side. The language model can be used.
  2. On client side, initially (without any configuration), the language model that is already configured on server side can be used after filling the password.
  3. When client configures alternative API key and proxy address, the configured alternative language model can be used.
  4. When removing the alternative API key and proxy address configuration, the language model that is configured on server side cannot be used. No hint for passsword is shown. The only prompt is that "API key cannot be empty".

@lobehubbot
Copy link
Member

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


  1. After the environment variables are configured on the server side, the language model can be used directly.
  2. The client does not need to make any configuration. After filling in the password, you can use the language model configured on the server.
  3. After the client configures its own API key and proxy address, it can use its own configured language model.
  4. After the client deletes the API key and proxy address configuration, it cannot use the language model configured on the server. It does not prompt for a password, but only prompts that the API key cannot be empty.

@arvinxx
Copy link
Contributor

arvinxx commented May 9, 2024

你看下客户端请求有没有开启?会不会是删除客户端请求地址的时候没有关从客户端请求?

@lobehubbot
Copy link
Member

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


Have you checked whether client requests are enabled? Could it be that when deleting the client request address, the request from the client was not turned off?

@BrandonStudio
Copy link
Contributor Author

是的。

优化方案:在客户端请求选项变得不可见的时候(目前是删除api代理地址的时候)将客户端请求开关自动关闭。

@lobehubbot
Copy link
Member

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


Yes.

Optimization plan: Automatically turn off the client request switch when the client request option becomes invisible (currently when the api proxy address is deleted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants