fix: USE_OPENAI_ENDPOINT_FOR_ALL_MODELS

This commit is contained in:
Hk-Gosuto
2024-06-07 23:29:24 +08:00
parent 740ece39da
commit bc9679335d
4 changed files with 12 additions and 6 deletions

View File

@@ -218,7 +218,7 @@ export function getHeaders(ignoreHeaders?: boolean) {
const modelConfig = useChatStore.getState().currentSession().mask.modelConfig;
const isGoogle =
modelConfig.model.startsWith("gemini") &&
!accessStore.useOpenAIEndpointForAllModels();
!accessStore.isUseOpenAIEndpointForAllModels;
if (!ignoreHeaders && !isGoogle) {
headers = {
"Content-Type": "application/json",