diff --git a/src/main/presenter/configPresenter/modelDefaultSettings.ts b/src/main/presenter/configPresenter/modelDefaultSettings.ts index 4274d8e41..d0e6ca104 100644 --- a/src/main/presenter/configPresenter/modelDefaultSettings.ts +++ b/src/main/presenter/configPresenter/modelDefaultSettings.ts @@ -1367,6 +1367,63 @@ export const defaultModelsSettings: DefaultModelSetting[] = [ functionCall: true, reasoning: false }, + + // Zhipu + { + id: 'glm-4.5', + name: 'GLM-4.5', + temperature: 0.7, + maxTokens: 8192, + contextLength: 128000, + match: ['glm-4.5'], + vision: false, + functionCall: true, + reasoning: true + }, + { + id: 'glm-4.5-air', + name: 'GLM-4.5-Air', + temperature: 0.7, + maxTokens: 8192, + contextLength: 128000, + match: ['glm-4.5-air'], + vision: false, + functionCall: true, + reasoning: true + }, + { + id: 'glm-4.5-x', + name: 'GLM-4.5-X', + temperature: 0.7, + maxTokens: 8192, + contextLength: 128000, + match: ['glm-4.5-x'], + vision: false, + functionCall: true, + reasoning: true + }, + { + id: 'glm-4.5-airx', + name: 'GLM-4.5-AirX', + temperature: 0.7, + maxTokens: 8192, + contextLength: 128000, + match: ['glm-4.5-airx'], + vision: false, + functionCall: true, + reasoning: true + }, + { + id: 'glm-4.5-flash', + name: 'GLM-4.5-Flash', + temperature: 0.7, + maxTokens: 8192, + contextLength: 128000, + match: ['glm-4.5-flash'], + vision: false, + functionCall: true, + reasoning: true + }, { id: 'glm-4-plus', name: 'GLM-4-Plus', diff --git a/src/main/presenter/configPresenter/providerModelSettings.ts b/src/main/presenter/configPresenter/providerModelSettings.ts index 9869f7329..1cebdd469 100644 --- a/src/main/presenter/configPresenter/providerModelSettings.ts +++ b/src/main/presenter/configPresenter/providerModelSettings.ts @@ -237,7 +237,64 @@ export const providerModelSettings: Record { return [ // 语言模型 + { + id: 'glm-4.5', + name: 'GLM-4.5', + group: 'zhipu', + providerId: this.provider.id, + isCustom: false, + contextLength: 128000, + maxTokens: 8192 + }, + { + id: 'glm-4.5-air', + name: 'GLM-4.5-Air', + group: 'zhipu', + providerId: this.provider.id, + isCustom: false, + contextLength: 128000, + maxTokens: 8192 + }, + { + id: 'glm-4.5-x', + name: 'GLM-4.5-X', + group: 'zhipu', + providerId: this.provider.id, + isCustom: false, + contextLength: 128000, + maxTokens: 8192 + }, + { + id: 'glm-4.5-airx', + name: 'GLM-4.5-AirX', + group: 'zhipu', + providerId: this.provider.id, + isCustom: false, + contextLength: 128000, + maxTokens: 8192 + }, + { + id: 'glm-4.5-flash', + name: 'GLM-4.5-Flash', + group: 'zhipu', + providerId: this.provider.id, + isCustom: false, + contextLength: 128000, + maxTokens: 8192 + }, { id: 'glm-4-plus', name: 'GLM-4-Plus',