Browse Source

chore: update how to identify google model

Fred Liang 1 year ago
parent
commit
753c518d33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/config/server.ts

+ 1 - 1
app/config/server.ts

@@ -65,7 +65,7 @@ export const getServerSideConfig = () => {
   }
 
   const isAzure = !!process.env.AZURE_URL;
-  const isGoogle = !!process.env.GOOGLE_URL;
+  const isGoogle = !!process.env.GOOGLE_API_KEY;
 
   const apiKeyEnvVar = process.env.OPENAI_API_KEY ?? "";
   const apiKeys = apiKeyEnvVar.split(",").map((v) => v.trim());