Merge branch 'ChatGPTNextWeb:main' into main

This commit is contained in:
do02fw
2024-04-17 11:18:07 +08:00
committed by GitHub
5 changed files with 82 additions and 256 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;