Frank před 5 měsíci
rodič
revize
01b18456a3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      cloud/app/src/routes/zen/v1/chat/completions.ts

+ 1 - 1
cloud/app/src/routes/zen/v1/chat/completions.ts

@@ -69,7 +69,7 @@ export async function POST(input: APIEvent) {
     await checkCredits()
     await checkCredits()
 
 
     // Request to model provider
     // Request to model provider
-    const res = await fetch(new URL(url.pathname.replace(/^\/gateway/, "") + url.search, MODEL.api), {
+    const res = await fetch(new URL(url.pathname.replace(/^\/zen/, "") + url.search, MODEL.api), {
       method: "POST",
       method: "POST",
       headers: (() => {
       headers: (() => {
         const headers = input.request.headers
         const headers = input.request.headers