Merge pull request #4525 from ChatGPTNextWeb/chore-fix

Chore fix
This commit is contained in:
DeanYao
2024-04-16 14:59:22 +08:00
committed by GitHub
4 changed files with 36 additions and 22 deletions

View File

@@ -104,7 +104,13 @@ export class GeminiProApi implements LLMApi {
};
const accessStore = useAccessStore.getState();
let baseUrl = accessStore.googleUrl;
let baseUrl = "";
if (accessStore.useCustomConfig) {
baseUrl = accessStore.googleUrl;
}
const isApp = !!getClientConfig()?.isApp;
let shouldStream = !!options.config.stream;