mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
Google AI模型支持
This commit is contained in:
parent
a18c7d7d77
commit
936ae673d3
@ -401,7 +401,7 @@ const cn = {
|
||||
Store: {
|
||||
DefaultTopic: "新的聊天",
|
||||
BotHello:
|
||||
"有什么可以帮你的吗\n\n1.模型选择:点击下方机器人图标**查看说明后**选择合适的模型\n2.尽量不要用`gpt-4-all`,太贵了遭不住",
|
||||
"有什么可以帮你的吗\n\n1.模型选择:点击下方机器人图标**查看说明后**选择合适的模型\n2.可以试试`gemini-pro`.",
|
||||
Error: "出错了,稍后重试吧",
|
||||
Prompt: {
|
||||
History: (content: string) => "这是历史聊天总结作为前情提要:" + content,
|
||||
|
@ -407,7 +407,7 @@ const en: LocaleType = {
|
||||
Store: {
|
||||
DefaultTopic: "New Conversation",
|
||||
BotHello:
|
||||
"Hello! How can I assist you today?\n\n1.Model selection: Click on the robot icon below to **view the instructions** and select the appropriate model\n2.Try not to use `gpt-4-all` as it is too expensive to withstand",
|
||||
"Hello! How can I assist you today?\n\n1.Model selection: Click on the robot icon below to **view the instructions** and select the appropriate model\n2.Try to use `gemini-pro`",
|
||||
Error: "Something went wrong, please try again later.",
|
||||
Prompt: {
|
||||
History: (content: string) =>
|
||||
|
@ -96,9 +96,9 @@ export const useAccessStore = createPersistStore(
|
||||
}),
|
||||
{
|
||||
name: StoreKey.Access,
|
||||
version: 2,
|
||||
version: 2.1,
|
||||
migrate(persistedState, version) {
|
||||
if (version < 2) {
|
||||
if (version < 2.1) {
|
||||
const state = persistedState as {
|
||||
token: string;
|
||||
openaiApiKey: string;
|
||||
|
@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
|
||||
}),
|
||||
{
|
||||
name: StoreKey.Config,
|
||||
version: 3.892,
|
||||
version: 3.893,
|
||||
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.892) {
|
||||
if (version < 3.893) {
|
||||
state.lastUpdate = Date.now();
|
||||
return { ...DEFAULT_CONFIG };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user