Merge remote-tracking branch 'upstream/main' into update

# Conflicts:
#	app/constant.ts
#	app/locales/tw.ts
#	app/utils.ts
This commit is contained in:
sijinhui
2024-04-16 13:26:10 +08:00
7 changed files with 531 additions and 12 deletions

View File

@@ -112,8 +112,8 @@ export class GeminiProApi implements LLMApi {
options.onController?.(controller);
try {
let googleChatPath = visionModel
? Google.VisionChatPath
: Google.ChatPath;
? Google.VisionChatPath(modelConfig.model)
: Google.ChatPath(modelConfig.model);
let chatPath = this.path(googleChatPath);
// let baseUrl = accessStore.googleUrl;