mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 13:48:21 +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