@xopcai/xopc 0.0.119 → 0.0.121
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/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-CU8J6zou.js → agent-avatar-dicebear-4AW4JgSU.js} +1 -1
- package/dist/gateway/static/root/assets/agents-2SVUUPlp.js +2 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-B9vfYoEr.js → app-management-settings-panel-CE6GkGU2.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-ClOzIO24.js → appearance-settings-BmaUjghw.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DU0dz9Zo.js → apps-page-BWeQ1I49.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BkVIgZzA.js → archive-plugin-CX4_KWut.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CaCMWh1D.js → attachment-load-jf-PIIUU.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-suggestion-card-DhGDpKP3.js → automation-suggestion-card-BHk5rtJz.js} +1 -1
- package/dist/gateway/static/root/assets/automations-page-QHotl53D.js +1 -0
- package/dist/gateway/static/root/assets/{binary-plugins-B4TO_bsn.js → binary-plugins-DG9XQikd.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DJRWwWNI.js → block-editor-Up_VIxLJ.js} +6 -6
- package/dist/gateway/static/root/assets/browser-settings-page-Cmwi6IIQ.js +8 -0
- package/dist/gateway/static/root/assets/{capability-presets-api-Befi89CL.js → capability-presets-api-CGM4OyMw.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-presets-settings-panel-_G8eb2vJ.js → capability-presets-settings-panel-CzWt0LBb.js} +1 -1
- package/dist/gateway/static/root/assets/{channel-recipient-api-BNSuJb5f.js → channel-recipient-api-BEByL4_o.js} +1 -1
- package/dist/gateway/static/root/assets/channels-settings-BOMCUe2J.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-C-Dexk_F.js +2 -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-WPEj8pir.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DYh402XV.js → extension-debug-page-DZxa_j7-.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Cr_TizrN.js → extension-page-CseziW53.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-B_9J-xyo.js +1 -0
- package/dist/gateway/static/root/assets/{fetch-Y7AEX4H3.js → fetch-Cs4ck8zA.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-RbMmAOpX.js → gateway-config-api-Dl223a7r.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-DdzbtW9R.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DiD_Tx4N.js → gateway-startup-retry-IvePwjFE.js} +1 -1
- package/dist/gateway/static/root/assets/goal-detail-page-Dxldogms.js +1 -0
- package/dist/gateway/static/root/assets/{goals-config-api-DqxVi0p5.js → goals-config-api-CUCP6yCl.js} +1 -1
- package/dist/gateway/static/root/assets/goals-page-DU5Nd6Xp.js +2 -0
- package/dist/gateway/static/root/assets/goals-settings-Dj87qPxv.js +1 -0
- package/dist/gateway/static/root/assets/heartbeat-settings-Cgm5JmwH.js +1 -0
- package/dist/gateway/static/root/assets/index-BU1pvxmS.js +191 -0
- package/dist/gateway/static/root/assets/index-l54WfSqe.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Dvg53qnd.js → keyboard-shortcuts-settings-DJgYw0nB.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DjbfSsfA.js → locale-store-Ba72bFmP.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-C10aS4XO.js +2 -0
- package/dist/gateway/static/root/assets/{markdown-split-CpHxbtWJ.js → markdown-split-gnQ_EiGo.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-SFPQRSxq.js → media-plugins-CQV-mgJn.js} +1 -1
- package/dist/gateway/static/root/assets/messages-C6Kc4Jhf.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-panel-B35CAfg6.js +2 -0
- package/dist/gateway/static/root/assets/note-detail-page-Brlwse8x.js +2 -0
- package/dist/gateway/static/root/assets/{note-image-lightbox-BUYURRgn.js → note-image-lightbox-BthwKjLA.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-BsIBSFyZ.js → notes-page-CoAwRc7L.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BHz9iWYA.js → preview-open-alternatives-BPMXC-2u.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-B36RQ05h.js +1 -0
- package/dist/gateway/static/root/assets/{save-bar-controls-CefkOlRg.js → save-bar-controls-BEHqwZjz.js} +1 -1
- package/dist/gateway/static/root/assets/schedule-field-CMY25m97.js +1 -0
- package/dist/gateway/static/root/assets/schema-form-CxjxsFfg.js +1 -0
- package/dist/gateway/static/root/assets/sessions-page-73THChnj.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-CR9VsY-R.js +1 -0
- package/dist/gateway/static/root/assets/{settings-collapsible-section-BouO6JTi.js → settings-collapsible-section-s-kiLAxP.js} +1 -1
- package/dist/gateway/static/root/assets/settings-form-section-CIxIEYxU.js +1 -0
- package/dist/gateway/static/root/assets/settings-page-BJ1AhfKI.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-layout-BJ4Gsef5.js → settings-page-layout--6qT7ZJa.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-CrUjHPQo.js → setup-status-panel-C1TtS1vJ.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BDy2btRN.js → share-preview-page-BZADSbS1.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-gqC8Rmhy.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-C9P-WYvS.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-CEpSvOhF.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-CRngrlnZ.js → system-settings-panel-Czjf0kLJ.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-CD2wtgZV.js → theme-store-Bt6vAkSB.js} +1 -1
- package/dist/gateway/static/root/assets/{typed-models-lib-BltBc0b-.js → typed-models-lib-Cmt8SYdI.js} +1 -1
- package/dist/gateway/static/root/assets/{use-channel-catalog-CjN-51e6.js → use-channel-catalog-DyM-ckEQ.js} +1 -1
- package/dist/gateway/static/root/assets/user-profile-settings-panel-BygLv8vm.js +1 -0
- package/dist/gateway/static/root/assets/{utils-B5M5-YvK.js → utils-CloW8coB.js} +1 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-BsoqJba6.js +1 -0
- package/dist/gateway/static/root/assets/{voice-player-store-B7ykUlHM.js → voice-player-store-DduWlJYV.js} +1 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-CcQeX6l5.js +3 -0
- package/dist/gateway/static/root/assets/workflows-page-CeA8A9Ef.js +18 -0
- package/dist/gateway/static/root/index.html +9 -10
- package/dist/package.js +1 -1
- package/dist/src/agent/context/workspace-templates/AGENTS.md +3 -2
- 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/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/builtin-memory-store.d.ts +1 -1
- package/dist/src/agent/memory/builtin-memory-store.js +1 -1
- package/dist/src/agent/memory/builtin-memory-store.js.map +1 -1
- package/dist/src/agent/memory/builtin-provider.d.ts +2 -2
- package/dist/src/agent/memory/builtin-provider.js +2 -2
- package/dist/src/agent/memory/builtin-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/dreaming/light-sweep.d.ts +0 -7
- package/dist/src/agent/memory/dreaming/light-sweep.js +16 -277
- package/dist/src/agent/memory/dreaming/light-sweep.js.map +1 -1
- package/dist/src/agent/memory/dreaming/rem-patterns.d.ts +1 -1
- package/dist/src/agent/memory/dreaming/rem-patterns.js +1 -1
- package/dist/src/agent/memory/dreaming/rem-patterns.js.map +1 -1
- package/dist/src/agent/memory/dreaming/short-term-store.d.ts +3 -3
- package/dist/src/agent/memory/dreaming/short-term-store.js +5 -5
- package/dist/src/agent/memory/dreaming/short-term-store.js.map +1 -1
- package/dist/src/agent/memory/dreaming/utils.d.ts +2 -2
- package/dist/src/agent/memory/dreaming/utils.js +2 -2
- package/dist/src/agent/memory/dreaming/utils.js.map +1 -1
- package/dist/src/agent/memory/index.d.ts +0 -2
- package/dist/src/agent/memory/index.js +1 -2
- 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/memory-skills.js +11 -10
- package/dist/src/agent/prompt/sections/memory-skills.js.map +1 -1
- package/dist/src/agent/prompt/sections/tooling.js +23 -7
- package/dist/src/agent/prompt/sections/tooling.js.map +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +1 -0
- package/dist/src/agent/prompt/service-prompt-builder.js.map +1 -1
- package/dist/src/agent/prompt/system-prompt.d.ts +1 -0
- package/dist/src/agent/prompt/system-prompt.js +13 -1
- package/dist/src/agent/prompt/system-prompt.js.map +1 -1
- package/dist/src/agent/reply/startup-context.js +6 -105
- package/dist/src/agent/reply/startup-context.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.d.ts +0 -3
- package/dist/src/agent/service.js +0 -41
- package/dist/src/agent/service.js.map +1 -1
- package/dist/src/agent/starter-agents.js +16 -16
- 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/memory-tool.js +2 -2
- package/dist/src/agent/tools/memory-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-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/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js.map +1 -1
- package/dist/src/cli/commands/agent.js +2 -2
- package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/models.js +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/onboard.js +1 -1
- package/dist/src/cli/commands/profile.js +1 -1
- package/dist/src/cli/commands/tunnel.js +1 -1
- package/dist/src/cli/commands/update.js +1 -1
- package/dist/src/cli/extension-cli-register.js +1 -1
- package/dist/src/cli/templates.js +3 -2
- package/dist/src/cli/templates.js.map +1 -1
- package/dist/src/config/agent-profile.js +1 -1
- 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 +3 -3
- package/dist/src/config/schema.d.ts +73 -13
- package/dist/src/config/schema.js +59 -24
- 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/agents-admin.js +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/config-patch/misc.js +4 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.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/voice.js +1 -1
- package/dist/src/gateway/hono/routes/voice.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/run-loop.js +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/infra/update-restart.js +1 -1
- package/dist/src/mcp/channel-bridge.js +1 -1
- package/dist/src/media/paths.js +3 -4
- package/dist/src/media/paths.js.map +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/service.js.map +1 -1
- 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/session-title.js +1 -1
- package/dist/src/session/session-title.js.map +1 -1
- package/dist/src/storage/sqlite/row-mappers.js +3 -1
- package/dist/src/storage/sqlite/row-mappers.js.map +1 -1
- package/dist/src/tui/backends/embedded-backend.js +1 -2
- package/dist/src/tui/backends/embedded-backend.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/draft/workflow-draft-service.js +1 -1
- package/dist/src/workflows/draft/workflow-draft-service.js.map +1 -1
- package/package.json +6 -6
- package/dist/gateway/static/root/assets/Combination-BzaXOLd9.js +0 -41
- package/dist/gateway/static/root/assets/agents-B0hkpLhP.js +0 -2
- package/dist/gateway/static/root/assets/automations-page-CTedroVo.js +0 -1
- package/dist/gateway/static/root/assets/browser-settings-page-FCDwOOBK.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-C3d5JBJX.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-yaUNvt5u.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-DNrdg1Ve.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BU1KoKRj.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-C79wkXef.js +0 -1
- package/dist/gateway/static/root/assets/goal-detail-page-9paXuHdo.js +0 -1
- package/dist/gateway/static/root/assets/goals-page-CS0R-Af2.js +0 -2
- package/dist/gateway/static/root/assets/goals-settings-CSuzZ8Ae.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DXPaYJm3.js +0 -1
- package/dist/gateway/static/root/assets/index-BoKafJIZ.js +0 -191
- package/dist/gateway/static/root/assets/index-CArhCcYn.css +0 -1
- package/dist/gateway/static/root/assets/logs-page-DLXPcksQ.js +0 -2
- package/dist/gateway/static/root/assets/messages-CrDHEbss.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-panel-BDF2iyRk.js +0 -2
- package/dist/gateway/static/root/assets/note-detail-page-CSb_hwig.js +0 -2
- package/dist/gateway/static/root/assets/remote-access-hub-CwzSovcS.js +0 -1
- package/dist/gateway/static/root/assets/schedule-field-CmTRoOcE.js +0 -1
- package/dist/gateway/static/root/assets/schema-form-FMKv1vGu.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-PHmX-NmA.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BRAeKJN4.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-D-4lBl6X.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-KKrbFjy8.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-B18OBmH5.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-C28-2uKQ.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-Bm2ebkwl.js +0 -2
- package/dist/gateway/static/root/assets/user-profile-settings-panel-DJ1dKwZy.js +0 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-CeEevm7z.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-C4PzUQjB.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-BL84_-Ky.js +0 -18
- package/dist/src/agent/memory/memory-flush.d.ts +0 -27
- package/dist/src/agent/memory/memory-flush.js +0 -124
- package/dist/src/agent/memory/memory-flush.js.map +0 -1
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import type { ProviderConfig } from '../config/models-json.js';
|
|
2
|
+
export interface DomesticProviderModelPreset {
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
contextWindow?: number;
|
|
6
|
+
maxTokens?: number;
|
|
7
|
+
reasoning?: boolean;
|
|
8
|
+
input?: Array<'text' | 'image'>;
|
|
9
|
+
}
|
|
10
|
+
export interface DomesticProviderBaseUrlPreset {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DomesticProviderPreset {
|
|
17
|
+
id: string;
|
|
18
|
+
displayName: string;
|
|
19
|
+
description: string;
|
|
20
|
+
docsUrl: string;
|
|
21
|
+
apiKeyUrl: string;
|
|
22
|
+
pricingUrl?: string;
|
|
23
|
+
envVars: string[];
|
|
24
|
+
api: NonNullable<ProviderConfig['api']>;
|
|
25
|
+
authHeader?: boolean;
|
|
26
|
+
headers?: Record<string, string>;
|
|
27
|
+
baseUrlPresets: DomesticProviderBaseUrlPreset[];
|
|
28
|
+
defaultBaseUrlPreset: string;
|
|
29
|
+
defaultModel: string;
|
|
30
|
+
models: DomesticProviderModelPreset[];
|
|
31
|
+
aliases: string[];
|
|
32
|
+
quirks?: string[];
|
|
33
|
+
}
|
|
34
|
+
export declare const DOMESTIC_PROVIDER_PRESETS: readonly [{
|
|
35
|
+
readonly id: "dashscope-cn";
|
|
36
|
+
readonly displayName: "Alibaba Bailian / DashScope China";
|
|
37
|
+
readonly description: "Alibaba Bailian Qwen models through the China DashScope OpenAI-compatible endpoint.";
|
|
38
|
+
readonly docsUrl: "https://help.aliyun.com/zh/model-studio/developer-reference/compatibility-of-openai-with-dashscope";
|
|
39
|
+
readonly apiKeyUrl: "https://dashscope.console.aliyun.com/apiKey";
|
|
40
|
+
readonly pricingUrl: "https://help.aliyun.com/zh/model-studio/developer-reference/tongyi-thousand-questions-metering-and-billing";
|
|
41
|
+
readonly envVars: ["DASHSCOPE_API_KEY", "QWEN_API_KEY"];
|
|
42
|
+
readonly api: "openai-completions";
|
|
43
|
+
readonly baseUrlPresets: [{
|
|
44
|
+
readonly id: "cn";
|
|
45
|
+
readonly label: "China";
|
|
46
|
+
readonly baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1";
|
|
47
|
+
}];
|
|
48
|
+
readonly defaultBaseUrlPreset: "cn";
|
|
49
|
+
readonly defaultModel: "qwen3.7-plus";
|
|
50
|
+
readonly models: DomesticProviderModelPreset[];
|
|
51
|
+
readonly aliases: ["qwen", "tongyi", "aliyun", "bailian", "dashscope", "dashscope cn", "阿里百炼"];
|
|
52
|
+
readonly quirks: ["Some Qwen coding endpoints use different hosts; keep the Base URL editable."];
|
|
53
|
+
}, {
|
|
54
|
+
readonly id: "dashscope-intl";
|
|
55
|
+
readonly displayName: "Alibaba Bailian / DashScope International";
|
|
56
|
+
readonly description: "Alibaba Bailian Qwen models through the international DashScope OpenAI-compatible endpoint.";
|
|
57
|
+
readonly docsUrl: "https://www.alibabacloud.com/help/en/model-studio/compatibility-of-openai-with-dashscope";
|
|
58
|
+
readonly apiKeyUrl: "https://modelstudio.console.alibabacloud.com/";
|
|
59
|
+
readonly pricingUrl: "https://www.alibabacloud.com/help/en/model-studio/billing-for-tongyi-qianwen";
|
|
60
|
+
readonly envVars: ["DASHSCOPE_API_KEY", "QWEN_API_KEY"];
|
|
61
|
+
readonly api: "openai-completions";
|
|
62
|
+
readonly baseUrlPresets: [{
|
|
63
|
+
readonly id: "intl";
|
|
64
|
+
readonly label: "International";
|
|
65
|
+
readonly baseUrl: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1";
|
|
66
|
+
}];
|
|
67
|
+
readonly defaultBaseUrlPreset: "intl";
|
|
68
|
+
readonly defaultModel: "qwen3.7-plus";
|
|
69
|
+
readonly models: DomesticProviderModelPreset[];
|
|
70
|
+
readonly aliases: ["qwen intl", "tongyi intl", "alibaba cloud", "dashscope intl"];
|
|
71
|
+
readonly quirks: ["Use an international DashScope key for the international endpoint."];
|
|
72
|
+
}, {
|
|
73
|
+
readonly id: "volcengine-ark";
|
|
74
|
+
readonly displayName: "Volcengine Ark";
|
|
75
|
+
readonly description: "Volcengine Ark models through the OpenAI-compatible API.";
|
|
76
|
+
readonly docsUrl: "https://www.volcengine.com/docs/82379/1302008";
|
|
77
|
+
readonly apiKeyUrl: "https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey";
|
|
78
|
+
readonly envVars: ["ARK_API_KEY", "VOLCENGINE_API_KEY"];
|
|
79
|
+
readonly api: "openai-completions";
|
|
80
|
+
readonly baseUrlPresets: [{
|
|
81
|
+
readonly id: "cn-beijing";
|
|
82
|
+
readonly label: "China Beijing";
|
|
83
|
+
readonly baseUrl: "https://ark.cn-beijing.volces.com/api/v3";
|
|
84
|
+
readonly description: "Model IDs are usually Ark endpoint IDs.";
|
|
85
|
+
}];
|
|
86
|
+
readonly defaultBaseUrlPreset: "cn-beijing";
|
|
87
|
+
readonly defaultModel: "ep-your-endpoint-id";
|
|
88
|
+
readonly models: [{
|
|
89
|
+
readonly id: "ep-your-endpoint-id";
|
|
90
|
+
readonly name: "Ark endpoint ID";
|
|
91
|
+
readonly contextWindow: 128000;
|
|
92
|
+
readonly input: ["text"];
|
|
93
|
+
}];
|
|
94
|
+
readonly aliases: ["doubao", "ark", "volcengine", "volces", "bytedance"];
|
|
95
|
+
readonly quirks: ["Use the Ark endpoint id as the model id."];
|
|
96
|
+
}, {
|
|
97
|
+
readonly id: "volcengine-plan";
|
|
98
|
+
readonly displayName: "Volcengine Doubao Coding Plan";
|
|
99
|
+
readonly description: "Doubao coding-plan models through Volcengine Ark coding endpoint.";
|
|
100
|
+
readonly docsUrl: "https://www.volcengine.com/docs/82379/1302008";
|
|
101
|
+
readonly apiKeyUrl: "https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey";
|
|
102
|
+
readonly envVars: ["ARK_API_KEY", "VOLCENGINE_API_KEY"];
|
|
103
|
+
readonly api: "openai-completions";
|
|
104
|
+
readonly baseUrlPresets: [{
|
|
105
|
+
readonly id: "cn-beijing-coding";
|
|
106
|
+
readonly label: "China Beijing Coding Plan";
|
|
107
|
+
readonly baseUrl: "https://ark.cn-beijing.volces.com/api/coding/v3";
|
|
108
|
+
}];
|
|
109
|
+
readonly defaultBaseUrlPreset: "cn-beijing-coding";
|
|
110
|
+
readonly defaultModel: "ark-code-latest";
|
|
111
|
+
readonly models: [{
|
|
112
|
+
readonly id: "ark-code-latest";
|
|
113
|
+
readonly name: "Ark Coding Plan";
|
|
114
|
+
readonly contextWindow: 256000;
|
|
115
|
+
readonly maxTokens: 4096;
|
|
116
|
+
readonly input: ["text"];
|
|
117
|
+
}, {
|
|
118
|
+
readonly id: "doubao-seed-2.0-code";
|
|
119
|
+
readonly name: "Doubao Seed 2.0 Code";
|
|
120
|
+
readonly contextWindow: 256000;
|
|
121
|
+
readonly maxTokens: 4096;
|
|
122
|
+
readonly input: ["text"];
|
|
123
|
+
}, {
|
|
124
|
+
readonly id: "doubao-seed-2.0-pro";
|
|
125
|
+
readonly name: "Doubao Seed 2.0 Pro";
|
|
126
|
+
readonly contextWindow: 256000;
|
|
127
|
+
readonly maxTokens: 4096;
|
|
128
|
+
readonly input: ["text"];
|
|
129
|
+
}, {
|
|
130
|
+
readonly id: "doubao-seed-2.0-lite";
|
|
131
|
+
readonly name: "Doubao Seed 2.0 Lite";
|
|
132
|
+
readonly contextWindow: 256000;
|
|
133
|
+
readonly maxTokens: 4096;
|
|
134
|
+
readonly input: ["text"];
|
|
135
|
+
}];
|
|
136
|
+
readonly aliases: ["doubao coding", "volcengine plan", "ark coding plan", "火山方舟 coding"];
|
|
137
|
+
}, {
|
|
138
|
+
readonly id: "byteplus-plan";
|
|
139
|
+
readonly displayName: "BytePlus Doubao Coding Plan";
|
|
140
|
+
readonly description: "Doubao coding-plan models through the BytePlus international coding endpoint.";
|
|
141
|
+
readonly docsUrl: "https://docs.byteplus.com/en/docs/ModelArk/OpenAI";
|
|
142
|
+
readonly apiKeyUrl: "https://console.byteplus.com/ark/region:ark+ap-southeast-1/apiKey";
|
|
143
|
+
readonly envVars: ["BYTEPLUS_API_KEY", "ARK_API_KEY"];
|
|
144
|
+
readonly api: "openai-completions";
|
|
145
|
+
readonly baseUrlPresets: [{
|
|
146
|
+
readonly id: "ap-southeast-coding";
|
|
147
|
+
readonly label: "Asia Pacific Coding Plan";
|
|
148
|
+
readonly baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3";
|
|
149
|
+
}];
|
|
150
|
+
readonly defaultBaseUrlPreset: "ap-southeast-coding";
|
|
151
|
+
readonly defaultModel: "ark-code-latest";
|
|
152
|
+
readonly models: [{
|
|
153
|
+
readonly id: "ark-code-latest";
|
|
154
|
+
readonly name: "Ark Coding Plan";
|
|
155
|
+
readonly contextWindow: 256000;
|
|
156
|
+
readonly maxTokens: 4096;
|
|
157
|
+
readonly input: ["text"];
|
|
158
|
+
}, {
|
|
159
|
+
readonly id: "doubao-seed-2.0-code";
|
|
160
|
+
readonly name: "Doubao Seed 2.0 Code";
|
|
161
|
+
readonly contextWindow: 256000;
|
|
162
|
+
readonly maxTokens: 4096;
|
|
163
|
+
readonly input: ["text"];
|
|
164
|
+
}, {
|
|
165
|
+
readonly id: "doubao-seed-2.0-pro";
|
|
166
|
+
readonly name: "Doubao Seed 2.0 Pro";
|
|
167
|
+
readonly contextWindow: 256000;
|
|
168
|
+
readonly maxTokens: 4096;
|
|
169
|
+
readonly input: ["text"];
|
|
170
|
+
}, {
|
|
171
|
+
readonly id: "doubao-seed-2.0-lite";
|
|
172
|
+
readonly name: "Doubao Seed 2.0 Lite";
|
|
173
|
+
readonly contextWindow: 256000;
|
|
174
|
+
readonly maxTokens: 4096;
|
|
175
|
+
readonly input: ["text"];
|
|
176
|
+
}];
|
|
177
|
+
readonly aliases: ["byteplus", "byteplus plan", "doubao coding international"];
|
|
178
|
+
}, {
|
|
179
|
+
readonly id: "deepseek";
|
|
180
|
+
readonly displayName: "DeepSeek";
|
|
181
|
+
readonly description: "DeepSeek models through the OpenAI-compatible API.";
|
|
182
|
+
readonly docsUrl: "https://api-docs.deepseek.com/";
|
|
183
|
+
readonly apiKeyUrl: "https://platform.deepseek.com/api_keys";
|
|
184
|
+
readonly pricingUrl: "https://api-docs.deepseek.com/quick_start/pricing";
|
|
185
|
+
readonly envVars: ["DEEPSEEK_API_KEY"];
|
|
186
|
+
readonly api: "openai-completions";
|
|
187
|
+
readonly baseUrlPresets: [{
|
|
188
|
+
readonly id: "default";
|
|
189
|
+
readonly label: "Default";
|
|
190
|
+
readonly baseUrl: "https://api.deepseek.com";
|
|
191
|
+
}];
|
|
192
|
+
readonly defaultBaseUrlPreset: "default";
|
|
193
|
+
readonly defaultModel: "deepseek-v4-pro";
|
|
194
|
+
readonly models: [{
|
|
195
|
+
readonly id: "deepseek-v4-pro";
|
|
196
|
+
readonly name: "DeepSeek V4 Pro";
|
|
197
|
+
readonly contextWindow: 1000000;
|
|
198
|
+
readonly maxTokens: 393216;
|
|
199
|
+
readonly reasoning: true;
|
|
200
|
+
readonly input: ["text"];
|
|
201
|
+
}, {
|
|
202
|
+
readonly id: "deepseek-v4-flash";
|
|
203
|
+
readonly name: "DeepSeek V4 Flash";
|
|
204
|
+
readonly contextWindow: 1000000;
|
|
205
|
+
readonly maxTokens: 393216;
|
|
206
|
+
readonly reasoning: true;
|
|
207
|
+
readonly input: ["text"];
|
|
208
|
+
}];
|
|
209
|
+
readonly aliases: ["deep seek", "deepseek", "r1"];
|
|
210
|
+
readonly quirks: ["Prefer current catalog models; older chat/reasoner aliases may be deprecated by the provider."];
|
|
211
|
+
}, {
|
|
212
|
+
readonly id: "moonshotai-cn";
|
|
213
|
+
readonly displayName: "Kimi / Moonshot China";
|
|
214
|
+
readonly description: "Kimi models through the Moonshot China OpenAI-compatible endpoint.";
|
|
215
|
+
readonly docsUrl: "https://platform.moonshot.cn/docs";
|
|
216
|
+
readonly apiKeyUrl: "https://platform.moonshot.cn/console/api-keys";
|
|
217
|
+
readonly pricingUrl: "https://platform.moonshot.cn/docs/pricing/chat";
|
|
218
|
+
readonly envVars: ["MOONSHOT_API_KEY", "KIMI_API_KEY"];
|
|
219
|
+
readonly api: "openai-completions";
|
|
220
|
+
readonly baseUrlPresets: [{
|
|
221
|
+
readonly id: "cn";
|
|
222
|
+
readonly label: "China";
|
|
223
|
+
readonly baseUrl: "https://api.moonshot.cn/v1";
|
|
224
|
+
}];
|
|
225
|
+
readonly defaultBaseUrlPreset: "cn";
|
|
226
|
+
readonly defaultModel: "kimi-k2.7-code";
|
|
227
|
+
readonly models: [{
|
|
228
|
+
readonly id: "kimi-k2.7-code";
|
|
229
|
+
readonly name: "Kimi K2.7 Code";
|
|
230
|
+
readonly contextWindow: 262144;
|
|
231
|
+
readonly maxTokens: 32768;
|
|
232
|
+
readonly reasoning: true;
|
|
233
|
+
readonly input: ["text", "image"];
|
|
234
|
+
}, {
|
|
235
|
+
readonly id: "kimi-k2.6";
|
|
236
|
+
readonly name: "Kimi K2.6";
|
|
237
|
+
readonly contextWindow: 128000;
|
|
238
|
+
readonly input: ["text"];
|
|
239
|
+
}, {
|
|
240
|
+
readonly id: "kimi-k2.5";
|
|
241
|
+
readonly name: "Kimi K2.5";
|
|
242
|
+
readonly contextWindow: 128000;
|
|
243
|
+
readonly input: ["text"];
|
|
244
|
+
}];
|
|
245
|
+
readonly aliases: ["kimi", "moonshot", "moonshot cn"];
|
|
246
|
+
readonly quirks: ["Provider-specific thinking and tool-call stream fields may need compatibility handling."];
|
|
247
|
+
}, {
|
|
248
|
+
readonly id: "moonshotai";
|
|
249
|
+
readonly displayName: "Kimi / Moonshot International";
|
|
250
|
+
readonly description: "Kimi models through the Moonshot international OpenAI-compatible endpoint.";
|
|
251
|
+
readonly docsUrl: "https://platform.moonshot.ai/docs";
|
|
252
|
+
readonly apiKeyUrl: "https://platform.moonshot.ai/console/api-keys";
|
|
253
|
+
readonly pricingUrl: "https://platform.moonshot.ai/docs/pricing";
|
|
254
|
+
readonly envVars: ["MOONSHOT_API_KEY"];
|
|
255
|
+
readonly api: "openai-completions";
|
|
256
|
+
readonly baseUrlPresets: [{
|
|
257
|
+
readonly id: "intl";
|
|
258
|
+
readonly label: "International";
|
|
259
|
+
readonly baseUrl: "https://api.moonshot.ai/v1";
|
|
260
|
+
}];
|
|
261
|
+
readonly defaultBaseUrlPreset: "intl";
|
|
262
|
+
readonly defaultModel: "kimi-k2.7-code";
|
|
263
|
+
readonly models: [{
|
|
264
|
+
readonly id: "kimi-k2.7-code";
|
|
265
|
+
readonly name: "Kimi K2.7 Code";
|
|
266
|
+
readonly contextWindow: 262144;
|
|
267
|
+
readonly maxTokens: 32768;
|
|
268
|
+
readonly reasoning: true;
|
|
269
|
+
readonly input: ["text", "image"];
|
|
270
|
+
}, {
|
|
271
|
+
readonly id: "kimi-k2.6";
|
|
272
|
+
readonly name: "Kimi K2.6";
|
|
273
|
+
readonly contextWindow: 128000;
|
|
274
|
+
readonly input: ["text"];
|
|
275
|
+
}, {
|
|
276
|
+
readonly id: "kimi-k2.5";
|
|
277
|
+
readonly name: "Kimi K2.5";
|
|
278
|
+
readonly contextWindow: 128000;
|
|
279
|
+
readonly input: ["text"];
|
|
280
|
+
}];
|
|
281
|
+
readonly aliases: ["kimi intl", "moonshot intl", "moonshot ai"];
|
|
282
|
+
readonly quirks: ["Provider-specific thinking and tool-call stream fields may need compatibility handling."];
|
|
283
|
+
}, {
|
|
284
|
+
readonly id: "kimi-coding";
|
|
285
|
+
readonly displayName: "Kimi Coding";
|
|
286
|
+
readonly description: "Kimi dedicated coding endpoint with Anthropic-compatible requests.";
|
|
287
|
+
readonly docsUrl: "https://platform.kimi.com/docs";
|
|
288
|
+
readonly apiKeyUrl: "https://platform.kimi.com/console/api-keys";
|
|
289
|
+
readonly pricingUrl: "https://platform.kimi.com/docs/pricing/chat";
|
|
290
|
+
readonly envVars: ["KIMI_API_KEY", "MOONSHOT_API_KEY"];
|
|
291
|
+
readonly api: "anthropic-messages";
|
|
292
|
+
readonly headers: {
|
|
293
|
+
readonly 'User-Agent': "claude-code/0.1.0";
|
|
294
|
+
};
|
|
295
|
+
readonly baseUrlPresets: [{
|
|
296
|
+
readonly id: "coding";
|
|
297
|
+
readonly label: "Coding endpoint";
|
|
298
|
+
readonly baseUrl: "https://api.kimi.com/coding/";
|
|
299
|
+
}];
|
|
300
|
+
readonly defaultBaseUrlPreset: "coding";
|
|
301
|
+
readonly defaultModel: "kimi-k2.7-code";
|
|
302
|
+
readonly models: [{
|
|
303
|
+
readonly id: "kimi-k2.7-code";
|
|
304
|
+
readonly name: "Kimi K2.7 Code";
|
|
305
|
+
readonly contextWindow: 262144;
|
|
306
|
+
readonly maxTokens: 32768;
|
|
307
|
+
readonly reasoning: true;
|
|
308
|
+
readonly input: ["text", "image"];
|
|
309
|
+
}, {
|
|
310
|
+
readonly id: "kimi-for-coding";
|
|
311
|
+
readonly name: "Kimi Code";
|
|
312
|
+
readonly contextWindow: 262144;
|
|
313
|
+
readonly maxTokens: 32768;
|
|
314
|
+
readonly reasoning: true;
|
|
315
|
+
readonly input: ["text", "image"];
|
|
316
|
+
}];
|
|
317
|
+
readonly aliases: ["kimi coding", "kimi code", "moonshot coding"];
|
|
318
|
+
}, {
|
|
319
|
+
readonly id: "stepfun-intl";
|
|
320
|
+
readonly displayName: "StepFun International";
|
|
321
|
+
readonly description: "StepFun models through the international OpenAI-compatible API.";
|
|
322
|
+
readonly docsUrl: "https://platform.stepfun.com/docs";
|
|
323
|
+
readonly apiKeyUrl: "https://platform.stepfun.com/interface-key";
|
|
324
|
+
readonly envVars: ["STEPFUN_API_KEY"];
|
|
325
|
+
readonly api: "openai-completions";
|
|
326
|
+
readonly baseUrlPresets: [{
|
|
327
|
+
readonly id: "intl";
|
|
328
|
+
readonly label: "International";
|
|
329
|
+
readonly baseUrl: "https://api.stepfun.ai/v1";
|
|
330
|
+
}];
|
|
331
|
+
readonly defaultBaseUrlPreset: "intl";
|
|
332
|
+
readonly defaultModel: "step-3.7-flash";
|
|
333
|
+
readonly models: DomesticProviderModelPreset[];
|
|
334
|
+
readonly aliases: ["step", "stepfun", "jieyue", "stepfun intl"];
|
|
335
|
+
}, {
|
|
336
|
+
readonly id: "stepfun-cn";
|
|
337
|
+
readonly displayName: "StepFun China";
|
|
338
|
+
readonly description: "StepFun models through the China OpenAI-compatible API.";
|
|
339
|
+
readonly docsUrl: "https://platform.stepfun.com/docs";
|
|
340
|
+
readonly apiKeyUrl: "https://platform.stepfun.com/interface-key";
|
|
341
|
+
readonly envVars: ["STEPFUN_API_KEY"];
|
|
342
|
+
readonly api: "openai-completions";
|
|
343
|
+
readonly baseUrlPresets: [{
|
|
344
|
+
readonly id: "cn";
|
|
345
|
+
readonly label: "China";
|
|
346
|
+
readonly baseUrl: "https://api.stepfun.com/v1";
|
|
347
|
+
}];
|
|
348
|
+
readonly defaultBaseUrlPreset: "cn";
|
|
349
|
+
readonly defaultModel: "step-3.7-flash";
|
|
350
|
+
readonly models: DomesticProviderModelPreset[];
|
|
351
|
+
readonly aliases: ["step cn", "stepfun cn", "jieyue cn", "阶跃星辰"];
|
|
352
|
+
}, {
|
|
353
|
+
readonly id: "stepfun-plan-intl";
|
|
354
|
+
readonly displayName: "StepFun Step Plan International";
|
|
355
|
+
readonly description: "StepFun Step Plan international coding/planning endpoint.";
|
|
356
|
+
readonly docsUrl: "https://platform.stepfun.com/docs";
|
|
357
|
+
readonly apiKeyUrl: "https://platform.stepfun.com/interface-key";
|
|
358
|
+
readonly envVars: ["STEPFUN_API_KEY"];
|
|
359
|
+
readonly api: "openai-completions";
|
|
360
|
+
readonly baseUrlPresets: [{
|
|
361
|
+
readonly id: "plan-intl";
|
|
362
|
+
readonly label: "Step Plan International";
|
|
363
|
+
readonly baseUrl: "https://api.stepfun.ai/step_plan/v1";
|
|
364
|
+
}];
|
|
365
|
+
readonly defaultBaseUrlPreset: "plan-intl";
|
|
366
|
+
readonly defaultModel: "step-3.7-flash";
|
|
367
|
+
readonly models: DomesticProviderModelPreset[];
|
|
368
|
+
readonly aliases: ["step plan", "stepfun plan", "stepfun plan intl"];
|
|
369
|
+
}, {
|
|
370
|
+
readonly id: "stepfun-plan-cn";
|
|
371
|
+
readonly displayName: "StepFun Step Plan China";
|
|
372
|
+
readonly description: "StepFun Step Plan China coding/planning endpoint.";
|
|
373
|
+
readonly docsUrl: "https://platform.stepfun.com/docs";
|
|
374
|
+
readonly apiKeyUrl: "https://platform.stepfun.com/interface-key";
|
|
375
|
+
readonly envVars: ["STEPFUN_API_KEY"];
|
|
376
|
+
readonly api: "openai-completions";
|
|
377
|
+
readonly baseUrlPresets: [{
|
|
378
|
+
readonly id: "plan-cn";
|
|
379
|
+
readonly label: "Step Plan China";
|
|
380
|
+
readonly baseUrl: "https://api.stepfun.com/step_plan/v1";
|
|
381
|
+
}];
|
|
382
|
+
readonly defaultBaseUrlPreset: "plan-cn";
|
|
383
|
+
readonly defaultModel: "step-3.7-flash";
|
|
384
|
+
readonly models: DomesticProviderModelPreset[];
|
|
385
|
+
readonly aliases: ["step plan cn", "stepfun plan cn", "阶跃 plan"];
|
|
386
|
+
}, {
|
|
387
|
+
readonly id: "xiaomi";
|
|
388
|
+
readonly displayName: "Xiaomi MiMo";
|
|
389
|
+
readonly description: "Xiaomi MiMo API billing endpoint through OpenAI-compatible requests.";
|
|
390
|
+
readonly docsUrl: "https://platform.xiaomimimo.com/";
|
|
391
|
+
readonly apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys";
|
|
392
|
+
readonly pricingUrl: "https://mimo.mi.com/";
|
|
393
|
+
readonly envVars: ["XIAOMI_API_KEY"];
|
|
394
|
+
readonly api: "openai-completions";
|
|
395
|
+
readonly baseUrlPresets: [{
|
|
396
|
+
readonly id: "api";
|
|
397
|
+
readonly label: "API billing";
|
|
398
|
+
readonly baseUrl: "https://api.xiaomimimo.com/v1";
|
|
399
|
+
}];
|
|
400
|
+
readonly defaultBaseUrlPreset: "api";
|
|
401
|
+
readonly defaultModel: "mimo-v2.5-pro";
|
|
402
|
+
readonly models: DomesticProviderModelPreset[];
|
|
403
|
+
readonly aliases: ["xiaomi", "mimo", "xiaomimimo"];
|
|
404
|
+
readonly quirks: ["Some MiMo plans document api-key style auth; keep auth header behavior configurable if needed."];
|
|
405
|
+
}, {
|
|
406
|
+
readonly id: "xiaomi-token-plan-cn";
|
|
407
|
+
readonly displayName: "Xiaomi MiMo Token Plan China";
|
|
408
|
+
readonly description: "Xiaomi MiMo Token Plan China endpoint.";
|
|
409
|
+
readonly docsUrl: "https://platform.xiaomimimo.com/";
|
|
410
|
+
readonly apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys";
|
|
411
|
+
readonly pricingUrl: "https://mimo.mi.com/";
|
|
412
|
+
readonly envVars: ["XIAOMI_TOKEN_PLAN_CN_API_KEY", "XIAOMI_TOKEN_PLAN_API_KEY"];
|
|
413
|
+
readonly api: "openai-completions";
|
|
414
|
+
readonly baseUrlPresets: [{
|
|
415
|
+
readonly id: "cn";
|
|
416
|
+
readonly label: "China";
|
|
417
|
+
readonly baseUrl: "https://token-plan-cn.xiaomimimo.com/v1";
|
|
418
|
+
}];
|
|
419
|
+
readonly defaultBaseUrlPreset: "cn";
|
|
420
|
+
readonly defaultModel: "mimo-v2.5-pro";
|
|
421
|
+
readonly models: DomesticProviderModelPreset[];
|
|
422
|
+
readonly aliases: ["xiaomi token plan cn", "mimo token plan cn"];
|
|
423
|
+
}, {
|
|
424
|
+
readonly id: "xiaomi-token-plan-ams";
|
|
425
|
+
readonly displayName: "Xiaomi MiMo Token Plan Amsterdam";
|
|
426
|
+
readonly description: "Xiaomi MiMo Token Plan Amsterdam endpoint.";
|
|
427
|
+
readonly docsUrl: "https://platform.xiaomimimo.com/";
|
|
428
|
+
readonly apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys";
|
|
429
|
+
readonly pricingUrl: "https://mimo.mi.com/";
|
|
430
|
+
readonly envVars: ["XIAOMI_TOKEN_PLAN_AMS_API_KEY", "XIAOMI_TOKEN_PLAN_API_KEY"];
|
|
431
|
+
readonly api: "openai-completions";
|
|
432
|
+
readonly baseUrlPresets: [{
|
|
433
|
+
readonly id: "ams";
|
|
434
|
+
readonly label: "Amsterdam";
|
|
435
|
+
readonly baseUrl: "https://token-plan-ams.xiaomimimo.com/v1";
|
|
436
|
+
}];
|
|
437
|
+
readonly defaultBaseUrlPreset: "ams";
|
|
438
|
+
readonly defaultModel: "mimo-v2.5-pro";
|
|
439
|
+
readonly models: DomesticProviderModelPreset[];
|
|
440
|
+
readonly aliases: ["xiaomi token plan ams", "mimo token plan ams"];
|
|
441
|
+
}, {
|
|
442
|
+
readonly id: "xiaomi-token-plan-sgp";
|
|
443
|
+
readonly displayName: "Xiaomi MiMo Token Plan Singapore";
|
|
444
|
+
readonly description: "Xiaomi MiMo Token Plan Singapore endpoint.";
|
|
445
|
+
readonly docsUrl: "https://platform.xiaomimimo.com/";
|
|
446
|
+
readonly apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys";
|
|
447
|
+
readonly pricingUrl: "https://mimo.mi.com/";
|
|
448
|
+
readonly envVars: ["XIAOMI_TOKEN_PLAN_SGP_API_KEY", "XIAOMI_TOKEN_PLAN_API_KEY"];
|
|
449
|
+
readonly api: "openai-completions";
|
|
450
|
+
readonly baseUrlPresets: [{
|
|
451
|
+
readonly id: "sgp";
|
|
452
|
+
readonly label: "Singapore";
|
|
453
|
+
readonly baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1";
|
|
454
|
+
}];
|
|
455
|
+
readonly defaultBaseUrlPreset: "sgp";
|
|
456
|
+
readonly defaultModel: "mimo-v2.5-pro";
|
|
457
|
+
readonly models: DomesticProviderModelPreset[];
|
|
458
|
+
readonly aliases: ["xiaomi token plan sgp", "mimo token plan sgp"];
|
|
459
|
+
}, {
|
|
460
|
+
readonly id: "zhipu-cn";
|
|
461
|
+
readonly displayName: "Zhipu GLM China";
|
|
462
|
+
readonly description: "Zhipu GLM models through the BigModel OpenAI-compatible API.";
|
|
463
|
+
readonly docsUrl: "https://docs.bigmodel.cn/cn/guide/start/model-overview";
|
|
464
|
+
readonly apiKeyUrl: "https://bigmodel.cn/usercenter/proj-mgmt/apikeys";
|
|
465
|
+
readonly pricingUrl: "https://bigmodel.cn/pricing";
|
|
466
|
+
readonly envVars: ["ZHIPU_API_KEY", "BIGMODEL_API_KEY"];
|
|
467
|
+
readonly api: "openai-completions";
|
|
468
|
+
readonly baseUrlPresets: [{
|
|
469
|
+
readonly id: "cn";
|
|
470
|
+
readonly label: "China";
|
|
471
|
+
readonly baseUrl: "https://open.bigmodel.cn/api/paas/v4";
|
|
472
|
+
}];
|
|
473
|
+
readonly defaultBaseUrlPreset: "cn";
|
|
474
|
+
readonly defaultModel: "glm-5.2";
|
|
475
|
+
readonly models: [{
|
|
476
|
+
readonly id: "glm-5.2";
|
|
477
|
+
readonly name: "GLM 5.2";
|
|
478
|
+
readonly contextWindow: 1000000;
|
|
479
|
+
readonly maxTokens: 65536;
|
|
480
|
+
readonly reasoning: true;
|
|
481
|
+
readonly input: ["text"];
|
|
482
|
+
}];
|
|
483
|
+
readonly aliases: ["zhipu", "glm", "bigmodel", "zai cn"];
|
|
484
|
+
}, {
|
|
485
|
+
readonly id: "zai";
|
|
486
|
+
readonly displayName: "Zhipu GLM International";
|
|
487
|
+
readonly description: "Zhipu GLM models through the z.ai OpenAI-compatible endpoint.";
|
|
488
|
+
readonly docsUrl: "https://docs.z.ai/guides/overview/quick-start";
|
|
489
|
+
readonly apiKeyUrl: "https://z.ai/manage-apikey/apikey-list";
|
|
490
|
+
readonly pricingUrl: "https://z.ai/manage-apikey/billing";
|
|
491
|
+
readonly envVars: ["ZAI_API_KEY", "Z_AI_API_KEY"];
|
|
492
|
+
readonly api: "openai-completions";
|
|
493
|
+
readonly baseUrlPresets: [{
|
|
494
|
+
readonly id: "global";
|
|
495
|
+
readonly label: "International";
|
|
496
|
+
readonly baseUrl: "https://api.z.ai/api/paas/v4";
|
|
497
|
+
}];
|
|
498
|
+
readonly defaultBaseUrlPreset: "global";
|
|
499
|
+
readonly defaultModel: "glm-5.2";
|
|
500
|
+
readonly models: [{
|
|
501
|
+
readonly id: "glm-5.2";
|
|
502
|
+
readonly name: "GLM 5.2";
|
|
503
|
+
readonly contextWindow: 1000000;
|
|
504
|
+
readonly maxTokens: 65536;
|
|
505
|
+
readonly reasoning: true;
|
|
506
|
+
readonly input: ["text"];
|
|
507
|
+
}];
|
|
508
|
+
readonly aliases: ["zai", "z.ai", "zhipu global", "glm global"];
|
|
509
|
+
}, {
|
|
510
|
+
readonly id: "zai-coding-global";
|
|
511
|
+
readonly displayName: "Zhipu GLM Coding Plan International";
|
|
512
|
+
readonly description: "Zhipu GLM coding-plan international endpoint.";
|
|
513
|
+
readonly docsUrl: "https://docs.z.ai/guides/overview/quick-start";
|
|
514
|
+
readonly apiKeyUrl: "https://z.ai/manage-apikey/apikey-list";
|
|
515
|
+
readonly pricingUrl: "https://z.ai/manage-apikey/billing";
|
|
516
|
+
readonly envVars: ["ZAI_API_KEY", "Z_AI_API_KEY"];
|
|
517
|
+
readonly api: "openai-completions";
|
|
518
|
+
readonly baseUrlPresets: [{
|
|
519
|
+
readonly id: "coding-global";
|
|
520
|
+
readonly label: "Coding Global";
|
|
521
|
+
readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
|
|
522
|
+
}];
|
|
523
|
+
readonly defaultBaseUrlPreset: "coding-global";
|
|
524
|
+
readonly defaultModel: "glm-5.2";
|
|
525
|
+
readonly models: [{
|
|
526
|
+
readonly id: "glm-5.2";
|
|
527
|
+
readonly name: "GLM 5.2";
|
|
528
|
+
readonly contextWindow: 1000000;
|
|
529
|
+
readonly maxTokens: 65536;
|
|
530
|
+
readonly reasoning: true;
|
|
531
|
+
readonly input: ["text"];
|
|
532
|
+
}];
|
|
533
|
+
readonly aliases: ["zai coding", "zhipu coding global", "glm coding global"];
|
|
534
|
+
}, {
|
|
535
|
+
readonly id: "zhipu-coding-cn";
|
|
536
|
+
readonly displayName: "Zhipu GLM Coding Plan China";
|
|
537
|
+
readonly description: "Zhipu GLM coding-plan China endpoint.";
|
|
538
|
+
readonly docsUrl: "https://docs.bigmodel.cn/cn/guide/start/model-overview";
|
|
539
|
+
readonly apiKeyUrl: "https://bigmodel.cn/usercenter/proj-mgmt/apikeys";
|
|
540
|
+
readonly pricingUrl: "https://bigmodel.cn/pricing";
|
|
541
|
+
readonly envVars: ["ZHIPU_API_KEY", "BIGMODEL_API_KEY", "ZAI_API_KEY"];
|
|
542
|
+
readonly api: "openai-completions";
|
|
543
|
+
readonly baseUrlPresets: [{
|
|
544
|
+
readonly id: "coding-cn";
|
|
545
|
+
readonly label: "Coding China";
|
|
546
|
+
readonly baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4";
|
|
547
|
+
}];
|
|
548
|
+
readonly defaultBaseUrlPreset: "coding-cn";
|
|
549
|
+
readonly defaultModel: "glm-5.2";
|
|
550
|
+
readonly models: [{
|
|
551
|
+
readonly id: "glm-5.2";
|
|
552
|
+
readonly name: "GLM 5.2";
|
|
553
|
+
readonly contextWindow: 1000000;
|
|
554
|
+
readonly maxTokens: 65536;
|
|
555
|
+
readonly reasoning: true;
|
|
556
|
+
readonly input: ["text"];
|
|
557
|
+
}];
|
|
558
|
+
readonly aliases: ["zhipu coding", "glm coding cn", "智谱 coding"];
|
|
559
|
+
}, {
|
|
560
|
+
readonly id: "minimax";
|
|
561
|
+
readonly displayName: "MiniMax";
|
|
562
|
+
readonly description: "MiniMax text models. Anthropic-compatible endpoint is preferred for agent/tool workflows.";
|
|
563
|
+
readonly docsUrl: "https://platform.minimax.io/docs";
|
|
564
|
+
readonly apiKeyUrl: "https://platform.minimax.io/user-center/basic-information/interface-key";
|
|
565
|
+
readonly pricingUrl: "https://platform.minimax.io/docs/guides/models-intro";
|
|
566
|
+
readonly envVars: ["MINIMAX_API_KEY"];
|
|
567
|
+
readonly api: "anthropic-messages";
|
|
568
|
+
readonly authHeader: true;
|
|
569
|
+
readonly baseUrlPresets: [{
|
|
570
|
+
readonly id: "intl-anthropic";
|
|
571
|
+
readonly label: "International Anthropic-compatible";
|
|
572
|
+
readonly baseUrl: "https://api.minimax.io/anthropic";
|
|
573
|
+
}, {
|
|
574
|
+
readonly id: "intl-openai";
|
|
575
|
+
readonly label: "International OpenAI-compatible";
|
|
576
|
+
readonly baseUrl: "https://api.minimax.io/v1";
|
|
577
|
+
}];
|
|
578
|
+
readonly defaultBaseUrlPreset: "intl-anthropic";
|
|
579
|
+
readonly defaultModel: "MiniMax-M3";
|
|
580
|
+
readonly models: DomesticProviderModelPreset[];
|
|
581
|
+
readonly aliases: ["minimax", "mini max", "abab"];
|
|
582
|
+
readonly quirks: ["Switch API type to OpenAI-compatible if you select an /v1 endpoint."];
|
|
583
|
+
}, {
|
|
584
|
+
readonly id: "minimax-cn";
|
|
585
|
+
readonly displayName: "MiniMax China";
|
|
586
|
+
readonly description: "MiniMax China endpoint. Anthropic-compatible endpoint is preferred for agent/tool workflows.";
|
|
587
|
+
readonly docsUrl: "https://platform.minimaxi.com/document";
|
|
588
|
+
readonly apiKeyUrl: "https://platform.minimaxi.com/user-center/basic-information/interface-key";
|
|
589
|
+
readonly pricingUrl: "https://platform.minimaxi.com/document/Price";
|
|
590
|
+
readonly envVars: ["MINIMAX_CN_API_KEY", "MINIMAX_API_KEY"];
|
|
591
|
+
readonly api: "anthropic-messages";
|
|
592
|
+
readonly authHeader: true;
|
|
593
|
+
readonly baseUrlPresets: [{
|
|
594
|
+
readonly id: "cn-anthropic";
|
|
595
|
+
readonly label: "China Anthropic-compatible";
|
|
596
|
+
readonly baseUrl: "https://api.minimaxi.com/anthropic";
|
|
597
|
+
}, {
|
|
598
|
+
readonly id: "cn-openai";
|
|
599
|
+
readonly label: "China OpenAI-compatible";
|
|
600
|
+
readonly baseUrl: "https://api.minimaxi.com/v1";
|
|
601
|
+
}];
|
|
602
|
+
readonly defaultBaseUrlPreset: "cn-anthropic";
|
|
603
|
+
readonly defaultModel: "MiniMax-M3";
|
|
604
|
+
readonly models: DomesticProviderModelPreset[];
|
|
605
|
+
readonly aliases: ["minimax cn", "mini max cn", "abab cn"];
|
|
606
|
+
readonly quirks: ["Switch API type to OpenAI-compatible if you select an /v1 endpoint."];
|
|
607
|
+
}];
|
|
608
|
+
export declare function getDomesticProviderPreset(id: string): DomesticProviderPreset | undefined;
|
|
609
|
+
export declare function getDomesticProviderPresetIds(): string[];
|
|
610
|
+
export declare function getDomesticProviderBaseUrl(preset: DomesticProviderPreset): string;
|
|
611
|
+
export declare function providerConfigFromDomesticPreset(preset: DomesticProviderPreset, params?: {
|
|
612
|
+
apiKey?: string;
|
|
613
|
+
baseUrl?: string;
|
|
614
|
+
modelIds?: string[];
|
|
615
|
+
}): ProviderConfig;
|