@xopcai/xopc 0.0.120 → 0.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -3
- package/README.zh-CN.md +23 -3
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/dashscope/src/image-generation-provider.d.ts +6 -5
- package/dist/extensions/dashscope/src/image-generation-provider.js +40 -64
- package/dist/extensions/dashscope/src/image-generation-provider.js.map +1 -1
- package/dist/extensions/dashscope/src/index.d.ts +1 -1
- package/dist/extensions/dashscope/src/index.js +2 -2
- package/dist/extensions/dashscope/xopc.extension.json +3 -2
- package/dist/extensions/minimax/src/image-generation-provider.d.ts +7 -5
- package/dist/extensions/minimax/src/image-generation-provider.js +43 -37
- package/dist/extensions/minimax/src/image-generation-provider.js.map +1 -1
- package/dist/extensions/minimax/src/index.d.ts +1 -1
- package/dist/extensions/minimax/src/index.js +2 -2
- package/dist/extensions/minimax/xopc.extension.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/Combination-HAlzriaz.js +41 -0
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-APTlX9Sq.js → agent-avatar-dicebear-CK3s5cJo.js} +1 -1
- package/dist/gateway/static/root/assets/agents-SsQrj9B-.js +2 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-DTKc5HHT.js → app-management-settings-panel-CWsNHtTs.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BTciFrE9.js → appearance-settings-C4b8y6iZ.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-CYb6fame.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-CiHaUMII.js → archive-plugin-DAtNW3Ia.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-t4gSrNjL.js → attachment-load-Dm-RY54y.js} +1 -1
- package/dist/gateway/static/root/assets/automation-suggestion-card-BKHewSVT.js +1 -0
- package/dist/gateway/static/root/assets/automations-page-DpOOq1nk.js +1 -0
- package/dist/gateway/static/root/assets/{binary-plugins-BAbSldW5.js → binary-plugins-BG6Xnk71.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BNr_82xl.js → block-editor-DfndiO3h.js} +28 -28
- package/dist/gateway/static/root/assets/browser-settings-page-9nXxgh4u.js +8 -0
- package/dist/gateway/static/root/assets/{capability-presets-api-tzD702Gg.js → capability-presets-api-Cx93GLdw.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-presets-settings-panel-AGhTueAc.js → capability-presets-settings-panel-D528_YFy.js} +1 -1
- package/dist/gateway/static/root/assets/{channel-recipient-api-DL_KzwGE.js → channel-recipient-api-DdPTtEs8.js} +1 -1
- package/dist/gateway/static/root/assets/channels-settings-Ck-3h5lI.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-DL-fAqE_.js +2 -0
- package/dist/gateway/static/root/assets/directory-picker-path-field-D835EHJd.js +1 -0
- package/dist/gateway/static/root/assets/dist-Mys7eFJ5.js +1 -0
- package/dist/gateway/static/root/assets/dist-wO9a2_ID.js +1 -0
- package/dist/gateway/static/root/assets/dreaming-settings-CCa1F7Fg.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-Dl2kO0Sf.js → extension-debug-page-W2ITCPSA.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DmbLPsx_.js → extension-page-DrvUytvn.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-qM8aLT5u.js +1 -0
- package/dist/gateway/static/root/assets/{fetch-B3ME5Eri.js → fetch-ovkvM8KQ.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-DI9_BBTo.js → gateway-config-api-BB3biuD0.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-mmmnIH27.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CSZQTz6K.js → gateway-startup-retry-CanQ8UcR.js} +1 -1
- package/dist/gateway/static/root/assets/goal-create-dialog-CNqNdEkQ.js +1 -0
- package/dist/gateway/static/root/assets/goal-detail-page-Ceu5zrN6.js +1 -0
- package/dist/gateway/static/root/assets/{goals-config-api-Bhzqrp2w.js → goals-config-api-BBOX6mUl.js} +1 -1
- package/dist/gateway/static/root/assets/goals-page-BP1kfvWv.js +2 -0
- package/dist/gateway/static/root/assets/goals-settings-Bh3A7OZV.js +1 -0
- package/dist/gateway/static/root/assets/heartbeat-settings-YoYgKlfX.js +1 -0
- package/dist/gateway/static/root/assets/index-DdqSO9R2.js +191 -0
- package/dist/gateway/static/root/assets/index-jGB-2nI-.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-kMp08SlX.js → keyboard-shortcuts-settings-B4TKJHla.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-BgVk5DvZ.js +2 -0
- package/dist/gateway/static/root/assets/{markdown-split-Bc0w40vz.js → markdown-split-DcFtdLci.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-DJ_HvgIy.js → media-plugins-B6SmeLVB.js} +1 -1
- package/dist/gateway/static/root/assets/messages-B5O4OIEo.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-panel-BU0x8PGP.js +2 -0
- package/dist/gateway/static/root/assets/notes-page-D6JYVP4I.js +1 -0
- package/dist/gateway/static/root/assets/notes-workbench-mqRJYnJS.js +2 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BbA7sRd_.js → preview-open-alternatives-C29O19s7.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-DOTgzoeh.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-DGUIb4y5.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-DVKKUj3u.js +1 -0
- package/dist/gateway/static/root/assets/{save-bar-controls-Dividh61.js → save-bar-controls-B4ad9GfB.js} +1 -1
- package/dist/gateway/static/root/assets/schedule-field-DdYncfLR.js +1 -0
- package/dist/gateway/static/root/assets/schema-form-BMTrDE-7.js +1 -0
- package/dist/gateway/static/root/assets/segmented-styles-BL8oLBEp.js +1 -0
- package/dist/gateway/static/root/assets/sessions-page-BVbzUWxW.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-DrNNoSqE.js +1 -0
- package/dist/gateway/static/root/assets/{settings-collapsible-section-BMCOfuE_.js → settings-collapsible-section-MwTW2eK4.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-form-section-DBkGwpIN.js → settings-form-section-Dg6LBbcr.js} +1 -1
- package/dist/gateway/static/root/assets/settings-page-CMDqgeMR.js +1 -0
- package/dist/gateway/static/root/assets/settings-page-layout-BX4T-OLF.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-Ce1pcFtR.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-DWE-dUFh.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-aKSraR8l.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-CS-FU_B-.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-BaF3u0LA.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-CrmEnyX4.js → system-settings-panel-Dd6Y35Cm.js} +1 -1
- package/dist/gateway/static/root/assets/{typed-models-lib-BAsGn25g.js → typed-models-lib-Cx6XV5A2.js} +1 -1
- package/dist/gateway/static/root/assets/{use-channel-catalog-C7vcAoGb.js → use-channel-catalog-D4sMbmy7.js} +1 -1
- package/dist/gateway/static/root/assets/user-profile-settings-panel-Bx-hjMQc.js +1 -0
- package/dist/gateway/static/root/assets/{utils-Dl9efgnV.js → utils-D7b_vZnv.js} +1 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-CkhbRt1q.js +1 -0
- package/dist/gateway/static/root/assets/workflow-run-setup-panel--TdohF5N.js +3 -0
- package/dist/gateway/static/root/assets/workflow-start-dialog-B0lavx_o.js +1 -0
- package/dist/gateway/static/root/assets/workflows-page-CZR05Bu_.js +18 -0
- package/dist/gateway/static/root/index.html +7 -8
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.d.ts +2 -0
- package/dist/src/agent/agent-manager.js +47 -7
- package/dist/src/agent/agent-manager.js.map +1 -1
- package/dist/src/agent/context/project-context.d.ts +19 -0
- package/dist/src/agent/context/project-context.js +90 -0
- package/dist/src/agent/context/project-context.js.map +1 -0
- package/dist/src/agent/embedded/xopc-auth-storage.d.ts +1 -5
- package/dist/src/agent/embedded/xopc-auth-storage.js +2 -8
- package/dist/src/agent/embedded/xopc-auth-storage.js.map +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +23 -0
- package/dist/src/agent/embedded/xopc-tools-bridge.js.map +1 -1
- package/dist/src/agent/goals/checklist-judge.js +1 -1
- package/dist/src/agent/goals/checklist-judge.js.map +1 -1
- package/dist/src/agent/goals/goal-locale.js +2 -2
- package/dist/src/agent/goals/judge.js +1 -1
- package/dist/src/agent/goals/judge.js.map +1 -1
- package/dist/src/agent/image/tool-model-config.d.ts +2 -0
- package/dist/src/agent/image/tool-model-config.js +2 -2
- package/dist/src/agent/image/tool-model-config.js.map +1 -1
- package/dist/src/agent/image/understanding/pi-ai-provider.js +1 -1
- package/dist/src/agent/image/understanding/pi-ai-provider.js.map +1 -1
- package/dist/src/agent/memory/compaction.d.ts +1 -1
- package/dist/src/agent/memory/compaction.js +1 -1
- package/dist/src/agent/memory/compaction.js.map +1 -1
- package/dist/src/agent/memory/types.d.ts +1 -0
- package/dist/src/agent/middleware/self-verify.d.ts +3 -0
- package/dist/src/agent/middleware/self-verify.js +18 -0
- package/dist/src/agent/middleware/self-verify.js.map +1 -1
- package/dist/src/agent/orchestration/agent-event-handler.js +28 -3
- package/dist/src/agent/orchestration/agent-event-handler.js.map +1 -1
- package/dist/src/agent/prompt/sections/tooling.js +21 -5
- package/dist/src/agent/prompt/sections/tooling.js.map +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.d.ts +1 -0
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -0
- package/dist/src/agent/prompt/service-prompt-builder.js.map +1 -1
- package/dist/src/agent/prompt/system-prompt-params.d.ts +2 -0
- package/dist/src/agent/prompt/system-prompt-params.js +1 -0
- package/dist/src/agent/prompt/system-prompt-params.js.map +1 -1
- package/dist/src/agent/prompt/system-prompt.d.ts +2 -0
- package/dist/src/agent/prompt/system-prompt.js +14 -1
- package/dist/src/agent/prompt/system-prompt.js.map +1 -1
- package/dist/src/agent/sandbox/path-policy.js +30 -6
- package/dist/src/agent/sandbox/path-policy.js.map +1 -1
- package/dist/src/agent/service/btw-query.js +1 -1
- package/dist/src/agent/service/btw-query.js.map +1 -1
- package/dist/src/agent/service.js +4 -3
- package/dist/src/agent/service.js.map +1 -1
- package/dist/src/agent/session/session-config-service.js +6 -1
- package/dist/src/agent/session/session-config-service.js.map +1 -1
- package/dist/src/agent/session/session-hydrator.js +7 -3
- package/dist/src/agent/session/session-hydrator.js.map +1 -1
- package/dist/src/agent/session/session-inspector.js +9 -5
- package/dist/src/agent/session/session-inspector.js.map +1 -1
- package/dist/src/agent/starter-agents.js +18 -47
- package/dist/src/agent/starter-agents.js.map +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +12 -1
- package/dist/src/agent/tools/image-generate-tool.js.map +1 -1
- package/dist/src/agent/tools/session-search-tool.js +1 -1
- package/dist/src/agent/tools/session-search-tool.js.map +1 -1
- package/dist/src/agent/tools/web-extract.js +1 -1
- package/dist/src/agent/tools/web-extract.js.map +1 -1
- package/dist/src/agent/workflow/index.js +2 -2
- package/dist/src/agent/workflow/runtime.js +1 -1
- package/dist/src/agent-manifest/index.js +2 -2
- package/dist/src/agent-manifest/schema.d.ts +66 -0
- package/dist/src/agent-manifest/schema.js +28 -2
- package/dist/src/agent-manifest/schema.js.map +1 -1
- package/dist/src/automations/api/routes.js +13 -2
- package/dist/src/automations/api/routes.js.map +1 -1
- package/dist/src/automations/domain/types.d.ts +2 -0
- package/dist/src/automations/domain/validation.d.ts +3 -0
- package/dist/src/automations/domain/validation.js +1 -0
- package/dist/src/automations/domain/validation.js.map +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js.map +1 -1
- package/dist/src/automations/draft/automation-draft-validator.d.ts +1 -0
- package/dist/src/automations/service/action-executor.js +3 -1
- package/dist/src/automations/service/action-executor.js.map +1 -1
- package/dist/src/automations/service/automation-service.d.ts +4 -1
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/automations/service/automation-service.js.map +1 -1
- package/dist/src/automations/storage/automation-repository.d.ts +3 -1
- package/dist/src/automations/storage/automation-repository.js +7 -5
- package/dist/src/automations/storage/automation-repository.js.map +1 -1
- package/dist/src/automations/storage/automation-run-repository.d.ts +1 -0
- package/dist/src/automations/storage/automation-run-repository.js +12 -1
- package/dist/src/automations/storage/automation-run-repository.js.map +1 -1
- package/dist/src/chat-commands/context.js +2 -1
- package/dist/src/chat-commands/context.js.map +1 -1
- package/dist/src/cli/command-loaders.js +1 -0
- package/dist/src/cli/command-loaders.js.map +1 -1
- package/dist/src/cli/command-manifest.js +4 -0
- package/dist/src/cli/command-manifest.js.map +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/goal.js +27 -4
- package/dist/src/cli/commands/goal.js.map +1 -1
- package/dist/src/cli/commands/onboard/model.js +161 -11
- package/dist/src/cli/commands/onboard/model.js.map +1 -1
- package/dist/src/cli/commands/project.d.ts +4 -0
- package/dist/src/cli/commands/project.js +239 -0
- package/dist/src/cli/commands/project.js.map +1 -0
- package/dist/src/config/default-model.d.ts +11 -0
- package/dist/src/config/default-model.js +19 -0
- package/dist/src/config/default-model.js.map +1 -0
- package/dist/src/config/index.js +2 -2
- package/dist/src/config/schema.d.ts +71 -11
- package/dist/src/config/schema.js +57 -22
- package/dist/src/config/schema.js.map +1 -1
- package/dist/src/connectors/registries/smithery.js +10 -9
- package/dist/src/connectors/registries/smithery.js.map +1 -1
- package/dist/src/daemon/install-plan.js +2 -1
- package/dist/src/daemon/install-plan.js.map +1 -1
- package/dist/src/gateway/global-defaults-admin.js +6 -16
- package/dist/src/gateway/global-defaults-admin.js.map +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +24 -0
- package/dist/src/gateway/hono/routes/agents.js +1 -79
- package/dist/src/gateway/hono/routes/agents.js.map +1 -1
- package/dist/src/gateway/hono/routes/goals.js +51 -4
- package/dist/src/gateway/hono/routes/goals.js.map +1 -1
- package/dist/src/gateway/hono/routes/index.js +2 -0
- package/dist/src/gateway/hono/routes/index.js.map +1 -1
- package/dist/src/gateway/hono/routes/memory.js +5 -1
- package/dist/src/gateway/hono/routes/memory.js.map +1 -1
- package/dist/src/gateway/hono/routes/models.js +132 -14
- package/dist/src/gateway/hono/routes/models.js.map +1 -1
- package/dist/src/gateway/hono/routes/notes.js +5 -0
- package/dist/src/gateway/hono/routes/notes.js.map +1 -1
- package/dist/src/gateway/hono/routes/projects.d.ts +3 -0
- package/dist/src/gateway/hono/routes/projects.js +578 -0
- package/dist/src/gateway/hono/routes/projects.js.map +1 -0
- package/dist/src/gateway/hono/routes/sessions.js +47 -7
- package/dist/src/gateway/hono/routes/sessions.js.map +1 -1
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/hono/routes/voice.js.map +1 -1
- package/dist/src/gateway/hono/routes/workflows.js +27 -4
- package/dist/src/gateway/hono/routes/workflows.js.map +1 -1
- package/dist/src/gateway/image-capabilities.d.ts +11 -1
- package/dist/src/gateway/image-capabilities.js +32 -43
- package/dist/src/gateway/image-capabilities.js.map +1 -1
- package/dist/src/gateway/service.d.ts +3 -0
- package/dist/src/gateway/service.js +10 -3
- package/dist/src/gateway/service.js.map +1 -1
- package/dist/src/gateway/workspace-editor-path.js +9 -1
- package/dist/src/gateway/workspace-editor-path.js.map +1 -1
- package/dist/src/generated/bundled-image-generation-providers.d.ts +4 -2
- package/dist/src/generated/bundled-image-generation-providers.js +6 -4
- package/dist/src/generated/bundled-image-generation-providers.js.map +1 -1
- package/dist/src/goals/goal-service.d.ts +1 -1
- package/dist/src/goals/goal-service.js +2 -1
- package/dist/src/goals/goal-service.js.map +1 -1
- package/dist/src/goals/goal-store.d.ts +1 -1
- package/dist/src/goals/goal-store.js +12 -6
- package/dist/src/goals/goal-store.js.map +1 -1
- package/dist/src/goals/goal-workflow-judge.js +1 -1
- package/dist/src/goals/types.d.ts +3 -0
- package/dist/src/i18n/goals-bundle.js +1 -1
- package/dist/src/i18n/index.js +1 -1
- package/dist/src/i18n/share-tool-bundle.js +2 -2
- package/dist/src/media/paths.js +3 -4
- package/dist/src/media/paths.js.map +1 -1
- package/dist/src/notes/agent-context.js +2 -2
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/service.js.map +1 -1
- package/dist/src/projects/automation-bind.d.ts +1 -0
- package/dist/src/projects/automation-bind.js +16 -0
- package/dist/src/projects/automation-bind.js.map +1 -0
- package/dist/src/projects/goal-bind.d.ts +4 -0
- package/dist/src/projects/goal-bind.js +40 -0
- package/dist/src/projects/goal-bind.js.map +1 -0
- package/dist/src/projects/index.d.ts +11 -0
- package/dist/src/projects/index.js +11 -0
- package/dist/src/projects/memory-bind.d.ts +1 -0
- package/dist/src/projects/memory-bind.js +16 -0
- package/dist/src/projects/memory-bind.js.map +1 -0
- package/dist/src/projects/project-agent.d.ts +10 -0
- package/dist/src/projects/project-agent.js +27 -0
- package/dist/src/projects/project-agent.js.map +1 -0
- package/dist/src/projects/project-loop.d.ts +58 -0
- package/dist/src/projects/project-loop.js +118 -0
- package/dist/src/projects/project-loop.js.map +1 -0
- package/dist/src/projects/project-service.d.ts +26 -0
- package/dist/src/projects/project-service.js +94 -0
- package/dist/src/projects/project-service.js.map +1 -0
- package/dist/src/projects/project-store.d.ts +31 -0
- package/dist/src/projects/project-store.js +193 -0
- package/dist/src/projects/project-store.js.map +1 -0
- package/dist/src/projects/session-bind.d.ts +5 -0
- package/dist/src/projects/session-bind.js +46 -0
- package/dist/src/projects/session-bind.js.map +1 -0
- package/dist/src/projects/types.d.ts +60 -0
- package/dist/src/projects/types.js +1 -0
- package/dist/src/projects/workflow-bind.d.ts +1 -0
- package/dist/src/projects/workflow-bind.js +16 -0
- package/dist/src/projects/workflow-bind.js.map +1 -0
- package/dist/src/projects/workspace.d.ts +5 -0
- package/dist/src/projects/workspace.js +25 -0
- package/dist/src/projects/workspace.js.map +1 -0
- package/dist/src/providers/domestic-presets.d.ts +615 -0
- package/dist/src/providers/domestic-presets.js +834 -0
- package/dist/src/providers/domestic-presets.js.map +1 -0
- package/dist/src/providers/env-keys.js +29 -5
- package/dist/src/providers/env-keys.js.map +1 -1
- package/dist/src/providers/extension-stream-bridge.js +1 -1
- package/dist/src/providers/extension-stream-bridge.js.map +1 -1
- package/dist/src/providers/index.d.ts +5 -5
- package/dist/src/providers/index.js +101 -21
- package/dist/src/providers/index.js.map +1 -1
- package/dist/src/providers/model-discovery.d.ts +17 -0
- package/dist/src/providers/model-discovery.js +61 -0
- package/dist/src/providers/model-discovery.js.map +1 -0
- package/dist/src/providers/model-registry.d.ts +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/providers/model-registry.js.map +1 -1
- package/dist/src/providers/presentation.js +185 -14
- package/dist/src/providers/presentation.js.map +1 -1
- package/dist/src/session/index.d.ts +1 -1
- package/dist/src/session/index.js +3 -3
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/session-title.js.map +1 -1
- package/dist/src/session/session-workspace.d.ts +4 -2
- package/dist/src/session/session-workspace.js +10 -3
- package/dist/src/session/session-workspace.js.map +1 -1
- package/dist/src/session/types.d.ts +3 -0
- package/dist/src/session/types.js.map +1 -1
- package/dist/src/storage/sqlite/memory-records-repository.d.ts +3 -0
- package/dist/src/storage/sqlite/memory-records-repository.js +16 -5
- package/dist/src/storage/sqlite/memory-records-repository.js.map +1 -1
- package/dist/src/storage/sqlite/migrations/019_projects.sql +40 -0
- package/dist/src/storage/sqlite/migrations/020_project_default_agent.sql +1 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/migrations/runner.js.map +1 -1
- package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
- package/dist/src/storage/sqlite/notes-repository.js +20 -4
- package/dist/src/storage/sqlite/notes-repository.js.map +1 -1
- package/dist/src/storage/sqlite/row-mappers.d.ts +2 -0
- package/dist/src/storage/sqlite/row-mappers.js +2 -0
- package/dist/src/storage/sqlite/row-mappers.js.map +1 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/session-repository.js +10 -5
- package/dist/src/storage/sqlite/session-repository.js.map +1 -1
- package/dist/src/storage/sqlite/transcript-repository.js +8 -0
- package/dist/src/storage/sqlite/transcript-repository.js.map +1 -1
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/tui/tui-commands.js +145 -0
- package/dist/src/tui/tui-commands.js.map +1 -1
- package/dist/src/tui/xopc-tui-keybindings.d.ts +1 -1
- package/dist/src/voice/tts/summarize.js +1 -1
- package/dist/src/voice/tts/summarize.js.map +1 -1
- package/dist/src/workflows/domain/run.d.ts +1 -0
- package/dist/src/workflows/domain/run.js.map +1 -1
- package/dist/src/workflows/draft/workflow-draft-service.js +1 -1
- package/dist/src/workflows/draft/workflow-draft-service.js.map +1 -1
- package/dist/src/workflows/index.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.d.ts +1 -0
- package/dist/src/workflows/service/workflow-run-service.js +18 -4
- package/dist/src/workflows/service/workflow-run-service.js.map +1 -1
- package/dist/src/workflows/service/workflow-run-service.types.d.ts +2 -0
- package/dist/src/workflows/service/workflow-session-bridge.d.ts +1 -0
- package/dist/src/workflows/service/workflow-session-bridge.js +3 -0
- package/dist/src/workflows/service/workflow-session-bridge.js.map +1 -1
- package/dist/src/workflows/store/run-index-store.d.ts +1 -0
- package/dist/src/workflows/store/run-index-store.js +13 -3
- package/dist/src/workflows/store/run-index-store.js.map +1 -1
- package/dist/src/workflows/store/run-store.d.ts +3 -1
- package/dist/src/workflows/store/run-store.js +5 -2
- package/dist/src/workflows/store/run-store.js.map +1 -1
- package/package.json +15 -6
- package/dist/gateway/static/root/assets/Combination-BzaXOLd9.js +0 -41
- package/dist/gateway/static/root/assets/agents-CFW_FS_V.js +0 -2
- package/dist/gateway/static/root/assets/apps-page-DT52OrbM.js +0 -1
- package/dist/gateway/static/root/assets/automation-suggestion-card-CtysjSoQ.js +0 -1
- package/dist/gateway/static/root/assets/automations-page-B2YvT3ES.js +0 -1
- package/dist/gateway/static/root/assets/browser-settings-page-BQEXPhDU.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-DRTutLlN.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DneJVuge.js +0 -2
- package/dist/gateway/static/root/assets/dist-By6Rh2ee.js +0 -1
- package/dist/gateway/static/root/assets/dist-CkobR7mk.js +0 -1
- package/dist/gateway/static/root/assets/dist-DokQNVMQ.js +0 -1
- package/dist/gateway/static/root/assets/dreaming-settings-BEwWA1yf.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BS2rx40e.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-DAFI_T0W.js +0 -1
- package/dist/gateway/static/root/assets/goal-detail-page-DLuz4jC9.js +0 -1
- package/dist/gateway/static/root/assets/goals-page-DTAfv9Ft.js +0 -2
- package/dist/gateway/static/root/assets/goals-settings-CWN2iirQ.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-CkkkHvOi.js +0 -1
- package/dist/gateway/static/root/assets/index-CnjzMw5i.js +0 -191
- package/dist/gateway/static/root/assets/index-E1QinYKp.css +0 -1
- package/dist/gateway/static/root/assets/logs-page-CDXDlS_W.js +0 -2
- package/dist/gateway/static/root/assets/messages-CISb1HLv.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-panel-BTwxMIgZ.js +0 -2
- package/dist/gateway/static/root/assets/note-detail-page-BBfOeB0m.js +0 -2
- package/dist/gateway/static/root/assets/note-image-lightbox-4zntqpZq.js +0 -1
- package/dist/gateway/static/root/assets/note-time-hm6JO_Wi.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-VocWOjoK.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CXwjuD_Q.js +0 -1
- package/dist/gateway/static/root/assets/schedule-field-pRheF2CO.js +0 -1
- package/dist/gateway/static/root/assets/schema-form-D6PiPxfr.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-CpcVySQK.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BVy_TawT.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-CZpNyCWn.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-layout-NxoW5Y57.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-MVHLLu_a.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-B0suFCfj.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-C6DBbQGo.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-6hJmhwSn.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-Im1MA0Iw.js +0 -2
- package/dist/gateway/static/root/assets/user-profile-settings-panel-QAQWGelF.js +0 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-D-6XueTv.js +0 -1
- package/dist/gateway/static/root/assets/voice-player-store-CMC5NOJp.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-DVPllR4k.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-B94WISTW.js +0 -18
|
@@ -0,0 +1,834 @@
|
|
|
1
|
+
//#region src/providers/domestic-presets.ts
|
|
2
|
+
const QWEN_MODELS = [
|
|
3
|
+
{
|
|
4
|
+
id: "qwen3.7-max",
|
|
5
|
+
name: "Qwen3.7 Max",
|
|
6
|
+
contextWindow: 1e6,
|
|
7
|
+
input: ["text", "image"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
id: "qwen3.7-plus",
|
|
11
|
+
name: "Qwen3.7 Plus",
|
|
12
|
+
contextWindow: 1e6,
|
|
13
|
+
input: ["text", "image"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "qwen3.6-flash",
|
|
17
|
+
name: "Qwen3.6 Flash",
|
|
18
|
+
contextWindow: 1e6,
|
|
19
|
+
input: ["text"]
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
const STEPFUN_MODELS = [
|
|
23
|
+
{
|
|
24
|
+
id: "step-3.7-flash",
|
|
25
|
+
name: "Step 3.7 Flash",
|
|
26
|
+
contextWindow: 1e6,
|
|
27
|
+
reasoning: true,
|
|
28
|
+
input: ["text", "image"]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "step-3.5-flash-2603",
|
|
32
|
+
name: "Step 3.5 Flash 2603",
|
|
33
|
+
contextWindow: 1e6,
|
|
34
|
+
reasoning: true,
|
|
35
|
+
input: ["text", "image"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "step-3.5-flash",
|
|
39
|
+
name: "Step 3.5 Flash",
|
|
40
|
+
contextWindow: 1e6,
|
|
41
|
+
reasoning: true,
|
|
42
|
+
input: ["text"]
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
const MIMO_MODELS = [
|
|
46
|
+
{
|
|
47
|
+
id: "mimo-v2.5-pro",
|
|
48
|
+
name: "MiMo V2.5 Pro",
|
|
49
|
+
contextWindow: 1e6,
|
|
50
|
+
reasoning: true,
|
|
51
|
+
input: ["text"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "mimo-v2.5-pro-ultraspeed",
|
|
55
|
+
name: "MiMo V2.5 Pro UltraSpeed",
|
|
56
|
+
contextWindow: 1e6,
|
|
57
|
+
reasoning: true,
|
|
58
|
+
input: ["text"]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "mimo-v2.5",
|
|
62
|
+
name: "MiMo V2.5",
|
|
63
|
+
contextWindow: 1e6,
|
|
64
|
+
reasoning: true,
|
|
65
|
+
input: ["text", "image"]
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
const MINIMAX_MODELS = [
|
|
69
|
+
{
|
|
70
|
+
id: "MiniMax-M3",
|
|
71
|
+
name: "MiniMax M3",
|
|
72
|
+
contextWindow: 1e6,
|
|
73
|
+
reasoning: true,
|
|
74
|
+
input: ["text", "image"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "MiniMax-M2.7-highspeed",
|
|
78
|
+
name: "MiniMax M2.7 Highspeed",
|
|
79
|
+
contextWindow: 204800,
|
|
80
|
+
input: ["text"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "MiniMax-M2.7",
|
|
84
|
+
name: "MiniMax M2.7",
|
|
85
|
+
contextWindow: 204800,
|
|
86
|
+
input: ["text"]
|
|
87
|
+
}
|
|
88
|
+
];
|
|
89
|
+
const DOMESTIC_PROVIDER_PRESETS = [
|
|
90
|
+
{
|
|
91
|
+
id: "dashscope-cn",
|
|
92
|
+
displayName: "Alibaba Bailian / DashScope China",
|
|
93
|
+
description: "Alibaba Bailian Qwen models through the China DashScope OpenAI-compatible endpoint.",
|
|
94
|
+
docsUrl: "https://help.aliyun.com/zh/model-studio/developer-reference/compatibility-of-openai-with-dashscope",
|
|
95
|
+
apiKeyUrl: "https://dashscope.console.aliyun.com/apiKey",
|
|
96
|
+
pricingUrl: "https://help.aliyun.com/zh/model-studio/developer-reference/tongyi-thousand-questions-metering-and-billing",
|
|
97
|
+
envVars: ["DASHSCOPE_API_KEY", "QWEN_API_KEY"],
|
|
98
|
+
api: "openai-completions",
|
|
99
|
+
baseUrlPresets: [{
|
|
100
|
+
id: "cn",
|
|
101
|
+
label: "China",
|
|
102
|
+
baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
|
103
|
+
}],
|
|
104
|
+
defaultBaseUrlPreset: "cn",
|
|
105
|
+
defaultModel: "qwen3.7-plus",
|
|
106
|
+
models: QWEN_MODELS,
|
|
107
|
+
aliases: [
|
|
108
|
+
"qwen",
|
|
109
|
+
"tongyi",
|
|
110
|
+
"aliyun",
|
|
111
|
+
"bailian",
|
|
112
|
+
"dashscope",
|
|
113
|
+
"dashscope cn",
|
|
114
|
+
"阿里百炼"
|
|
115
|
+
],
|
|
116
|
+
quirks: ["Some Qwen coding endpoints use different hosts; keep the Base URL editable."]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "dashscope-intl",
|
|
120
|
+
displayName: "Alibaba Bailian / DashScope International",
|
|
121
|
+
description: "Alibaba Bailian Qwen models through the international DashScope OpenAI-compatible endpoint.",
|
|
122
|
+
docsUrl: "https://www.alibabacloud.com/help/en/model-studio/compatibility-of-openai-with-dashscope",
|
|
123
|
+
apiKeyUrl: "https://modelstudio.console.alibabacloud.com/",
|
|
124
|
+
pricingUrl: "https://www.alibabacloud.com/help/en/model-studio/billing-for-tongyi-qianwen",
|
|
125
|
+
envVars: ["DASHSCOPE_API_KEY", "QWEN_API_KEY"],
|
|
126
|
+
api: "openai-completions",
|
|
127
|
+
baseUrlPresets: [{
|
|
128
|
+
id: "intl",
|
|
129
|
+
label: "International",
|
|
130
|
+
baseUrl: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
|
|
131
|
+
}],
|
|
132
|
+
defaultBaseUrlPreset: "intl",
|
|
133
|
+
defaultModel: "qwen3.7-plus",
|
|
134
|
+
models: QWEN_MODELS,
|
|
135
|
+
aliases: [
|
|
136
|
+
"qwen intl",
|
|
137
|
+
"tongyi intl",
|
|
138
|
+
"alibaba cloud",
|
|
139
|
+
"dashscope intl"
|
|
140
|
+
],
|
|
141
|
+
quirks: ["Use an international DashScope key for the international endpoint."]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "volcengine-ark",
|
|
145
|
+
displayName: "Volcengine Ark",
|
|
146
|
+
description: "Volcengine Ark models through the OpenAI-compatible API.",
|
|
147
|
+
docsUrl: "https://www.volcengine.com/docs/82379/1302008",
|
|
148
|
+
apiKeyUrl: "https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey",
|
|
149
|
+
envVars: ["ARK_API_KEY", "VOLCENGINE_API_KEY"],
|
|
150
|
+
api: "openai-completions",
|
|
151
|
+
baseUrlPresets: [{
|
|
152
|
+
id: "cn-beijing",
|
|
153
|
+
label: "China Beijing",
|
|
154
|
+
baseUrl: "https://ark.cn-beijing.volces.com/api/v3",
|
|
155
|
+
description: "Model IDs are usually Ark endpoint IDs."
|
|
156
|
+
}],
|
|
157
|
+
defaultBaseUrlPreset: "cn-beijing",
|
|
158
|
+
defaultModel: "ep-your-endpoint-id",
|
|
159
|
+
models: [{
|
|
160
|
+
id: "ep-your-endpoint-id",
|
|
161
|
+
name: "Ark endpoint ID",
|
|
162
|
+
contextWindow: 128e3,
|
|
163
|
+
input: ["text"]
|
|
164
|
+
}],
|
|
165
|
+
aliases: [
|
|
166
|
+
"doubao",
|
|
167
|
+
"ark",
|
|
168
|
+
"volcengine",
|
|
169
|
+
"volces",
|
|
170
|
+
"bytedance"
|
|
171
|
+
],
|
|
172
|
+
quirks: ["Use the Ark endpoint id as the model id."]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: "volcengine-plan",
|
|
176
|
+
displayName: "Volcengine Doubao Coding Plan",
|
|
177
|
+
description: "Doubao coding-plan models through Volcengine Ark coding endpoint.",
|
|
178
|
+
docsUrl: "https://www.volcengine.com/docs/82379/1302008",
|
|
179
|
+
apiKeyUrl: "https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey",
|
|
180
|
+
envVars: ["ARK_API_KEY", "VOLCENGINE_API_KEY"],
|
|
181
|
+
api: "openai-completions",
|
|
182
|
+
baseUrlPresets: [{
|
|
183
|
+
id: "cn-beijing-coding",
|
|
184
|
+
label: "China Beijing Coding Plan",
|
|
185
|
+
baseUrl: "https://ark.cn-beijing.volces.com/api/coding/v3"
|
|
186
|
+
}],
|
|
187
|
+
defaultBaseUrlPreset: "cn-beijing-coding",
|
|
188
|
+
defaultModel: "ark-code-latest",
|
|
189
|
+
models: [
|
|
190
|
+
{
|
|
191
|
+
id: "ark-code-latest",
|
|
192
|
+
name: "Ark Coding Plan",
|
|
193
|
+
contextWindow: 256e3,
|
|
194
|
+
maxTokens: 4096,
|
|
195
|
+
input: ["text"]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: "doubao-seed-2.0-code",
|
|
199
|
+
name: "Doubao Seed 2.0 Code",
|
|
200
|
+
contextWindow: 256e3,
|
|
201
|
+
maxTokens: 4096,
|
|
202
|
+
input: ["text"]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: "doubao-seed-2.0-pro",
|
|
206
|
+
name: "Doubao Seed 2.0 Pro",
|
|
207
|
+
contextWindow: 256e3,
|
|
208
|
+
maxTokens: 4096,
|
|
209
|
+
input: ["text"]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: "doubao-seed-2.0-lite",
|
|
213
|
+
name: "Doubao Seed 2.0 Lite",
|
|
214
|
+
contextWindow: 256e3,
|
|
215
|
+
maxTokens: 4096,
|
|
216
|
+
input: ["text"]
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
aliases: [
|
|
220
|
+
"doubao coding",
|
|
221
|
+
"volcengine plan",
|
|
222
|
+
"ark coding plan",
|
|
223
|
+
"火山方舟 coding"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "byteplus-plan",
|
|
228
|
+
displayName: "BytePlus Doubao Coding Plan",
|
|
229
|
+
description: "Doubao coding-plan models through the BytePlus international coding endpoint.",
|
|
230
|
+
docsUrl: "https://docs.byteplus.com/en/docs/ModelArk/OpenAI",
|
|
231
|
+
apiKeyUrl: "https://console.byteplus.com/ark/region:ark+ap-southeast-1/apiKey",
|
|
232
|
+
envVars: ["BYTEPLUS_API_KEY", "ARK_API_KEY"],
|
|
233
|
+
api: "openai-completions",
|
|
234
|
+
baseUrlPresets: [{
|
|
235
|
+
id: "ap-southeast-coding",
|
|
236
|
+
label: "Asia Pacific Coding Plan",
|
|
237
|
+
baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3"
|
|
238
|
+
}],
|
|
239
|
+
defaultBaseUrlPreset: "ap-southeast-coding",
|
|
240
|
+
defaultModel: "ark-code-latest",
|
|
241
|
+
models: [
|
|
242
|
+
{
|
|
243
|
+
id: "ark-code-latest",
|
|
244
|
+
name: "Ark Coding Plan",
|
|
245
|
+
contextWindow: 256e3,
|
|
246
|
+
maxTokens: 4096,
|
|
247
|
+
input: ["text"]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "doubao-seed-2.0-code",
|
|
251
|
+
name: "Doubao Seed 2.0 Code",
|
|
252
|
+
contextWindow: 256e3,
|
|
253
|
+
maxTokens: 4096,
|
|
254
|
+
input: ["text"]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: "doubao-seed-2.0-pro",
|
|
258
|
+
name: "Doubao Seed 2.0 Pro",
|
|
259
|
+
contextWindow: 256e3,
|
|
260
|
+
maxTokens: 4096,
|
|
261
|
+
input: ["text"]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
id: "doubao-seed-2.0-lite",
|
|
265
|
+
name: "Doubao Seed 2.0 Lite",
|
|
266
|
+
contextWindow: 256e3,
|
|
267
|
+
maxTokens: 4096,
|
|
268
|
+
input: ["text"]
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
aliases: [
|
|
272
|
+
"byteplus",
|
|
273
|
+
"byteplus plan",
|
|
274
|
+
"doubao coding international"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
id: "deepseek",
|
|
279
|
+
displayName: "DeepSeek",
|
|
280
|
+
description: "DeepSeek models through the OpenAI-compatible API.",
|
|
281
|
+
docsUrl: "https://api-docs.deepseek.com/",
|
|
282
|
+
apiKeyUrl: "https://platform.deepseek.com/api_keys",
|
|
283
|
+
pricingUrl: "https://api-docs.deepseek.com/quick_start/pricing",
|
|
284
|
+
envVars: ["DEEPSEEK_API_KEY"],
|
|
285
|
+
api: "openai-completions",
|
|
286
|
+
baseUrlPresets: [{
|
|
287
|
+
id: "default",
|
|
288
|
+
label: "Default",
|
|
289
|
+
baseUrl: "https://api.deepseek.com"
|
|
290
|
+
}],
|
|
291
|
+
defaultBaseUrlPreset: "default",
|
|
292
|
+
defaultModel: "deepseek-v4-pro",
|
|
293
|
+
models: [{
|
|
294
|
+
id: "deepseek-v4-pro",
|
|
295
|
+
name: "DeepSeek V4 Pro",
|
|
296
|
+
contextWindow: 1e6,
|
|
297
|
+
maxTokens: 393216,
|
|
298
|
+
reasoning: true,
|
|
299
|
+
input: ["text"]
|
|
300
|
+
}, {
|
|
301
|
+
id: "deepseek-v4-flash",
|
|
302
|
+
name: "DeepSeek V4 Flash",
|
|
303
|
+
contextWindow: 1e6,
|
|
304
|
+
maxTokens: 393216,
|
|
305
|
+
reasoning: true,
|
|
306
|
+
input: ["text"]
|
|
307
|
+
}],
|
|
308
|
+
aliases: [
|
|
309
|
+
"deep seek",
|
|
310
|
+
"deepseek",
|
|
311
|
+
"r1"
|
|
312
|
+
],
|
|
313
|
+
quirks: ["Prefer current catalog models; older chat/reasoner aliases may be deprecated by the provider."]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
id: "moonshotai-cn",
|
|
317
|
+
displayName: "Kimi / Moonshot China",
|
|
318
|
+
description: "Kimi models through the Moonshot China OpenAI-compatible endpoint.",
|
|
319
|
+
docsUrl: "https://platform.moonshot.cn/docs",
|
|
320
|
+
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
|
321
|
+
pricingUrl: "https://platform.moonshot.cn/docs/pricing/chat",
|
|
322
|
+
envVars: ["MOONSHOT_API_KEY", "KIMI_API_KEY"],
|
|
323
|
+
api: "openai-completions",
|
|
324
|
+
baseUrlPresets: [{
|
|
325
|
+
id: "cn",
|
|
326
|
+
label: "China",
|
|
327
|
+
baseUrl: "https://api.moonshot.cn/v1"
|
|
328
|
+
}],
|
|
329
|
+
defaultBaseUrlPreset: "cn",
|
|
330
|
+
defaultModel: "kimi-k2.7-code",
|
|
331
|
+
models: [
|
|
332
|
+
{
|
|
333
|
+
id: "kimi-k2.7-code",
|
|
334
|
+
name: "Kimi K2.7 Code",
|
|
335
|
+
contextWindow: 262144,
|
|
336
|
+
maxTokens: 32768,
|
|
337
|
+
reasoning: true,
|
|
338
|
+
input: ["text", "image"]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
id: "kimi-k2.6",
|
|
342
|
+
name: "Kimi K2.6",
|
|
343
|
+
contextWindow: 128e3,
|
|
344
|
+
input: ["text"]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
id: "kimi-k2.5",
|
|
348
|
+
name: "Kimi K2.5",
|
|
349
|
+
contextWindow: 128e3,
|
|
350
|
+
input: ["text"]
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
aliases: [
|
|
354
|
+
"kimi",
|
|
355
|
+
"moonshot",
|
|
356
|
+
"moonshot cn"
|
|
357
|
+
],
|
|
358
|
+
quirks: ["Provider-specific thinking and tool-call stream fields may need compatibility handling."]
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: "moonshotai",
|
|
362
|
+
displayName: "Kimi / Moonshot International",
|
|
363
|
+
description: "Kimi models through the Moonshot international OpenAI-compatible endpoint.",
|
|
364
|
+
docsUrl: "https://platform.moonshot.ai/docs",
|
|
365
|
+
apiKeyUrl: "https://platform.moonshot.ai/console/api-keys",
|
|
366
|
+
pricingUrl: "https://platform.moonshot.ai/docs/pricing",
|
|
367
|
+
envVars: ["MOONSHOT_API_KEY"],
|
|
368
|
+
api: "openai-completions",
|
|
369
|
+
baseUrlPresets: [{
|
|
370
|
+
id: "intl",
|
|
371
|
+
label: "International",
|
|
372
|
+
baseUrl: "https://api.moonshot.ai/v1"
|
|
373
|
+
}],
|
|
374
|
+
defaultBaseUrlPreset: "intl",
|
|
375
|
+
defaultModel: "kimi-k2.7-code",
|
|
376
|
+
models: [
|
|
377
|
+
{
|
|
378
|
+
id: "kimi-k2.7-code",
|
|
379
|
+
name: "Kimi K2.7 Code",
|
|
380
|
+
contextWindow: 262144,
|
|
381
|
+
maxTokens: 32768,
|
|
382
|
+
reasoning: true,
|
|
383
|
+
input: ["text", "image"]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
id: "kimi-k2.6",
|
|
387
|
+
name: "Kimi K2.6",
|
|
388
|
+
contextWindow: 128e3,
|
|
389
|
+
input: ["text"]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "kimi-k2.5",
|
|
393
|
+
name: "Kimi K2.5",
|
|
394
|
+
contextWindow: 128e3,
|
|
395
|
+
input: ["text"]
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
aliases: [
|
|
399
|
+
"kimi intl",
|
|
400
|
+
"moonshot intl",
|
|
401
|
+
"moonshot ai"
|
|
402
|
+
],
|
|
403
|
+
quirks: ["Provider-specific thinking and tool-call stream fields may need compatibility handling."]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
id: "kimi-coding",
|
|
407
|
+
displayName: "Kimi Coding",
|
|
408
|
+
description: "Kimi dedicated coding endpoint with Anthropic-compatible requests.",
|
|
409
|
+
docsUrl: "https://platform.kimi.com/docs",
|
|
410
|
+
apiKeyUrl: "https://platform.kimi.com/console/api-keys",
|
|
411
|
+
pricingUrl: "https://platform.kimi.com/docs/pricing/chat",
|
|
412
|
+
envVars: ["KIMI_API_KEY", "MOONSHOT_API_KEY"],
|
|
413
|
+
api: "anthropic-messages",
|
|
414
|
+
headers: { "User-Agent": "claude-code/0.1.0" },
|
|
415
|
+
baseUrlPresets: [{
|
|
416
|
+
id: "coding",
|
|
417
|
+
label: "Coding endpoint",
|
|
418
|
+
baseUrl: "https://api.kimi.com/coding/"
|
|
419
|
+
}],
|
|
420
|
+
defaultBaseUrlPreset: "coding",
|
|
421
|
+
defaultModel: "kimi-k2.7-code",
|
|
422
|
+
models: [{
|
|
423
|
+
id: "kimi-k2.7-code",
|
|
424
|
+
name: "Kimi K2.7 Code",
|
|
425
|
+
contextWindow: 262144,
|
|
426
|
+
maxTokens: 32768,
|
|
427
|
+
reasoning: true,
|
|
428
|
+
input: ["text", "image"]
|
|
429
|
+
}, {
|
|
430
|
+
id: "kimi-for-coding",
|
|
431
|
+
name: "Kimi Code",
|
|
432
|
+
contextWindow: 262144,
|
|
433
|
+
maxTokens: 32768,
|
|
434
|
+
reasoning: true,
|
|
435
|
+
input: ["text", "image"]
|
|
436
|
+
}],
|
|
437
|
+
aliases: [
|
|
438
|
+
"kimi coding",
|
|
439
|
+
"kimi code",
|
|
440
|
+
"moonshot coding"
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
id: "stepfun-intl",
|
|
445
|
+
displayName: "StepFun International",
|
|
446
|
+
description: "StepFun models through the international OpenAI-compatible API.",
|
|
447
|
+
docsUrl: "https://platform.stepfun.com/docs",
|
|
448
|
+
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
|
449
|
+
envVars: ["STEPFUN_API_KEY"],
|
|
450
|
+
api: "openai-completions",
|
|
451
|
+
baseUrlPresets: [{
|
|
452
|
+
id: "intl",
|
|
453
|
+
label: "International",
|
|
454
|
+
baseUrl: "https://api.stepfun.ai/v1"
|
|
455
|
+
}],
|
|
456
|
+
defaultBaseUrlPreset: "intl",
|
|
457
|
+
defaultModel: "step-3.7-flash",
|
|
458
|
+
models: STEPFUN_MODELS,
|
|
459
|
+
aliases: [
|
|
460
|
+
"step",
|
|
461
|
+
"stepfun",
|
|
462
|
+
"jieyue",
|
|
463
|
+
"stepfun intl"
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
id: "stepfun-cn",
|
|
468
|
+
displayName: "StepFun China",
|
|
469
|
+
description: "StepFun models through the China OpenAI-compatible API.",
|
|
470
|
+
docsUrl: "https://platform.stepfun.com/docs",
|
|
471
|
+
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
|
472
|
+
envVars: ["STEPFUN_API_KEY"],
|
|
473
|
+
api: "openai-completions",
|
|
474
|
+
baseUrlPresets: [{
|
|
475
|
+
id: "cn",
|
|
476
|
+
label: "China",
|
|
477
|
+
baseUrl: "https://api.stepfun.com/v1"
|
|
478
|
+
}],
|
|
479
|
+
defaultBaseUrlPreset: "cn",
|
|
480
|
+
defaultModel: "step-3.7-flash",
|
|
481
|
+
models: STEPFUN_MODELS,
|
|
482
|
+
aliases: [
|
|
483
|
+
"step cn",
|
|
484
|
+
"stepfun cn",
|
|
485
|
+
"jieyue cn",
|
|
486
|
+
"阶跃星辰"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
id: "stepfun-plan-intl",
|
|
491
|
+
displayName: "StepFun Step Plan International",
|
|
492
|
+
description: "StepFun Step Plan international coding/planning endpoint.",
|
|
493
|
+
docsUrl: "https://platform.stepfun.com/docs",
|
|
494
|
+
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
|
495
|
+
envVars: ["STEPFUN_API_KEY"],
|
|
496
|
+
api: "openai-completions",
|
|
497
|
+
baseUrlPresets: [{
|
|
498
|
+
id: "plan-intl",
|
|
499
|
+
label: "Step Plan International",
|
|
500
|
+
baseUrl: "https://api.stepfun.ai/step_plan/v1"
|
|
501
|
+
}],
|
|
502
|
+
defaultBaseUrlPreset: "plan-intl",
|
|
503
|
+
defaultModel: "step-3.7-flash",
|
|
504
|
+
models: STEPFUN_MODELS,
|
|
505
|
+
aliases: [
|
|
506
|
+
"step plan",
|
|
507
|
+
"stepfun plan",
|
|
508
|
+
"stepfun plan intl"
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
id: "stepfun-plan-cn",
|
|
513
|
+
displayName: "StepFun Step Plan China",
|
|
514
|
+
description: "StepFun Step Plan China coding/planning endpoint.",
|
|
515
|
+
docsUrl: "https://platform.stepfun.com/docs",
|
|
516
|
+
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
|
517
|
+
envVars: ["STEPFUN_API_KEY"],
|
|
518
|
+
api: "openai-completions",
|
|
519
|
+
baseUrlPresets: [{
|
|
520
|
+
id: "plan-cn",
|
|
521
|
+
label: "Step Plan China",
|
|
522
|
+
baseUrl: "https://api.stepfun.com/step_plan/v1"
|
|
523
|
+
}],
|
|
524
|
+
defaultBaseUrlPreset: "plan-cn",
|
|
525
|
+
defaultModel: "step-3.7-flash",
|
|
526
|
+
models: STEPFUN_MODELS,
|
|
527
|
+
aliases: [
|
|
528
|
+
"step plan cn",
|
|
529
|
+
"stepfun plan cn",
|
|
530
|
+
"阶跃 plan"
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
id: "xiaomi",
|
|
535
|
+
displayName: "Xiaomi MiMo",
|
|
536
|
+
description: "Xiaomi MiMo API billing endpoint through OpenAI-compatible requests.",
|
|
537
|
+
docsUrl: "https://platform.xiaomimimo.com/",
|
|
538
|
+
apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys",
|
|
539
|
+
pricingUrl: "https://mimo.mi.com/",
|
|
540
|
+
envVars: ["XIAOMI_API_KEY"],
|
|
541
|
+
api: "openai-completions",
|
|
542
|
+
baseUrlPresets: [{
|
|
543
|
+
id: "api",
|
|
544
|
+
label: "API billing",
|
|
545
|
+
baseUrl: "https://api.xiaomimimo.com/v1"
|
|
546
|
+
}],
|
|
547
|
+
defaultBaseUrlPreset: "api",
|
|
548
|
+
defaultModel: "mimo-v2.5-pro",
|
|
549
|
+
models: MIMO_MODELS,
|
|
550
|
+
aliases: [
|
|
551
|
+
"xiaomi",
|
|
552
|
+
"mimo",
|
|
553
|
+
"xiaomimimo"
|
|
554
|
+
],
|
|
555
|
+
quirks: ["Some MiMo plans document api-key style auth; keep auth header behavior configurable if needed."]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
id: "xiaomi-token-plan-cn",
|
|
559
|
+
displayName: "Xiaomi MiMo Token Plan China",
|
|
560
|
+
description: "Xiaomi MiMo Token Plan China endpoint.",
|
|
561
|
+
docsUrl: "https://platform.xiaomimimo.com/",
|
|
562
|
+
apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys",
|
|
563
|
+
pricingUrl: "https://mimo.mi.com/",
|
|
564
|
+
envVars: ["XIAOMI_TOKEN_PLAN_CN_API_KEY", "XIAOMI_TOKEN_PLAN_API_KEY"],
|
|
565
|
+
api: "openai-completions",
|
|
566
|
+
baseUrlPresets: [{
|
|
567
|
+
id: "cn",
|
|
568
|
+
label: "China",
|
|
569
|
+
baseUrl: "https://token-plan-cn.xiaomimimo.com/v1"
|
|
570
|
+
}],
|
|
571
|
+
defaultBaseUrlPreset: "cn",
|
|
572
|
+
defaultModel: "mimo-v2.5-pro",
|
|
573
|
+
models: MIMO_MODELS,
|
|
574
|
+
aliases: ["xiaomi token plan cn", "mimo token plan cn"]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
id: "xiaomi-token-plan-ams",
|
|
578
|
+
displayName: "Xiaomi MiMo Token Plan Amsterdam",
|
|
579
|
+
description: "Xiaomi MiMo Token Plan Amsterdam endpoint.",
|
|
580
|
+
docsUrl: "https://platform.xiaomimimo.com/",
|
|
581
|
+
apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys",
|
|
582
|
+
pricingUrl: "https://mimo.mi.com/",
|
|
583
|
+
envVars: ["XIAOMI_TOKEN_PLAN_AMS_API_KEY", "XIAOMI_TOKEN_PLAN_API_KEY"],
|
|
584
|
+
api: "openai-completions",
|
|
585
|
+
baseUrlPresets: [{
|
|
586
|
+
id: "ams",
|
|
587
|
+
label: "Amsterdam",
|
|
588
|
+
baseUrl: "https://token-plan-ams.xiaomimimo.com/v1"
|
|
589
|
+
}],
|
|
590
|
+
defaultBaseUrlPreset: "ams",
|
|
591
|
+
defaultModel: "mimo-v2.5-pro",
|
|
592
|
+
models: MIMO_MODELS,
|
|
593
|
+
aliases: ["xiaomi token plan ams", "mimo token plan ams"]
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
id: "xiaomi-token-plan-sgp",
|
|
597
|
+
displayName: "Xiaomi MiMo Token Plan Singapore",
|
|
598
|
+
description: "Xiaomi MiMo Token Plan Singapore endpoint.",
|
|
599
|
+
docsUrl: "https://platform.xiaomimimo.com/",
|
|
600
|
+
apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys",
|
|
601
|
+
pricingUrl: "https://mimo.mi.com/",
|
|
602
|
+
envVars: ["XIAOMI_TOKEN_PLAN_SGP_API_KEY", "XIAOMI_TOKEN_PLAN_API_KEY"],
|
|
603
|
+
api: "openai-completions",
|
|
604
|
+
baseUrlPresets: [{
|
|
605
|
+
id: "sgp",
|
|
606
|
+
label: "Singapore",
|
|
607
|
+
baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1"
|
|
608
|
+
}],
|
|
609
|
+
defaultBaseUrlPreset: "sgp",
|
|
610
|
+
defaultModel: "mimo-v2.5-pro",
|
|
611
|
+
models: MIMO_MODELS,
|
|
612
|
+
aliases: ["xiaomi token plan sgp", "mimo token plan sgp"]
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
id: "zhipu-cn",
|
|
616
|
+
displayName: "Zhipu GLM China",
|
|
617
|
+
description: "Zhipu GLM models through the BigModel OpenAI-compatible API.",
|
|
618
|
+
docsUrl: "https://docs.bigmodel.cn/cn/guide/start/model-overview",
|
|
619
|
+
apiKeyUrl: "https://bigmodel.cn/usercenter/proj-mgmt/apikeys",
|
|
620
|
+
pricingUrl: "https://bigmodel.cn/pricing",
|
|
621
|
+
envVars: ["ZHIPU_API_KEY", "BIGMODEL_API_KEY"],
|
|
622
|
+
api: "openai-completions",
|
|
623
|
+
baseUrlPresets: [{
|
|
624
|
+
id: "cn",
|
|
625
|
+
label: "China",
|
|
626
|
+
baseUrl: "https://open.bigmodel.cn/api/paas/v4"
|
|
627
|
+
}],
|
|
628
|
+
defaultBaseUrlPreset: "cn",
|
|
629
|
+
defaultModel: "glm-5.2",
|
|
630
|
+
models: [{
|
|
631
|
+
id: "glm-5.2",
|
|
632
|
+
name: "GLM 5.2",
|
|
633
|
+
contextWindow: 1e6,
|
|
634
|
+
maxTokens: 65536,
|
|
635
|
+
reasoning: true,
|
|
636
|
+
input: ["text"]
|
|
637
|
+
}],
|
|
638
|
+
aliases: [
|
|
639
|
+
"zhipu",
|
|
640
|
+
"glm",
|
|
641
|
+
"bigmodel",
|
|
642
|
+
"zai cn"
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
id: "zai",
|
|
647
|
+
displayName: "Zhipu GLM International",
|
|
648
|
+
description: "Zhipu GLM models through the z.ai OpenAI-compatible endpoint.",
|
|
649
|
+
docsUrl: "https://docs.z.ai/guides/overview/quick-start",
|
|
650
|
+
apiKeyUrl: "https://z.ai/manage-apikey/apikey-list",
|
|
651
|
+
pricingUrl: "https://z.ai/manage-apikey/billing",
|
|
652
|
+
envVars: ["ZAI_API_KEY", "Z_AI_API_KEY"],
|
|
653
|
+
api: "openai-completions",
|
|
654
|
+
baseUrlPresets: [{
|
|
655
|
+
id: "global",
|
|
656
|
+
label: "International",
|
|
657
|
+
baseUrl: "https://api.z.ai/api/paas/v4"
|
|
658
|
+
}],
|
|
659
|
+
defaultBaseUrlPreset: "global",
|
|
660
|
+
defaultModel: "glm-5.2",
|
|
661
|
+
models: [{
|
|
662
|
+
id: "glm-5.2",
|
|
663
|
+
name: "GLM 5.2",
|
|
664
|
+
contextWindow: 1e6,
|
|
665
|
+
maxTokens: 65536,
|
|
666
|
+
reasoning: true,
|
|
667
|
+
input: ["text"]
|
|
668
|
+
}],
|
|
669
|
+
aliases: [
|
|
670
|
+
"zai",
|
|
671
|
+
"z.ai",
|
|
672
|
+
"zhipu global",
|
|
673
|
+
"glm global"
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
id: "zai-coding-global",
|
|
678
|
+
displayName: "Zhipu GLM Coding Plan International",
|
|
679
|
+
description: "Zhipu GLM coding-plan international endpoint.",
|
|
680
|
+
docsUrl: "https://docs.z.ai/guides/overview/quick-start",
|
|
681
|
+
apiKeyUrl: "https://z.ai/manage-apikey/apikey-list",
|
|
682
|
+
pricingUrl: "https://z.ai/manage-apikey/billing",
|
|
683
|
+
envVars: ["ZAI_API_KEY", "Z_AI_API_KEY"],
|
|
684
|
+
api: "openai-completions",
|
|
685
|
+
baseUrlPresets: [{
|
|
686
|
+
id: "coding-global",
|
|
687
|
+
label: "Coding Global",
|
|
688
|
+
baseUrl: "https://api.z.ai/api/coding/paas/v4"
|
|
689
|
+
}],
|
|
690
|
+
defaultBaseUrlPreset: "coding-global",
|
|
691
|
+
defaultModel: "glm-5.2",
|
|
692
|
+
models: [{
|
|
693
|
+
id: "glm-5.2",
|
|
694
|
+
name: "GLM 5.2",
|
|
695
|
+
contextWindow: 1e6,
|
|
696
|
+
maxTokens: 65536,
|
|
697
|
+
reasoning: true,
|
|
698
|
+
input: ["text"]
|
|
699
|
+
}],
|
|
700
|
+
aliases: [
|
|
701
|
+
"zai coding",
|
|
702
|
+
"zhipu coding global",
|
|
703
|
+
"glm coding global"
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
id: "zhipu-coding-cn",
|
|
708
|
+
displayName: "Zhipu GLM Coding Plan China",
|
|
709
|
+
description: "Zhipu GLM coding-plan China endpoint.",
|
|
710
|
+
docsUrl: "https://docs.bigmodel.cn/cn/guide/start/model-overview",
|
|
711
|
+
apiKeyUrl: "https://bigmodel.cn/usercenter/proj-mgmt/apikeys",
|
|
712
|
+
pricingUrl: "https://bigmodel.cn/pricing",
|
|
713
|
+
envVars: [
|
|
714
|
+
"ZHIPU_API_KEY",
|
|
715
|
+
"BIGMODEL_API_KEY",
|
|
716
|
+
"ZAI_API_KEY"
|
|
717
|
+
],
|
|
718
|
+
api: "openai-completions",
|
|
719
|
+
baseUrlPresets: [{
|
|
720
|
+
id: "coding-cn",
|
|
721
|
+
label: "Coding China",
|
|
722
|
+
baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4"
|
|
723
|
+
}],
|
|
724
|
+
defaultBaseUrlPreset: "coding-cn",
|
|
725
|
+
defaultModel: "glm-5.2",
|
|
726
|
+
models: [{
|
|
727
|
+
id: "glm-5.2",
|
|
728
|
+
name: "GLM 5.2",
|
|
729
|
+
contextWindow: 1e6,
|
|
730
|
+
maxTokens: 65536,
|
|
731
|
+
reasoning: true,
|
|
732
|
+
input: ["text"]
|
|
733
|
+
}],
|
|
734
|
+
aliases: [
|
|
735
|
+
"zhipu coding",
|
|
736
|
+
"glm coding cn",
|
|
737
|
+
"智谱 coding"
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
id: "minimax",
|
|
742
|
+
displayName: "MiniMax",
|
|
743
|
+
description: "MiniMax text models. Anthropic-compatible endpoint is preferred for agent/tool workflows.",
|
|
744
|
+
docsUrl: "https://platform.minimax.io/docs",
|
|
745
|
+
apiKeyUrl: "https://platform.minimax.io/user-center/basic-information/interface-key",
|
|
746
|
+
pricingUrl: "https://platform.minimax.io/docs/guides/models-intro",
|
|
747
|
+
envVars: ["MINIMAX_API_KEY"],
|
|
748
|
+
api: "anthropic-messages",
|
|
749
|
+
authHeader: true,
|
|
750
|
+
baseUrlPresets: [{
|
|
751
|
+
id: "intl-anthropic",
|
|
752
|
+
label: "International Anthropic-compatible",
|
|
753
|
+
baseUrl: "https://api.minimax.io/anthropic"
|
|
754
|
+
}, {
|
|
755
|
+
id: "intl-openai",
|
|
756
|
+
label: "International OpenAI-compatible",
|
|
757
|
+
baseUrl: "https://api.minimax.io/v1"
|
|
758
|
+
}],
|
|
759
|
+
defaultBaseUrlPreset: "intl-anthropic",
|
|
760
|
+
defaultModel: "MiniMax-M3",
|
|
761
|
+
models: MINIMAX_MODELS,
|
|
762
|
+
aliases: [
|
|
763
|
+
"minimax",
|
|
764
|
+
"mini max",
|
|
765
|
+
"abab"
|
|
766
|
+
],
|
|
767
|
+
quirks: ["Switch API type to OpenAI-compatible if you select an /v1 endpoint."]
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
id: "minimax-cn",
|
|
771
|
+
displayName: "MiniMax China",
|
|
772
|
+
description: "MiniMax China endpoint. Anthropic-compatible endpoint is preferred for agent/tool workflows.",
|
|
773
|
+
docsUrl: "https://platform.minimaxi.com/document",
|
|
774
|
+
apiKeyUrl: "https://platform.minimaxi.com/user-center/basic-information/interface-key",
|
|
775
|
+
pricingUrl: "https://platform.minimaxi.com/document/Price",
|
|
776
|
+
envVars: ["MINIMAX_CN_API_KEY", "MINIMAX_API_KEY"],
|
|
777
|
+
api: "anthropic-messages",
|
|
778
|
+
authHeader: true,
|
|
779
|
+
baseUrlPresets: [{
|
|
780
|
+
id: "cn-anthropic",
|
|
781
|
+
label: "China Anthropic-compatible",
|
|
782
|
+
baseUrl: "https://api.minimaxi.com/anthropic"
|
|
783
|
+
}, {
|
|
784
|
+
id: "cn-openai",
|
|
785
|
+
label: "China OpenAI-compatible",
|
|
786
|
+
baseUrl: "https://api.minimaxi.com/v1"
|
|
787
|
+
}],
|
|
788
|
+
defaultBaseUrlPreset: "cn-anthropic",
|
|
789
|
+
defaultModel: "MiniMax-M3",
|
|
790
|
+
models: MINIMAX_MODELS,
|
|
791
|
+
aliases: [
|
|
792
|
+
"minimax cn",
|
|
793
|
+
"mini max cn",
|
|
794
|
+
"abab cn"
|
|
795
|
+
],
|
|
796
|
+
quirks: ["Switch API type to OpenAI-compatible if you select an /v1 endpoint."]
|
|
797
|
+
}
|
|
798
|
+
];
|
|
799
|
+
const PRESET_BY_ID = new Map(DOMESTIC_PROVIDER_PRESETS.map((preset) => [preset.id, preset]));
|
|
800
|
+
function getDomesticProviderPreset(id) {
|
|
801
|
+
return PRESET_BY_ID.get(id);
|
|
802
|
+
}
|
|
803
|
+
function getDomesticProviderPresetIds() {
|
|
804
|
+
return DOMESTIC_PROVIDER_PRESETS.map((preset) => preset.id);
|
|
805
|
+
}
|
|
806
|
+
function getDomesticProviderBaseUrl(preset) {
|
|
807
|
+
return preset.baseUrlPresets.find((entry) => entry.id === preset.defaultBaseUrlPreset)?.baseUrl ?? preset.baseUrlPresets[0]?.baseUrl ?? "";
|
|
808
|
+
}
|
|
809
|
+
function providerConfigFromDomesticPreset(preset, params = {}) {
|
|
810
|
+
const ids = params.modelIds?.length ? params.modelIds : preset.models.map((model) => model.id);
|
|
811
|
+
return {
|
|
812
|
+
baseUrl: params.baseUrl ?? getDomesticProviderBaseUrl(preset),
|
|
813
|
+
apiKey: params.apiKey,
|
|
814
|
+
api: preset.api,
|
|
815
|
+
...preset.authHeader === void 0 ? {} : { authHeader: preset.authHeader },
|
|
816
|
+
...preset.headers ? { headers: preset.headers } : {},
|
|
817
|
+
models: ids.map((id) => {
|
|
818
|
+
const model = preset.models.find((entry) => entry.id === id);
|
|
819
|
+
return {
|
|
820
|
+
id,
|
|
821
|
+
name: model?.name ?? id,
|
|
822
|
+
api: preset.api,
|
|
823
|
+
...model?.contextWindow ? { contextWindow: model.contextWindow } : {},
|
|
824
|
+
...model?.maxTokens ? { maxTokens: model.maxTokens } : {},
|
|
825
|
+
...model?.reasoning ? { reasoning: model.reasoning } : {},
|
|
826
|
+
input: model?.input ?? ["text"]
|
|
827
|
+
};
|
|
828
|
+
})
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
//#endregion
|
|
832
|
+
export { DOMESTIC_PROVIDER_PRESETS, getDomesticProviderBaseUrl, getDomesticProviderPreset, getDomesticProviderPresetIds, providerConfigFromDomesticPreset };
|
|
833
|
+
|
|
834
|
+
//# sourceMappingURL=domestic-presets.js.map
|