0125切换使用微软

This commit is contained in:
sijinhui 2024-02-19 17:07:47 +08:00
parent 8a0f90adc0
commit 84dd704e4d
2 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ export const DEFAULT_MODELS = [
// },
{
name: "gpt-4-1106-preview",
describe: "GPT-4,又强又快,推荐",
describe: "GPT-4",
available: true,
provider: {
id: "openai",
@ -156,7 +156,7 @@ export const DEFAULT_MODELS = [
},
{
name: "gpt-4-0125-preview",
describe: "GPT-4,修复懒惰,目前挺贵",
describe: "GPT-4,最新版,推荐",
available: true,
provider: {
id: "openai",
@ -206,7 +206,7 @@ export const DEFAULT_MODELS = [
},
] as const;
export const AZURE_MODELS: string[] = ["gpt-4-1106-preview"];
export const AZURE_MODELS: string[] = ["gpt-4-0125-preview"];
// export const AZURE_PATH = AZURE_MODELS.map((m) => { m: `openai/deployments/${m}/chat/completions`});
// export const AZURE_PATH = AZURE_MODELS.map((m) => ({ m: `openai/deployments/${m}/chat/completions`} ));
export const AZURE_PATH = AZURE_MODELS.reduce(

View File

@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.894,
version: 3.895,
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.894) {
if (version < 3.895) {
state.lastUpdate = Date.now();
return { ...DEFAULT_CONFIG };
}