This commit is contained in:
GH Action - Upstream Sync
2024-04-17 01:13:19 +00:00
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;