Update Z.ai and MiniMax model lists

This commit is contained in:
Danila Poyarkov 2026-03-28 15:26:37 +03:00
parent f6e80b3cb9
commit 76767c5ea3
3 changed files with 12 additions and 8 deletions

View file

@ -15,8 +15,12 @@
- Resume pen drawing from existing open path endpoints — click an endpoint to continue the curve
- Close open paths by dragging one endpoint to the other
- Align selected anchor points relative to each other in vector edit mode — the standard alignment buttons in the position panel now operate on selected vertices when 2 or more are selected
- Add GLM-5.1 model id to the z.ai provider
- Add MiniMax M2.7 model id to the minimax provider
- Unified core IO format registry — `.fig` is now modeled as the native document format alongside shared export adapters for PNG, JPG, WEBP, SVG, and JSX
- Export selection or current page as `.fig` from the app export UI and app menu
- 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,10 +197,10 @@ export const AI_PROVIDERS: AIProviderDef[] = [
id: 'zai',
name: 'Z.ai',
keyPlaceholder: 'API key',
keyURL: 'https://docs.z.ai/api-reference/introduction',
keyURL: 'https://docs.z.ai/devpack/quick-start',
defaultModel: 'glm-5.1',
models: [
{ id: 'glm-5.1', name: 'GLM-5.1' },
{ 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' },
@ -220,7 +220,7 @@ 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.7', name: 'MiniMax-M2.7', tag: 'Best' },
{ id: 'MiniMax-M2.7-highspeed', name: 'MiniMax-M2.7-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({