Google AI模型支持

This commit is contained in:
sijinhui 2024-01-15 23:57:33 +08:00
parent a18c7d7d77
commit 936ae673d3
4 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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) =>

View File

@ -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;

View File

@ -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 };
}