From 5b83a4223131cfbc6855055658e4860a9eae1ba4 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Mon, 15 Jan 2024 23:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Google?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/constant.ts | 5 +++-- app/store/config.ts | 4 ++-- docker-compose.yml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index b64a6cd58..7b1ff0a80 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -114,6 +114,7 @@ export const KnowledgeCutOffDate: Record = { default: "2021-09", "gpt-4-1106-preview": "2023-04", "gpt-4-vision-preview": "2023-04", + "gemini-pro": "2021-04", }; export const DEFAULT_MODELS = [ @@ -153,8 +154,8 @@ export const DEFAULT_MODELS = [ }, { name: "gemini-pro", - available: false, - describe: "谷歌的,不知道杂用", + available: true, + describe: "谷歌的,不要钱", provider: { id: "google", providerName: "Google", diff --git a/app/store/config.ts b/app/store/config.ts index 4a5e40c36..8f0b6f386 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore( }), { name: StoreKey.Config, - version: 3.891, + version: 3.892, migrate(persistedState, version) { const state = persistedState as ChatConfig; @@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore( if (version < 3.8) { state.lastUpdate = Date.now(); } - if (version < 3.891) { + if (version < 3.892) { state.lastUpdate = Date.now(); return { ...DEFAULT_CONFIG }; } diff --git a/docker-compose.yml b/docker-compose.yml index 85848c378..ad62f2028 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: - TZ=Asia/Shanghai - OPENAI_API_KEY=$OPENAI_API_KEY - GOOGLE_API_KEY=$GOOGLE_API_KEY + - GOOGLE_URL=$GOOGLE_URL - CODE=$CODE - BASE_URL=$BASE_URL - OPENAI_ORG_ID=$OPENAI_ORG_ID