feat: (1) fix issues/4335 and issues/4518

This commit is contained in:
butterfly
2024-04-16 14:50:48 +08:00
parent fd8d0a1746
commit fb8b8d28da
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;