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