mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 16:16:39 +08:00
debug log
This commit is contained in:
parent
a1a09c4061
commit
2100f681df
@ -88,13 +88,13 @@ export function auth(
|
||||
}
|
||||
|
||||
if (systemApiKey) {
|
||||
console.log("[Auth] use system api key");
|
||||
// console.log("[Auth] use system api key");
|
||||
req.headers.set("Authorization", `Bearer ${systemApiKey}`);
|
||||
} else {
|
||||
console.log("[Auth] admin did not provide an api key");
|
||||
// console.log("[Auth] admin did not provide an api key");
|
||||
}
|
||||
} else {
|
||||
console.log("[Auth] use user api key");
|
||||
// console.log("[Auth] use user api key");
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -117,7 +117,7 @@ export async function requestOpenai(
|
||||
// If openaiOrganizationHeader is present, log it; otherwise, log that the header is not present
|
||||
console.log("[Org ID]", openaiOrganizationHeader);
|
||||
} else {
|
||||
console.log("[Org ID] is not set up.");
|
||||
// console.log("[Org ID] is not set up.");
|
||||
}
|
||||
|
||||
// to prevent browser prompt for credentials
|
||||
@ -196,6 +196,7 @@ export async function saveLogs(logData: {
|
||||
getTokenLength(matchAllMessage.join(" ")) +
|
||||
matchAllMessage.length * 3;
|
||||
}
|
||||
console.log("[debug log]----", logData);
|
||||
delete logData?.logEntry;
|
||||
}
|
||||
if (logData?.model == "midjourney") {
|
||||
|
Loading…
Reference in New Issue
Block a user