Update Z.ai and MiniMax model lists

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
Danila Poyarkov 2026-03-28 15:29:22 +03:00
commit 7d1e7cb86e
3 changed files with 11 additions and 7 deletions

View file

@ -20,6 +20,7 @@
- New CLI commands: `open-pencil convert` for document conversion and `open-pencil formats` to inspect readable/writable/exportable formats
- CLI export now supports `.fig` output and routes PNG/JPG/WEBP/SVG/JSX/`.fig` through the shared IO layer
- `Open…` now supports `.pen` Pencil documents through the shared document reader pipeline while keeping `.fig` as the native save format
- Update built-in Z.ai and MiniMax model lists — Z.ai now uses the Anthropic-compatible endpoint for GLM coding models, adds GLM-5.1, and MiniMax adds M2.7 / M2.7-highspeed
### Fixes

View file

@ -197,9 +197,10 @@ export const AI_PROVIDERS: AIProviderDef[] = [
id: 'zai',
name: 'Z.ai',
keyPlaceholder: 'API key',
keyURL: 'https://docs.z.ai/api-reference/introduction',
defaultModel: 'glm-5',
keyURL: 'https://docs.z.ai/devpack/quick-start',
defaultModel: 'glm-5.1',
models: [
{ id: 'glm-5.1', name: 'GLM-5.1', tag: 'Best' },
{ id: 'glm-5', name: 'GLM-5' },
{ id: 'glm-5-code', name: 'GLM-5-Code' },
{ id: 'glm-4.7', name: 'GLM-4.7' },
@ -219,9 +220,11 @@ export const AI_PROVIDERS: AIProviderDef[] = [
name: 'MiniMax',
keyPlaceholder: 'API key',
keyURL: 'https://platform.minimax.io/user-center/basic-information/interface-key',
defaultModel: 'MiniMax-M2.5',
defaultModel: 'MiniMax-M2.7',
models: [
{ id: 'MiniMax-M2.5', name: 'MiniMax-M2.5', tag: 'Best' },
{ id: 'MiniMax-M2.7', name: 'MiniMax-M2.7', tag: 'Best' },
{ id: 'MiniMax-M2.7-highspeed', name: 'MiniMax-M2.7-highspeed', tag: 'Fast' },
{ id: 'MiniMax-M2.5', name: 'MiniMax-M2.5' },
{ id: 'MiniMax-M2.5-highspeed', name: 'MiniMax-M2.5 Highspeed', tag: 'Fast' },
{ id: 'MiniMax-M2.1', name: 'MiniMax-M2.1' },
{ id: 'MiniMax-M2.1-highspeed', name: 'MiniMax-M2.1 Highspeed', tag: 'Fast' },

View file

@ -147,11 +147,11 @@ function createModel(): LanguageModel {
return google(effectiveModelID)
}
case 'zai': {
const zai = createOpenAI({
const zai = createAnthropic({
apiKey: key,
baseURL: 'https://api.z.ai/api/paas/v4'
baseURL: 'https://api.z.ai/api/anthropic'
})
return zai.chat(effectiveModelID)
return zai(effectiveModelID)
}
case 'minimax': {
const minimax = createOpenAI({