chore: optimize the code

This commit is contained in:
Dogtiti
2024-07-05 23:56:10 +08:00
parent 183ad2a34b
commit 14bc1b6aac
3 changed files with 5 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ export function getHeaders() {
Accept: "application/json",
};
const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;
const isGoogle = modelConfig.providerName == ServiceProvider.Azure;
const isGoogle = modelConfig.providerName == ServiceProvider.Google;
const isAzure = modelConfig.providerName === ServiceProvider.Azure;
const isAnthropic = modelConfig.providerName === ServiceProvider.Anthropic;
const authHeader = isAzure