feat: add latest zhipu models (#12169)

This commit is contained in:
tylinux 2025-12-28 19:11:08 +08:00 committed by GitHub
parent c242860abc
commit cccf9bb7be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View File

@ -66,6 +66,11 @@ export class ZhipuAPIClient extends OpenAIAPIClient {
public async listModels(): Promise<OpenAI.Models.Model[]> {
const models = [
'glm-4.7',
'glm-4.6',
'glm-4.6v',
'glm-4.6v-flash',
'glm-4.6v-flashx',
'glm-4.5',
'glm-4.5-x',
'glm-4.5-air',

View File

@ -617,6 +617,24 @@ export const SYSTEM_MODELS: Record<SystemProviderId | 'defaultModel', Model[]> =
name: 'GLM-4.6',
group: 'GLM-4.6'
},
{
id: 'glm-4.6v',
provider: 'zhipu',
name: 'GLM-4.6V',
group: 'GLM-4.6V'
},
{
id: 'glm-4.6v-flash',
provider: 'zhipu',
name: 'GLM-4.6V-Flash',
group: 'GLM-4.6V'
},
{
id: 'glm-4.6v-flashx',
provider: 'zhipu',
name: 'GLM-4.6V-FlashX',
group: 'GLM-4.6V'
},
{
id: 'glm-4.7',
provider: 'zhipu',