mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-03 00:26:40 +08:00
添加Google
This commit is contained in:
parent
1e7d20580d
commit
5b83a42231
@ -114,6 +114,7 @@ export const KnowledgeCutOffDate: Record<string, string> = {
|
||||
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",
|
||||
|
@ -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 };
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user