AI-native design editor. Open-source Figma alternative.
Update Z.ai and MiniMax model lists
Danila Poyarkov76767c5ea3f0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8f3ac4941..d144d5b71 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -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### Fixesdiff --git a/packages/core/src/constants.ts b/packages/core/src/constants.tsindex 09763119e..a10c58b35 100644--- a/packages/core/src/constants.ts+++ b/packages/core/src/constants.ts@@ -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' },diff --git a/src/composables/use-chat.ts b/src/composables/use-chat.tsindex 6ce103857..b2588af5e 100644--- a/src/composables/use-chat.ts+++ b/src/composables/use-chat.ts@@ -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({