merge and change model

This commit is contained in:
sijinhui
2024-08-03 18:45:55 +08:00
parent c60fa3cda6
commit f80054e82b
4 changed files with 121 additions and 25 deletions

View File

@@ -150,6 +150,9 @@
.sidebar-logo {
display: inline-flex;
position: absolute;
right: 10px;
top: 20px;
}
.sidebar-title-container {

View File

@@ -341,9 +341,9 @@ export const DEFAULT_MODELS = [
describe: "新出的,可以尝鲜",
available: true,
provider: {
id: "openai",
providerName: "OpenAI",
providerType: "openai",
id: "azure",
providerName: "Azure",
providerType: "azure",
},
},
{
@@ -357,17 +357,7 @@ export const DEFAULT_MODELS = [
},
},
{
name: "gpt-4o-gl",
describe: "同GPT-4o,备用",
available: true,
provider: {
id: "azure",
providerName: "Azure",
providerType: "azure",
},
},
{
name: "gpt-4-turbo-2024-04-09",
name: "gpt-4",
describe: "GPT-4,标准版",
available: true,
provider: {

View File

@@ -140,7 +140,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.992,
version: 3.993,
migrate(persistedState, version) {
const state = persistedState as ChatConfig;
@@ -176,7 +176,7 @@ export const useAppConfig = createPersistStore(
// return { ...DEFAULT_CONFIG };
// }
if (version < 3.992) {
if (version < 3.993) {
// state.modelConfig = DEFAULT_CONFIG.modelConfig;
return { ...DEFAULT_CONFIG };
// state.modelConfig.template =