mirror of
https://github.com/ChatGPTNextWeb/NextChat.git
synced 2026-02-23 16:39:12 +08:00
add xai
This commit is contained in:
@@ -105,7 +105,7 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) {
|
||||
}
|
||||
|
||||
if (systemApiKey) {
|
||||
console.log("[Auth] use system api key", systemApiKey);
|
||||
console.log("[Auth] use system api key");
|
||||
req.headers.set("Authorization", `Bearer ${systemApiKey}`);
|
||||
} else {
|
||||
console.log("[Auth] admin did not provide an api key");
|
||||
|
||||
Reference in New Issue
Block a user