ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
72.45k stars 57.57k forks source link

[Feature Request]: 添加环境变量 auth_token_prefix #4845

Open fulyaec opened 2 weeks ago

fulyaec commented 2 weeks ago

Problem Description

能不能添加一个环境变量 auth_token_prefix,控制认证的时候前缀是为 'Bearer '还是其他。目前有些代理的前缀为空,又无法手动指定,只能修改源码来实现。

Solution Description

添加一个环境变量auth_token_prefix,默认是'Bearer '

Alternatives Considered

No response

Additional Context

No response

Issues-translate-bot commented 2 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature Request]: Add environment variable auth_token_prefix

Problem Description

Can you add an environment variable auth_token_prefix to control whether the prefix is ​​'Bearer' or something else during authentication. Currently, the prefix of some agents is empty and cannot be specified manually. It can only be achieved by modifying the source code.

Solution Description

Add an environment variable auth_token_prefix, the default is 'Bearer'

Alternatives Considered

No response

Additional Context

No response