chore: update how to identify google model

This commit is contained in:
Fred Liang 2023-12-25 03:46:35 +08:00
parent 281fe6927a
commit 753c518d33
No known key found for this signature in database
GPG Key ID: 4DABDA85EF70EC71

View File

@ -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());