fix: gemini

This commit is contained in:
Hk-Gosuto
2023-12-29 17:59:49 +08:00
parent 20d0717d0c
commit 6c71c83af7
2 changed files with 6 additions and 4 deletions

View File

@@ -187,7 +187,9 @@ export class GeminiProApi implements LLMApi {
}
path(path: string): string {
const accessStore = useAccessStore.getState();
const isGoogle = accessStore.provider === ServiceProvider.Google;
const isGoogle =
accessStore.useCustomConfig &&
accessStore.provider === ServiceProvider.Google;
if (isGoogle && !accessStore.isValidGoogle()) {
throw Error(