mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-12 04:53:44 +08:00
fix some bugs for suggestion
This commit is contained in:
@@ -129,7 +129,7 @@ async function request(req: NextRequest) {
|
||||
"User-Agent": req.headers.get("User-Agent") ?? "",
|
||||
};
|
||||
console.debug(`headers.Authorization:${headers.Authorization}`);
|
||||
console.debug(`serverConfig.huaweiApiKey:${serverConfig.huaweiApiKey}`);
|
||||
console.debug("serverConfig.huaweiApiKey: *****");
|
||||
// 如果没有 Authorization header,使用系统配置的 API key
|
||||
|
||||
headers.Authorization = `Bearer ${serverConfig.huaweiApiKey}`;
|
||||
|
@@ -1486,7 +1486,7 @@ export function Settings() {
|
||||
>
|
||||
<PasswordInput
|
||||
aria-label={Locale.Settings.Access.Huawei.ApiKey.Title}
|
||||
value={accessStore.deepseekApiKey}
|
||||
value={accessStore.huaweiApiKey}
|
||||
type="text"
|
||||
placeholder={Locale.Settings.Access.Huawei.ApiKey.Placeholder}
|
||||
onChange={(e) => {
|
||||
|
Reference in New Issue
Block a user