This commit is contained in:
LaChimere 2023-05-07 13:52:26 +08:00
parent 8265436437
commit 1facbb2906

View File

@ -26,7 +26,7 @@ export async function requestOpenai(req: NextRequest) {
} }
if (!authValue || !authValue.startsWith("Bearer sk-")) { if (!authValue || !authValue.startsWith("Bearer sk-")) {
console.error("[OpenAI Request] invlid api key provided", authValue); console.error("[OpenAI Request] invalid api key provided", authValue);
} }
return fetch(`${baseUrl}/${openaiPath}`, { return fetch(`${baseUrl}/${openaiPath}`, {