ChatGPTNextWeb / ChatGPTNextWeb/NextChat

访问密码与自定义接口问题

Open
#3,604 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

我猜楼主的意思是访问密码应该在固定的后端中使用,而不是自定义的接口地址/后端/base_url/openai。

即:使用访问密码时,不允许自定义后端地址。使用api_key时,使用此处定义的接口地址/后端地址/base_url/openai。此输入框只与api_key绑定。

而目前实现是feature还是bug?

_Originally posted by @imldy in https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/2321#issuecomment-1631454520_

到目前为止,仍然会出现,在填入访问密码的同时,自定义了接口,再取消勾选自定义接口,仍然会走自定义接口。

框选处的API接口为[gemini-openai-proxy](https://github.com/zhu327/gemini-openai-proxy)部署的geminipro的api,设置里页关闭了自定义接口选项,但还是走了自定义接口,没有通过访问密码内置的gpt api来请求

![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/33564254/08fda842-ca33-4464-9d54-35db9ea3cb5f)

![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/33564254/18c761c5-5096-402b-a728-671dba08ee76)

以下为清空自定义接口后,才能通过访问密码内置的chatgpt apikey来请求:
![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/33564254/d3fa3de6-f9a2-4d3e-a621-913f5484bc88)

这样操作是否过于复杂?在填写了访问密码后,并且启用了自定义接口,无论是否关闭自定义接口的开关选项,它都会走自定义接口,必须通过清空自定义接口的信息才能重新走访问密码。
请问有计划对这个问题进行优化吗?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.