@zwbigi/ink-xy 0.1.2 → 0.1.4
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +2 -2
- package/.next/build-manifest.json +2 -2
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/inkos/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/search/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +2 -2
- package/.next/server/chunks/162.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/trace +4 -4
- package/.next/trace-build +1 -1
- package/bin/pi-web.js +4 -1
- package/inkos/.env.example +20 -0
- package/inkos/.node-version +1 -0
- package/inkos/.nvmrc +1 -0
- package/inkos/CHANGELOG.md +787 -0
- package/inkos/CONTRIBUTING.md +89 -0
- package/inkos/LICENSE +661 -0
- package/inkos/README.en.md +483 -0
- package/inkos/README.ja.md +461 -0
- package/inkos/README.md +272 -0
- package/inkos/assets/15qun.jpg +0 -0
- package/inkos/assets/41777702961_.pic.jpg +0 -0
- package/inkos/assets/inkos-short-demo-cover.png +0 -0
- package/inkos/assets/inkos-text.svg +40 -0
- package/inkos/assets/logo.svg +47 -0
- package/inkos/assets/screenshot-chapters.png +0 -0
- package/inkos/assets/screenshot-pipeline.png +0 -0
- package/inkos/assets/screenshot-state.png +0 -0
- package/inkos/assets/screenshot-terminal.png +0 -0
- package/inkos/assets/wechat-group-v8.jpg +0 -0
- package/inkos/package.json +42 -0
- package/inkos/packages/cli/package.json +74 -0
- package/inkos/packages/cli/src/__tests__/analytics.test.ts +154 -0
- package/inkos/packages/cli/src/__tests__/cli-integration.test.ts +1031 -0
- package/inkos/packages/cli/src/__tests__/daemon.test.ts +93 -0
- package/inkos/packages/cli/src/__tests__/doctor.test.ts +36 -0
- package/inkos/packages/cli/src/__tests__/interact-command.test.ts +142 -0
- package/inkos/packages/cli/src/__tests__/interaction-tools.test.ts +107 -0
- package/inkos/packages/cli/src/__tests__/llm-overrides.test.ts +25 -0
- package/inkos/packages/cli/src/__tests__/localization.test.ts +121 -0
- package/inkos/packages/cli/src/__tests__/progress-text.test.ts +92 -0
- package/inkos/packages/cli/src/__tests__/project-bootstrap.test.ts +71 -0
- package/inkos/packages/cli/src/__tests__/publish-package.test.ts +272 -0
- package/inkos/packages/cli/src/__tests__/revision-command.test.ts +82 -0
- package/inkos/packages/cli/src/__tests__/runtime-requirements.test.ts +89 -0
- package/inkos/packages/cli/src/__tests__/short-fiction-command.test.ts +48 -0
- package/inkos/packages/cli/src/__tests__/studio-runtime.test.ts +142 -0
- package/inkos/packages/cli/src/__tests__/studio.test.ts +87 -0
- package/inkos/packages/cli/src/__tests__/tui-activity-state.test.ts +20 -0
- package/inkos/packages/cli/src/__tests__/tui-agent-session.test.ts +213 -0
- package/inkos/packages/cli/src/__tests__/tui-chat-depth.test.ts +27 -0
- package/inkos/packages/cli/src/__tests__/tui-chat-draft.test.ts +44 -0
- package/inkos/packages/cli/src/__tests__/tui-command.test.ts +86 -0
- package/inkos/packages/cli/src/__tests__/tui-composer-caret.test.ts +46 -0
- package/inkos/packages/cli/src/__tests__/tui-composer-display.test.ts +40 -0
- package/inkos/packages/cli/src/__tests__/tui-dashboard.test.tsx +219 -0
- package/inkos/packages/cli/src/__tests__/tui-effects-i18n.test.ts +29 -0
- package/inkos/packages/cli/src/__tests__/tui-i18n.test.ts +22 -0
- package/inkos/packages/cli/src/__tests__/tui-input-chrome.test.ts +10 -0
- package/inkos/packages/cli/src/__tests__/tui-input-history.test.ts +40 -0
- package/inkos/packages/cli/src/__tests__/tui-layout.test.ts +55 -0
- package/inkos/packages/cli/src/__tests__/tui-local-commands.test.ts +47 -0
- package/inkos/packages/cli/src/__tests__/tui-session-store.test.ts +81 -0
- package/inkos/packages/cli/src/__tests__/tui-setup-i18n.test.ts +31 -0
- package/inkos/packages/cli/src/__tests__/tui-slash-autocomplete.test.ts +33 -0
- package/inkos/packages/cli/src/commands/agent.ts +65 -0
- package/inkos/packages/cli/src/commands/analytics.ts +77 -0
- package/inkos/packages/cli/src/commands/audit.ts +52 -0
- package/inkos/packages/cli/src/commands/book.ts +260 -0
- package/inkos/packages/cli/src/commands/compose.ts +50 -0
- package/inkos/packages/cli/src/commands/config.ts +328 -0
- package/inkos/packages/cli/src/commands/consolidate.ts +50 -0
- package/inkos/packages/cli/src/commands/daemon.ts +121 -0
- package/inkos/packages/cli/src/commands/detect.ts +125 -0
- package/inkos/packages/cli/src/commands/doctor.ts +391 -0
- package/inkos/packages/cli/src/commands/draft.ts +43 -0
- package/inkos/packages/cli/src/commands/eval.ts +217 -0
- package/inkos/packages/cli/src/commands/export.ts +45 -0
- package/inkos/packages/cli/src/commands/fanfic.ts +183 -0
- package/inkos/packages/cli/src/commands/genre.ts +160 -0
- package/inkos/packages/cli/src/commands/import.ts +158 -0
- package/inkos/packages/cli/src/commands/init.ts +47 -0
- package/inkos/packages/cli/src/commands/interact.ts +109 -0
- package/inkos/packages/cli/src/commands/plan.ts +54 -0
- package/inkos/packages/cli/src/commands/radar.ts +60 -0
- package/inkos/packages/cli/src/commands/review.ts +253 -0
- package/inkos/packages/cli/src/commands/revise.ts +58 -0
- package/inkos/packages/cli/src/commands/short-fiction.ts +294 -0
- package/inkos/packages/cli/src/commands/status.ts +138 -0
- package/inkos/packages/cli/src/commands/studio.ts +194 -0
- package/inkos/packages/cli/src/commands/style.ts +99 -0
- package/inkos/packages/cli/src/commands/tui.ts +18 -0
- package/inkos/packages/cli/src/commands/update.ts +45 -0
- package/inkos/packages/cli/src/commands/write.ts +324 -0
- package/inkos/packages/cli/src/index.ts +5 -0
- package/inkos/packages/cli/src/interaction/tools.ts +49 -0
- package/inkos/packages/cli/src/localization.ts +215 -0
- package/inkos/packages/cli/src/program.ts +106 -0
- package/inkos/packages/cli/src/progress-text.ts +85 -0
- package/inkos/packages/cli/src/project-bootstrap.ts +175 -0
- package/inkos/packages/cli/src/runtime-requirements.ts +135 -0
- package/inkos/packages/cli/src/tui/__tests__/markdown.test.ts +64 -0
- package/inkos/packages/cli/src/tui/activity-state.ts +41 -0
- package/inkos/packages/cli/src/tui/agent-input.ts +264 -0
- package/inkos/packages/cli/src/tui/ansi.ts +72 -0
- package/inkos/packages/cli/src/tui/app.ts +130 -0
- package/inkos/packages/cli/src/tui/chat-depth.ts +22 -0
- package/inkos/packages/cli/src/tui/chat-draft.ts +42 -0
- package/inkos/packages/cli/src/tui/composer-caret.ts +22 -0
- package/inkos/packages/cli/src/tui/composer-display.ts +26 -0
- package/inkos/packages/cli/src/tui/dashboard-model.ts +164 -0
- package/inkos/packages/cli/src/tui/dashboard.tsx +544 -0
- package/inkos/packages/cli/src/tui/effects.ts +542 -0
- package/inkos/packages/cli/src/tui/i18n.ts +278 -0
- package/inkos/packages/cli/src/tui/input-history.ts +69 -0
- package/inkos/packages/cli/src/tui/local-commands.ts +55 -0
- package/inkos/packages/cli/src/tui/markdown.ts +64 -0
- package/inkos/packages/cli/src/tui/session-store.ts +6 -0
- package/inkos/packages/cli/src/tui/setup.ts +397 -0
- package/inkos/packages/cli/src/tui/slash-autocomplete.ts +62 -0
- package/inkos/packages/cli/src/tui/theme.ts +17 -0
- package/inkos/packages/cli/src/utils.ts +222 -0
- package/inkos/packages/cli/tsconfig.json +9 -0
- package/inkos/packages/core/genres/cozy.md +43 -0
- package/inkos/packages/core/genres/cultivation.md +42 -0
- package/inkos/packages/core/genres/dungeon-core.md +40 -0
- package/inkos/packages/core/genres/horror.md +51 -0
- package/inkos/packages/core/genres/isekai.md +43 -0
- package/inkos/packages/core/genres/litrpg.md +43 -0
- package/inkos/packages/core/genres/other.md +24 -0
- package/inkos/packages/core/genres/progression.md +41 -0
- package/inkos/packages/core/genres/romantasy.md +45 -0
- package/inkos/packages/core/genres/sci-fi.md +42 -0
- package/inkos/packages/core/genres/system-apocalypse.md +40 -0
- package/inkos/packages/core/genres/tower-climber.md +41 -0
- package/inkos/packages/core/genres/urban.md +53 -0
- package/inkos/packages/core/genres/xianxia.md +46 -0
- package/inkos/packages/core/genres/xuanhuan.md +64 -0
- package/inkos/packages/core/package.json +61 -0
- package/inkos/packages/core/src/__tests__/agent-max-tokens-policy.test.ts +29 -0
- package/inkos/packages/core/src/__tests__/agent-session.test.ts +866 -0
- package/inkos/packages/core/src/__tests__/agent-system-prompt.test.ts +167 -0
- package/inkos/packages/core/src/__tests__/agent-tools-params.test.ts +197 -0
- package/inkos/packages/core/src/__tests__/agent-tools.test.ts +421 -0
- package/inkos/packages/core/src/__tests__/ai-tells.test.ts +90 -0
- package/inkos/packages/core/src/__tests__/architect-phase5-consolidated.test.ts +445 -0
- package/inkos/packages/core/src/__tests__/architect-phase5.test.ts +455 -0
- package/inkos/packages/core/src/__tests__/architect-phase7.test.ts +210 -0
- package/inkos/packages/core/src/__tests__/architect.test.ts +859 -0
- package/inkos/packages/core/src/__tests__/audit-parse.test.ts +78 -0
- package/inkos/packages/core/src/__tests__/book-id.test.ts +26 -0
- package/inkos/packages/core/src/__tests__/book-session-store.test.ts +447 -0
- package/inkos/packages/core/src/__tests__/book-session.test.ts +113 -0
- package/inkos/packages/core/src/__tests__/chapter-analyzer.test.ts +574 -0
- package/inkos/packages/core/src/__tests__/chapter-memo-parser.test.ts +247 -0
- package/inkos/packages/core/src/__tests__/chapter-persistence.test.ts +198 -0
- package/inkos/packages/core/src/__tests__/chapter-review-cycle.test.ts +294 -0
- package/inkos/packages/core/src/__tests__/chapter-splitter.test.ts +156 -0
- package/inkos/packages/core/src/__tests__/chapter-state-recovery.test.ts +235 -0
- package/inkos/packages/core/src/__tests__/chapter-truth-validation.test.ts +253 -0
- package/inkos/packages/core/src/__tests__/composer.test.ts +627 -0
- package/inkos/packages/core/src/__tests__/config-loader.test.ts +325 -0
- package/inkos/packages/core/src/__tests__/config-migration.test.ts +102 -0
- package/inkos/packages/core/src/__tests__/consolidator.test.ts +32 -0
- package/inkos/packages/core/src/__tests__/context-filter.test.ts +60 -0
- package/inkos/packages/core/src/__tests__/context-transform.test.ts +108 -0
- package/inkos/packages/core/src/__tests__/continuity.test.ts +391 -0
- package/inkos/packages/core/src/__tests__/detection-insights.test.ts +59 -0
- package/inkos/packages/core/src/__tests__/detector.test.ts +86 -0
- package/inkos/packages/core/src/__tests__/draft-directive-parser.test.ts +386 -0
- package/inkos/packages/core/src/__tests__/edit-controller.test.ts +190 -0
- package/inkos/packages/core/src/__tests__/effective-llm-config.test.ts +486 -0
- package/inkos/packages/core/src/__tests__/fanfic-dimensions.test.ts +58 -0
- package/inkos/packages/core/src/__tests__/fanfic-models.test.ts +69 -0
- package/inkos/packages/core/src/__tests__/governed-working-set.test.ts +155 -0
- package/inkos/packages/core/src/__tests__/hook-arbiter.test.ts +124 -0
- package/inkos/packages/core/src/__tests__/hook-governance.test.ts +228 -0
- package/inkos/packages/core/src/__tests__/hook-health.test.ts +166 -0
- package/inkos/packages/core/src/__tests__/hook-ledger-validator.test.ts +236 -0
- package/inkos/packages/core/src/__tests__/hook-promotion.test.ts +192 -0
- package/inkos/packages/core/src/__tests__/hook-stale-detection.test.ts +136 -0
- package/inkos/packages/core/src/__tests__/index-notify-lazy.test.ts +20 -0
- package/inkos/packages/core/src/__tests__/interaction-chat-tokens.test.ts +170 -0
- package/inkos/packages/core/src/__tests__/interaction-models.test.ts +155 -0
- package/inkos/packages/core/src/__tests__/interaction-nl-router.test.ts +223 -0
- package/inkos/packages/core/src/__tests__/interaction-runtime.test.ts +633 -0
- package/inkos/packages/core/src/__tests__/interaction-tools.test.ts +343 -0
- package/inkos/packages/core/src/__tests__/length-metrics.test.ts +82 -0
- package/inkos/packages/core/src/__tests__/length-normalizer.test.ts +331 -0
- package/inkos/packages/core/src/__tests__/list-models.test.ts +109 -0
- package/inkos/packages/core/src/__tests__/llm-env.test.ts +31 -0
- package/inkos/packages/core/src/__tests__/logger.test.ts +175 -0
- package/inkos/packages/core/src/__tests__/long-span-fatigue.test.ts +160 -0
- package/inkos/packages/core/src/__tests__/memory-retrieval.test.ts +1303 -0
- package/inkos/packages/core/src/__tests__/models.test.ts +918 -0
- package/inkos/packages/core/src/__tests__/outline-paths.test.ts +97 -0
- package/inkos/packages/core/src/__tests__/path-safety.test.ts +22 -0
- package/inkos/packages/core/src/__tests__/persisted-governed-plan.test.ts +134 -0
- package/inkos/packages/core/src/__tests__/phase5-cleanup.test.ts +393 -0
- package/inkos/packages/core/src/__tests__/phase5-hotfix.test.ts +288 -0
- package/inkos/packages/core/src/__tests__/phase7-hotfix.test.ts +614 -0
- package/inkos/packages/core/src/__tests__/pipeline-agent.test.ts +354 -0
- package/inkos/packages/core/src/__tests__/pipeline-runner-memory-sync.test.ts +317 -0
- package/inkos/packages/core/src/__tests__/pipeline-runner.test.ts +5200 -0
- package/inkos/packages/core/src/__tests__/planner-context.test.ts +137 -0
- package/inkos/packages/core/src/__tests__/planner-prompts-ratio.test.ts +11 -0
- package/inkos/packages/core/src/__tests__/planner-prompts.test.ts +171 -0
- package/inkos/packages/core/src/__tests__/planner.test.ts +362 -0
- package/inkos/packages/core/src/__tests__/planning-materials.test.ts +90 -0
- package/inkos/packages/core/src/__tests__/polisher.test.ts +189 -0
- package/inkos/packages/core/src/__tests__/post-write-validator.test.ts +291 -0
- package/inkos/packages/core/src/__tests__/probe.test.ts +77 -0
- package/inkos/packages/core/src/__tests__/project-interaction.test.ts +241 -0
- package/inkos/packages/core/src/__tests__/provider.test.ts +953 -0
- package/inkos/packages/core/src/__tests__/providers-group.test.ts +34 -0
- package/inkos/packages/core/src/__tests__/providers-lookup.test.ts +81 -0
- package/inkos/packages/core/src/__tests__/providers-schema.test.ts +158 -0
- package/inkos/packages/core/src/__tests__/proxy-fetch.test.ts +75 -0
- package/inkos/packages/core/src/__tests__/revise-foundation.test.ts +514 -0
- package/inkos/packages/core/src/__tests__/reviser.test.ts +859 -0
- package/inkos/packages/core/src/__tests__/runtime-state-store.test.ts +388 -0
- package/inkos/packages/core/src/__tests__/scheduler.test.ts +123 -0
- package/inkos/packages/core/src/__tests__/secrets-migration.test.ts +71 -0
- package/inkos/packages/core/src/__tests__/secrets.test.ts +95 -0
- package/inkos/packages/core/src/__tests__/sensitive-words.test.ts +88 -0
- package/inkos/packages/core/src/__tests__/service-presets-regression.test.ts +73 -0
- package/inkos/packages/core/src/__tests__/service-resolver-regression.test.ts +75 -0
- package/inkos/packages/core/src/__tests__/service-resolver.test.ts +228 -0
- package/inkos/packages/core/src/__tests__/session-transcript-restore.test.ts +1311 -0
- package/inkos/packages/core/src/__tests__/session-transcript.test.ts +195 -0
- package/inkos/packages/core/src/__tests__/settler-delta-parser.test.ts +133 -0
- package/inkos/packages/core/src/__tests__/short-fiction-public.test.ts +241 -0
- package/inkos/packages/core/src/__tests__/spot-fix-patches.test.ts +104 -0
- package/inkos/packages/core/src/__tests__/state-manager.test.ts +1298 -0
- package/inkos/packages/core/src/__tests__/state-projections.test.ts +130 -0
- package/inkos/packages/core/src/__tests__/state-reducer.test.ts +372 -0
- package/inkos/packages/core/src/__tests__/state-validator-agent.test.ts +165 -0
- package/inkos/packages/core/src/__tests__/state-validator.test.ts +122 -0
- package/inkos/packages/core/src/__tests__/style-analyzer.test.ts +61 -0
- package/inkos/packages/core/src/__tests__/temperature-constraints.test.ts +57 -0
- package/inkos/packages/core/src/__tests__/v13-hotfix-round4.test.ts +343 -0
- package/inkos/packages/core/src/__tests__/verify-service.test.ts +77 -0
- package/inkos/packages/core/src/__tests__/webhook.test.ts +91 -0
- package/inkos/packages/core/src/__tests__/writer-parser.test.ts +348 -0
- package/inkos/packages/core/src/__tests__/writer-prompts.test.ts +269 -0
- package/inkos/packages/core/src/__tests__/writer.test.ts +1360 -0
- package/inkos/packages/core/src/agent/agent-session.ts +737 -0
- package/inkos/packages/core/src/agent/agent-system-prompt.ts +199 -0
- package/inkos/packages/core/src/agent/agent-tools.ts +835 -0
- package/inkos/packages/core/src/agent/context-transform.ts +85 -0
- package/inkos/packages/core/src/agent/index.ts +14 -0
- package/inkos/packages/core/src/agents/ai-tells.ts +161 -0
- package/inkos/packages/core/src/agents/architect.ts +1291 -0
- package/inkos/packages/core/src/agents/base.ts +100 -0
- package/inkos/packages/core/src/agents/chapter-analyzer.ts +634 -0
- package/inkos/packages/core/src/agents/composer.ts +469 -0
- package/inkos/packages/core/src/agents/consolidator.ts +218 -0
- package/inkos/packages/core/src/agents/continuity.ts +824 -0
- package/inkos/packages/core/src/agents/detection-insights.ts +72 -0
- package/inkos/packages/core/src/agents/detector.ts +224 -0
- package/inkos/packages/core/src/agents/en-prompt-sections.ts +129 -0
- package/inkos/packages/core/src/agents/fanfic-canon-importer.ts +146 -0
- package/inkos/packages/core/src/agents/fanfic-dimensions.ts +87 -0
- package/inkos/packages/core/src/agents/fanfic-prompt-sections.ts +109 -0
- package/inkos/packages/core/src/agents/foundation-reviewer.ts +204 -0
- package/inkos/packages/core/src/agents/length-normalizer.ts +218 -0
- package/inkos/packages/core/src/agents/observer-prompts.ts +127 -0
- package/inkos/packages/core/src/agents/planner-context.ts +297 -0
- package/inkos/packages/core/src/agents/planner-prompts.ts +404 -0
- package/inkos/packages/core/src/agents/planner.ts +783 -0
- package/inkos/packages/core/src/agents/polisher.ts +153 -0
- package/inkos/packages/core/src/agents/post-write-validator.ts +873 -0
- package/inkos/packages/core/src/agents/radar-source.ts +123 -0
- package/inkos/packages/core/src/agents/radar.ts +120 -0
- package/inkos/packages/core/src/agents/reviser.ts +701 -0
- package/inkos/packages/core/src/agents/rules-reader.ts +155 -0
- package/inkos/packages/core/src/agents/sensitive-words.ts +142 -0
- package/inkos/packages/core/src/agents/settler-delta-parser.ts +53 -0
- package/inkos/packages/core/src/agents/settler-parser.ts +38 -0
- package/inkos/packages/core/src/agents/settler-prompts.ts +230 -0
- package/inkos/packages/core/src/agents/short-fiction.ts +429 -0
- package/inkos/packages/core/src/agents/state-validator.ts +322 -0
- package/inkos/packages/core/src/agents/style-analyzer.ts +93 -0
- package/inkos/packages/core/src/agents/writer-parser.ts +178 -0
- package/inkos/packages/core/src/agents/writer-prompts.ts +899 -0
- package/inkos/packages/core/src/agents/writer.ts +1450 -0
- package/inkos/packages/core/src/index.ts +392 -0
- package/inkos/packages/core/src/interaction/book-session-store.ts +226 -0
- package/inkos/packages/core/src/interaction/draft-directive-parser.ts +266 -0
- package/inkos/packages/core/src/interaction/edit-controller.ts +270 -0
- package/inkos/packages/core/src/interaction/events.ts +41 -0
- package/inkos/packages/core/src/interaction/export-artifact.ts +151 -0
- package/inkos/packages/core/src/interaction/intents.ts +63 -0
- package/inkos/packages/core/src/interaction/modes.ts +13 -0
- package/inkos/packages/core/src/interaction/nl-router.ts +258 -0
- package/inkos/packages/core/src/interaction/project-control.ts +150 -0
- package/inkos/packages/core/src/interaction/project-session-store.ts +81 -0
- package/inkos/packages/core/src/interaction/project-tools.ts +704 -0
- package/inkos/packages/core/src/interaction/request-router.ts +5 -0
- package/inkos/packages/core/src/interaction/runtime.ts +1167 -0
- package/inkos/packages/core/src/interaction/session-transcript-legacy.ts +113 -0
- package/inkos/packages/core/src/interaction/session-transcript-restore.ts +607 -0
- package/inkos/packages/core/src/interaction/session-transcript-schema.ts +76 -0
- package/inkos/packages/core/src/interaction/session-transcript.ts +189 -0
- package/inkos/packages/core/src/interaction/session.ts +226 -0
- package/inkos/packages/core/src/interaction/truth-authority.ts +45 -0
- package/inkos/packages/core/src/llm/config-migration.ts +58 -0
- package/inkos/packages/core/src/llm/cover-providers.ts +45 -0
- package/inkos/packages/core/src/llm/provider.ts +1331 -0
- package/inkos/packages/core/src/llm/providers/endpoints/ai360.ts +42 -0
- package/inkos/packages/core/src/llm/providers/endpoints/anthropic.ts +82 -0
- package/inkos/packages/core/src/llm/providers/endpoints/astronCodingPlan.ts +30 -0
- package/inkos/packages/core/src/llm/providers/endpoints/baichuan.ts +28 -0
- package/inkos/packages/core/src/llm/providers/endpoints/bailian.ts +65 -0
- package/inkos/packages/core/src/llm/providers/endpoints/bailianCodingPlan.ts +30 -0
- package/inkos/packages/core/src/llm/providers/endpoints/custom.ts +22 -0
- package/inkos/packages/core/src/llm/providers/endpoints/deepseek.ts +35 -0
- package/inkos/packages/core/src/llm/providers/endpoints/giteeai.ts +41 -0
- package/inkos/packages/core/src/llm/providers/endpoints/githubCopilot.ts +43 -0
- package/inkos/packages/core/src/llm/providers/endpoints/glmCodingPlan.ts +28 -0
- package/inkos/packages/core/src/llm/providers/endpoints/google.ts +51 -0
- package/inkos/packages/core/src/llm/providers/endpoints/hunyuan.ts +42 -0
- package/inkos/packages/core/src/llm/providers/endpoints/infiniai.ts +72 -0
- package/inkos/packages/core/src/llm/providers/endpoints/internlm.ts +28 -0
- package/inkos/packages/core/src/llm/providers/endpoints/kimiCode.ts +23 -0
- package/inkos/packages/core/src/llm/providers/endpoints/kimiCodingPlan.ts +24 -0
- package/inkos/packages/core/src/llm/providers/endpoints/kkaiapi.ts +56 -0
- package/inkos/packages/core/src/llm/providers/endpoints/longcat.ts +25 -0
- package/inkos/packages/core/src/llm/providers/endpoints/minimax.ts +39 -0
- package/inkos/packages/core/src/llm/providers/endpoints/minimaxCodingPlan.ts +28 -0
- package/inkos/packages/core/src/llm/providers/endpoints/mistral.ts +40 -0
- package/inkos/packages/core/src/llm/providers/endpoints/modelscope.ts +30 -0
- package/inkos/packages/core/src/llm/providers/endpoints/moonshot.ts +39 -0
- package/inkos/packages/core/src/llm/providers/endpoints/newapi.ts +21 -0
- package/inkos/packages/core/src/llm/providers/endpoints/ollama.ts +73 -0
- package/inkos/packages/core/src/llm/providers/endpoints/openai.ts +77 -0
- package/inkos/packages/core/src/llm/providers/endpoints/opencodeCodingPlan.ts +30 -0
- package/inkos/packages/core/src/llm/providers/endpoints/openrouter.ts +87 -0
- package/inkos/packages/core/src/llm/providers/endpoints/ppio.ts +86 -0
- package/inkos/packages/core/src/llm/providers/endpoints/qiniu.ts +32 -0
- package/inkos/packages/core/src/llm/providers/endpoints/sensenova.ts +45 -0
- package/inkos/packages/core/src/llm/providers/endpoints/siliconcloud.ts +126 -0
- package/inkos/packages/core/src/llm/providers/endpoints/spark.ts +33 -0
- package/inkos/packages/core/src/llm/providers/endpoints/stepfun.ts +35 -0
- package/inkos/packages/core/src/llm/providers/endpoints/tencentcloud.ts +25 -0
- package/inkos/packages/core/src/llm/providers/endpoints/volcengine.ts +52 -0
- package/inkos/packages/core/src/llm/providers/endpoints/volcengineCodingPlan.ts +42 -0
- package/inkos/packages/core/src/llm/providers/endpoints/wenxin.ts +106 -0
- package/inkos/packages/core/src/llm/providers/endpoints/xai.ts +34 -0
- package/inkos/packages/core/src/llm/providers/endpoints/xiaomimimo.ts +26 -0
- package/inkos/packages/core/src/llm/providers/endpoints/zeroone.ts +34 -0
- package/inkos/packages/core/src/llm/providers/endpoints/zhipu.ts +61 -0
- package/inkos/packages/core/src/llm/providers/index.ts +71 -0
- package/inkos/packages/core/src/llm/providers/lookup.ts +70 -0
- package/inkos/packages/core/src/llm/providers/probe.ts +35 -0
- package/inkos/packages/core/src/llm/providers/types.ts +89 -0
- package/inkos/packages/core/src/llm/providers/verify.ts +104 -0
- package/inkos/packages/core/src/llm/secrets.ts +77 -0
- package/inkos/packages/core/src/llm/service-presets.ts +215 -0
- package/inkos/packages/core/src/llm/service-resolver.ts +91 -0
- package/inkos/packages/core/src/models/book-rules.ts +126 -0
- package/inkos/packages/core/src/models/book.ts +70 -0
- package/inkos/packages/core/src/models/chapter.ts +42 -0
- package/inkos/packages/core/src/models/detection.ts +25 -0
- package/inkos/packages/core/src/models/genre-profile.ts +36 -0
- package/inkos/packages/core/src/models/input-governance.ts +99 -0
- package/inkos/packages/core/src/models/length-governance.ts +46 -0
- package/inkos/packages/core/src/models/project.ts +161 -0
- package/inkos/packages/core/src/models/runtime-state.ts +144 -0
- package/inkos/packages/core/src/models/state.ts +52 -0
- package/inkos/packages/core/src/models/style-profile.ts +15 -0
- package/inkos/packages/core/src/notify/dispatcher.ts +96 -0
- package/inkos/packages/core/src/notify/feishu.ts +34 -0
- package/inkos/packages/core/src/notify/telegram.ts +25 -0
- package/inkos/packages/core/src/notify/webhook.ts +58 -0
- package/inkos/packages/core/src/notify/wechat-work.ts +22 -0
- package/inkos/packages/core/src/pipeline/agent.ts +691 -0
- package/inkos/packages/core/src/pipeline/chapter-persistence.ts +79 -0
- package/inkos/packages/core/src/pipeline/chapter-review-cycle.ts +324 -0
- package/inkos/packages/core/src/pipeline/chapter-state-recovery.ts +236 -0
- package/inkos/packages/core/src/pipeline/chapter-truth-validation.ts +145 -0
- package/inkos/packages/core/src/pipeline/detection-runner.ts +164 -0
- package/inkos/packages/core/src/pipeline/persisted-governed-plan.ts +216 -0
- package/inkos/packages/core/src/pipeline/runner.ts +3438 -0
- package/inkos/packages/core/src/pipeline/scheduler.ts +411 -0
- package/inkos/packages/core/src/pipeline/short-fiction-runner.ts +801 -0
- package/inkos/packages/core/src/prompts/index.ts +1 -0
- package/inkos/packages/core/src/prompts/short-fiction.ts +273 -0
- package/inkos/packages/core/src/state/manager.ts +560 -0
- package/inkos/packages/core/src/state/memory-db.ts +359 -0
- package/inkos/packages/core/src/state/runtime-state-store.ts +164 -0
- package/inkos/packages/core/src/state/state-bootstrap.ts +657 -0
- package/inkos/packages/core/src/state/state-projections.ts +255 -0
- package/inkos/packages/core/src/state/state-reducer.ts +260 -0
- package/inkos/packages/core/src/state/state-validator.ts +117 -0
- package/inkos/packages/core/src/utils/analytics.ts +92 -0
- package/inkos/packages/core/src/utils/book-id.ts +31 -0
- package/inkos/packages/core/src/utils/cadence-policy.ts +46 -0
- package/inkos/packages/core/src/utils/chapter-cadence.ts +211 -0
- package/inkos/packages/core/src/utils/chapter-memo-parser.ts +157 -0
- package/inkos/packages/core/src/utils/chapter-splitter.ts +80 -0
- package/inkos/packages/core/src/utils/config-loader.ts +29 -0
- package/inkos/packages/core/src/utils/context-assembly.ts +98 -0
- package/inkos/packages/core/src/utils/context-filter.ts +190 -0
- package/inkos/packages/core/src/utils/effective-llm-config.ts +529 -0
- package/inkos/packages/core/src/utils/governed-context.ts +101 -0
- package/inkos/packages/core/src/utils/governed-working-set.ts +395 -0
- package/inkos/packages/core/src/utils/hook-arbiter.ts +332 -0
- package/inkos/packages/core/src/utils/hook-governance.ts +199 -0
- package/inkos/packages/core/src/utils/hook-health.ts +189 -0
- package/inkos/packages/core/src/utils/hook-ledger-validator.ts +277 -0
- package/inkos/packages/core/src/utils/hook-lifecycle.ts +224 -0
- package/inkos/packages/core/src/utils/hook-policy.ts +115 -0
- package/inkos/packages/core/src/utils/hook-promotion.ts +313 -0
- package/inkos/packages/core/src/utils/hook-stale-detection.ts +168 -0
- package/inkos/packages/core/src/utils/length-metrics.ts +123 -0
- package/inkos/packages/core/src/utils/llm-endpoint-auth.ts +40 -0
- package/inkos/packages/core/src/utils/llm-env.ts +74 -0
- package/inkos/packages/core/src/utils/logger.ts +123 -0
- package/inkos/packages/core/src/utils/long-span-fatigue.ts +545 -0
- package/inkos/packages/core/src/utils/memory-retrieval.ts +527 -0
- package/inkos/packages/core/src/utils/narrative-control.ts +177 -0
- package/inkos/packages/core/src/utils/outline-paths.ts +275 -0
- package/inkos/packages/core/src/utils/path-safety.ts +11 -0
- package/inkos/packages/core/src/utils/planning-materials.ts +185 -0
- package/inkos/packages/core/src/utils/pov-filter.ts +149 -0
- package/inkos/packages/core/src/utils/proxy-fetch.ts +44 -0
- package/inkos/packages/core/src/utils/runtime-writer.ts +41 -0
- package/inkos/packages/core/src/utils/spot-fix-patches.ts +189 -0
- package/inkos/packages/core/src/utils/story-markdown.ts +346 -0
- package/inkos/packages/core/src/utils/web-search.ts +82 -0
- package/inkos/packages/core/src/utils/writing-methodology.ts +164 -0
- package/inkos/packages/core/tsconfig.json +8 -0
- package/inkos/packages/core/vitest.config.ts +7 -0
- package/inkos/packages/studio/components.json +25 -0
- package/inkos/packages/studio/index.html +13 -0
- package/inkos/packages/studio/package.json +72 -0
- package/inkos/packages/studio/postcss.config.js +3 -0
- package/inkos/packages/studio/src/App.test.ts +25 -0
- package/inkos/packages/studio/src/App.tsx +280 -0
- package/inkos/packages/studio/src/api/__tests__/normalize-base-url.test.ts +40 -0
- package/inkos/packages/studio/src/api/book-create.test.ts +104 -0
- package/inkos/packages/studio/src/api/book-create.ts +94 -0
- package/inkos/packages/studio/src/api/errors.ts +17 -0
- package/inkos/packages/studio/src/api/index.ts +30 -0
- package/inkos/packages/studio/src/api/lib/run-store.ts +177 -0
- package/inkos/packages/studio/src/api/lib/sse.ts +50 -0
- package/inkos/packages/studio/src/api/phase5-hotfix.test.ts +335 -0
- package/inkos/packages/studio/src/api/safety.ts +6 -0
- package/inkos/packages/studio/src/api/server.test.ts +3162 -0
- package/inkos/packages/studio/src/api/server.ts +3666 -0
- package/inkos/packages/studio/src/api/v13-hotfix-round4.test.ts +226 -0
- package/inkos/packages/studio/src/app-state.test.ts +8 -0
- package/inkos/packages/studio/src/app-state.ts +1 -0
- package/inkos/packages/studio/src/components/ConfirmDialog.tsx +95 -0
- package/inkos/packages/studio/src/components/ServiceConfigSourceCard.tsx +139 -0
- package/inkos/packages/studio/src/components/ServiceQuickLinks.tsx +65 -0
- package/inkos/packages/studio/src/components/Sidebar.tsx +652 -0
- package/inkos/packages/studio/src/components/ai-elements/code-block.tsx +562 -0
- package/inkos/packages/studio/src/components/ai-elements/confirmation.tsx +174 -0
- package/inkos/packages/studio/src/components/ai-elements/message.tsx +360 -0
- package/inkos/packages/studio/src/components/ai-elements/prompt-input.tsx +1457 -0
- package/inkos/packages/studio/src/components/ai-elements/reasoning.tsx +226 -0
- package/inkos/packages/studio/src/components/ai-elements/shimmer.tsx +77 -0
- package/inkos/packages/studio/src/components/ai-elements/tool.tsx +173 -0
- package/inkos/packages/studio/src/components/chat/BookSidebar.tsx +291 -0
- package/inkos/packages/studio/src/components/chat/ChatMessage.tsx +39 -0
- package/inkos/packages/studio/src/components/chat/QuickActions.tsx +73 -0
- package/inkos/packages/studio/src/components/chat/ToolExecutionSteps.tsx +320 -0
- package/inkos/packages/studio/src/components/chat/__tests__/ToolExecutionSteps.test.ts +114 -0
- package/inkos/packages/studio/src/components/chat-utils.ts +56 -0
- package/inkos/packages/studio/src/components/chatbar-state.test.ts +69 -0
- package/inkos/packages/studio/src/components/sidebar/ChaptersSection.tsx +66 -0
- package/inkos/packages/studio/src/components/sidebar/CharacterSection.tsx +129 -0
- package/inkos/packages/studio/src/components/sidebar/FoundationSection.tsx +61 -0
- package/inkos/packages/studio/src/components/sidebar/ProgressSection.tsx +124 -0
- package/inkos/packages/studio/src/components/sidebar/SidebarCard.tsx +30 -0
- package/inkos/packages/studio/src/components/sidebar/SummarySection.tsx +89 -0
- package/inkos/packages/studio/src/components/ui/alert.tsx +76 -0
- package/inkos/packages/studio/src/components/ui/badge.tsx +52 -0
- package/inkos/packages/studio/src/components/ui/button-group.tsx +87 -0
- package/inkos/packages/studio/src/components/ui/button.tsx +58 -0
- package/inkos/packages/studio/src/components/ui/collapsible.tsx +19 -0
- package/inkos/packages/studio/src/components/ui/command.tsx +194 -0
- package/inkos/packages/studio/src/components/ui/dialog.tsx +158 -0
- package/inkos/packages/studio/src/components/ui/dropdown-menu.tsx +266 -0
- package/inkos/packages/studio/src/components/ui/hover-card.tsx +51 -0
- package/inkos/packages/studio/src/components/ui/input-group.tsx +158 -0
- package/inkos/packages/studio/src/components/ui/input.tsx +20 -0
- package/inkos/packages/studio/src/components/ui/select.tsx +199 -0
- package/inkos/packages/studio/src/components/ui/separator.tsx +23 -0
- package/inkos/packages/studio/src/components/ui/spinner.tsx +10 -0
- package/inkos/packages/studio/src/components/ui/textarea.tsx +18 -0
- package/inkos/packages/studio/src/components/ui/tooltip.tsx +66 -0
- package/inkos/packages/studio/src/constants/service-groups.ts +29 -0
- package/inkos/packages/studio/src/hooks/use-api.test.ts +93 -0
- package/inkos/packages/studio/src/hooks/use-api.ts +189 -0
- package/inkos/packages/studio/src/hooks/use-book-activity.test.ts +129 -0
- package/inkos/packages/studio/src/hooks/use-book-activity.ts +180 -0
- package/inkos/packages/studio/src/hooks/use-colors.ts +27 -0
- package/inkos/packages/studio/src/hooks/use-hash-route.test.ts +101 -0
- package/inkos/packages/studio/src/hooks/use-hash-route.ts +89 -0
- package/inkos/packages/studio/src/hooks/use-i18n.ts +289 -0
- package/inkos/packages/studio/src/hooks/use-session-events.ts +64 -0
- package/inkos/packages/studio/src/hooks/use-sse.test.ts +52 -0
- package/inkos/packages/studio/src/hooks/use-sse.ts +92 -0
- package/inkos/packages/studio/src/hooks/use-theme.test.ts +31 -0
- package/inkos/packages/studio/src/hooks/use-theme.ts +75 -0
- package/inkos/packages/studio/src/index.css +323 -0
- package/inkos/packages/studio/src/lib/error-copy.test.ts +34 -0
- package/inkos/packages/studio/src/lib/error-copy.ts +37 -0
- package/inkos/packages/studio/src/lib/utils.ts +6 -0
- package/inkos/packages/studio/src/main.tsx +10 -0
- package/inkos/packages/studio/src/pages/Analytics.tsx +80 -0
- package/inkos/packages/studio/src/pages/BookCreate.tsx +895 -0
- package/inkos/packages/studio/src/pages/BookDetail.tsx +652 -0
- package/inkos/packages/studio/src/pages/ChapterReader.tsx +266 -0
- package/inkos/packages/studio/src/pages/ChatPage.tsx +521 -0
- package/inkos/packages/studio/src/pages/DaemonControl.tsx +116 -0
- package/inkos/packages/studio/src/pages/Dashboard.tsx +379 -0
- package/inkos/packages/studio/src/pages/DoctorView.tsx +82 -0
- package/inkos/packages/studio/src/pages/GenreManager.tsx +464 -0
- package/inkos/packages/studio/src/pages/ImportManager.tsx +216 -0
- package/inkos/packages/studio/src/pages/LanguageSelector.tsx +74 -0
- package/inkos/packages/studio/src/pages/LogViewer.tsx +82 -0
- package/inkos/packages/studio/src/pages/RadarView.tsx +157 -0
- package/inkos/packages/studio/src/pages/ServiceDetailPage.tsx +393 -0
- package/inkos/packages/studio/src/pages/ServiceListPage.tsx +463 -0
- package/inkos/packages/studio/src/pages/StyleManager.tsx +225 -0
- package/inkos/packages/studio/src/pages/TruthFiles.tsx +194 -0
- package/inkos/packages/studio/src/pages/chat-page-state.test.ts +206 -0
- package/inkos/packages/studio/src/pages/chat-page-state.ts +112 -0
- package/inkos/packages/studio/src/pages/page-state.test.ts +258 -0
- package/inkos/packages/studio/src/pages/service-detail-state.test.ts +294 -0
- package/inkos/packages/studio/src/pages/service-detail-state.ts +234 -0
- package/inkos/packages/studio/src/pages/style-manager-state.test.ts +22 -0
- package/inkos/packages/studio/src/pages/truth-files-state.test.ts +61 -0
- package/inkos/packages/studio/src/shared/contracts.ts +143 -0
- package/inkos/packages/studio/src/store/chat/__tests__/message-parts.test.ts +172 -0
- package/inkos/packages/studio/src/store/chat/index.ts +3 -0
- package/inkos/packages/studio/src/store/chat/initialState.ts +8 -0
- package/inkos/packages/studio/src/store/chat/message-policy.test.ts +16 -0
- package/inkos/packages/studio/src/store/chat/message-policy.ts +5 -0
- package/inkos/packages/studio/src/store/chat/parts-builder.ts +187 -0
- package/inkos/packages/studio/src/store/chat/selectors.ts +13 -0
- package/inkos/packages/studio/src/store/chat/slices/create/action.ts +10 -0
- package/inkos/packages/studio/src/store/chat/slices/create/initialState.ts +9 -0
- package/inkos/packages/studio/src/store/chat/slices/message/action.ts +417 -0
- package/inkos/packages/studio/src/store/chat/slices/message/initialState.ts +10 -0
- package/inkos/packages/studio/src/store/chat/slices/message/runtime.test.ts +21 -0
- package/inkos/packages/studio/src/store/chat/slices/message/runtime.ts +233 -0
- package/inkos/packages/studio/src/store/chat/slices/message/stream-events.ts +272 -0
- package/inkos/packages/studio/src/store/chat/store.ts +11 -0
- package/inkos/packages/studio/src/store/chat/types.ts +169 -0
- package/inkos/packages/studio/src/store/service/index.ts +2 -0
- package/inkos/packages/studio/src/store/service/store.ts +123 -0
- package/inkos/packages/studio/src/store/service/types.ts +50 -0
- package/inkos/packages/studio/tsconfig.json +24 -0
- package/inkos/packages/studio/tsconfig.server.json +11 -0
- package/inkos/packages/studio/vite.config.ts +34 -0
- package/inkos/packages/studio/vitest.config.ts +14 -0
- package/inkos/pnpm-lock.yaml +9569 -0
- package/inkos/pnpm-workspace.yaml +2 -0
- package/inkos/scripts/prepare-package-for-publish.mjs +135 -0
- package/inkos/scripts/restore-package-json.mjs +31 -0
- package/inkos/scripts/set-package-versions.mjs +74 -0
- package/inkos/scripts/verify-no-workspace-protocol.mjs +140 -0
- package/inkos/skills/SKILL.md +654 -0
- package/inkos/tsconfig.json +19 -0
- package/package.json +4 -3
- /package/.next/static/{F2hMZMf1IyCVAWpkbtRz7 → -3vIrBZXdQ0rp7Wa3Kz40}/_buildManifest.js +0 -0
- /package/.next/static/{F2hMZMf1IyCVAWpkbtRz7 → -3vIrBZXdQ0rp7Wa3Kz40}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenRouter
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://openrouter.ai/
|
|
5
|
+
* - 控制台 / API key:https://openrouter.ai/keys
|
|
6
|
+
* - 模型广场:https://openrouter.ai/models
|
|
7
|
+
* - API 文档:https://openrouter.ai/docs/api-reference/overview
|
|
8
|
+
* - 模型列表 JSON:https://openrouter.ai/api/v1/models
|
|
9
|
+
*
|
|
10
|
+
* 聚合所有主流家 (Anthropic / OpenAI / Google / xAI / Meta 等) 的统一入口。
|
|
11
|
+
* 350+ 模型,bank 只列最常用的;完整清单用户侧 live /models probe。
|
|
12
|
+
*/
|
|
13
|
+
import type { InkosEndpoint } from "../types.js";
|
|
14
|
+
|
|
15
|
+
export const OPENROUTER: InkosEndpoint = {
|
|
16
|
+
id: "openrouter",
|
|
17
|
+
label: "OpenRouter",
|
|
18
|
+
group: "aggregator",
|
|
19
|
+
api: "openai-responses",
|
|
20
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
21
|
+
checkModel: "google/gemma-2-9b-it:free",
|
|
22
|
+
temperatureRange: [0, 2],
|
|
23
|
+
defaultTemperature: 0.7,
|
|
24
|
+
writingTemperature: 1,
|
|
25
|
+
models: [
|
|
26
|
+
{ id: "openrouter/auto", maxOutput: 4096, contextWindowTokens: 2000000, enabled: true },
|
|
27
|
+
{ id: "deepseek/deepseek-chat-v3.1", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-08-21" },
|
|
28
|
+
{ id: "google/gemini-3.1-flash-image-preview", maxOutput: 65536, contextWindowTokens: 131072, releasedAt: "2026-02-26" },
|
|
29
|
+
{ id: "google/gemini-3-pro-image-preview", maxOutput: 32768, contextWindowTokens: 163840, releasedAt: "2025-11-20" },
|
|
30
|
+
{ id: "google/gemini-2.5-flash-image", maxOutput: 8192, contextWindowTokens: 40960, releasedAt: "2025-10-07" },
|
|
31
|
+
{ id: "qwen/qwen3-30b-a3b:free", maxOutput: 4096, contextWindowTokens: 40960 },
|
|
32
|
+
{ id: "qwen/qwen3-30b-a3b", maxOutput: 40960, contextWindowTokens: 40960 },
|
|
33
|
+
{ id: "qwen/qwen3-8b:free", maxOutput: 40960, contextWindowTokens: 40960 },
|
|
34
|
+
{ id: "qwen/qwen3-14b:free", maxOutput: 4096, contextWindowTokens: 40960 },
|
|
35
|
+
{ id: "qwen/qwen3-14b", maxOutput: 40960, contextWindowTokens: 40960 },
|
|
36
|
+
{ id: "qwen/qwen3-32b:free", maxOutput: 4096, contextWindowTokens: 40960 },
|
|
37
|
+
{ id: "qwen/qwen3-32b", maxOutput: 4096, contextWindowTokens: 40960 },
|
|
38
|
+
{ id: "qwen/qwen3-235b-a22b:free", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
39
|
+
{ id: "qwen/qwen3-235b-a22b", maxOutput: 40960, contextWindowTokens: 40960 },
|
|
40
|
+
{ id: "tngtech/deepseek-r1t-chimera:free", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
41
|
+
{ id: "thudm/glm-z1-rumination-32b", maxOutput: 4096, contextWindowTokens: 32000 },
|
|
42
|
+
{ id: "thudm/glm-z1-32b", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
43
|
+
{ id: "thudm/glm-4-32b:free", maxOutput: 4096, contextWindowTokens: 32000 },
|
|
44
|
+
{ id: "thudm/glm-4-32b", maxOutput: 4096, contextWindowTokens: 32000 },
|
|
45
|
+
{ id: "google/gemini-2.5-pro", maxOutput: 65536, contextWindowTokens: 1048576 },
|
|
46
|
+
{ id: "google/gemini-2.5-pro-preview", maxOutput: 65536, contextWindowTokens: 1048576 },
|
|
47
|
+
{ id: "google/gemini-2.5-flash", maxOutput: 65535, contextWindowTokens: 1048576 },
|
|
48
|
+
{ id: "google/gemini-2.5-flash-preview", maxOutput: 65535, contextWindowTokens: 1048576 },
|
|
49
|
+
{ id: "google/gemini-2.5-flash-preview:thinking", maxOutput: 65535, contextWindowTokens: 1048576 },
|
|
50
|
+
{ id: "openai/o3", maxOutput: 100000, contextWindowTokens: 200000, releasedAt: "2025-04-17" },
|
|
51
|
+
{ id: "openai/o4-mini-high", maxOutput: 100000, contextWindowTokens: 200000, releasedAt: "2025-04-17" },
|
|
52
|
+
{ id: "openai/o4-mini", maxOutput: 100000, contextWindowTokens: 200000, releasedAt: "2025-04-17" },
|
|
53
|
+
{ id: "openai/gpt-4.1", maxOutput: 32768, contextWindowTokens: 1047576, releasedAt: "2025-04-14" },
|
|
54
|
+
{ id: "openai/gpt-4.1-mini", maxOutput: 32768, contextWindowTokens: 1047576, releasedAt: "2025-04-14" },
|
|
55
|
+
{ id: "openai/gpt-4.1-nano", maxOutput: 32768, contextWindowTokens: 1047576, releasedAt: "2025-04-14" },
|
|
56
|
+
{ id: "openai/o3-mini-high", maxOutput: 100000, contextWindowTokens: 200000, releasedAt: "2025-01-31" },
|
|
57
|
+
{ id: "openai/o3-mini", maxOutput: 100000, contextWindowTokens: 200000, releasedAt: "2025-01-31" },
|
|
58
|
+
{ id: "openai/o1-mini", maxOutput: 65536, contextWindowTokens: 128000, releasedAt: "2024-09-12" },
|
|
59
|
+
{ id: "openai/o1-preview", maxOutput: 32768, contextWindowTokens: 128000, releasedAt: "2024-09-12" },
|
|
60
|
+
{ id: "openai/gpt-4o-mini", maxOutput: 16385, contextWindowTokens: 128000 },
|
|
61
|
+
{ id: "openai/gpt-4o", maxOutput: 4096, contextWindowTokens: 128000 },
|
|
62
|
+
{ id: "deepseek/deepseek-r1-0528", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-05-28" },
|
|
63
|
+
{ id: "deepseek/deepseek-r1-0528:free", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-05-28" },
|
|
64
|
+
{ id: "deepseek/deepseek-r1", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-01-20" },
|
|
65
|
+
{ id: "deepseek/deepseek-r1:free", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-01-20" },
|
|
66
|
+
{ id: "deepseek/deepseek-chat-v3-0324", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
67
|
+
{ id: "deepseek/deepseek-chat-v3-0324:free", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
68
|
+
{ id: "anthropic/claude-opus-4.5", maxOutput: 64000, contextWindowTokens: 200000, releasedAt: "2025-11-24" },
|
|
69
|
+
{ id: "anthropic/claude-sonnet-4.5", maxOutput: 64000, contextWindowTokens: 200000, releasedAt: "2025-09-30" },
|
|
70
|
+
{ id: "anthropic/claude-3-haiku", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2024-03-07" },
|
|
71
|
+
{ id: "anthropic/claude-3.5-haiku", maxOutput: 8192, contextWindowTokens: 200000, releasedAt: "2024-11-05" },
|
|
72
|
+
{ id: "anthropic/claude-3.5-sonnet", maxOutput: 8192, contextWindowTokens: 200000, releasedAt: "2024-06-20" },
|
|
73
|
+
{ id: "anthropic/claude-3.7-sonnet", maxOutput: 8192, contextWindowTokens: 200000, releasedAt: "2025-02-24" },
|
|
74
|
+
{ id: "anthropic/claude-sonnet-4", maxOutput: 64000, contextWindowTokens: 200000, releasedAt: "2025-05-23" },
|
|
75
|
+
{ id: "anthropic/claude-opus-4", maxOutput: 32000, contextWindowTokens: 200000, releasedAt: "2025-05-23" },
|
|
76
|
+
{ id: "anthropic/claude-3-opus", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2024-02-29" },
|
|
77
|
+
{ id: "google/gemini-flash-1.5", maxOutput: 8192, contextWindowTokens: 1008192 },
|
|
78
|
+
{ id: "google/gemini-2.0-flash-001", maxOutput: 8192, contextWindowTokens: 1056768, releasedAt: "2025-02-05" },
|
|
79
|
+
{ id: "google/gemini-pro-1.5", maxOutput: 8192, contextWindowTokens: 2008192 },
|
|
80
|
+
{ id: "meta-llama/llama-3.2-11b-vision-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
81
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
82
|
+
{ id: "meta-llama/llama-3.3-70b-instruct:free", maxOutput: 4096, contextWindowTokens: 65536 },
|
|
83
|
+
{ id: "qwen/qwen-2-7b-instruct:free", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
84
|
+
{ id: "meta-llama/llama-3.1-8b-instruct:free", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
85
|
+
{ id: "google/gemma-2-9b-it:free", maxOutput: 4096, contextWindowTokens: 8192 },
|
|
86
|
+
],
|
|
87
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PPIO (派欧云)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://ppinfra.com/
|
|
5
|
+
* - 控制台 / API key:https://ppinfra.com/user/api-keys
|
|
6
|
+
* - 模型广场:https://ppinfra.com/model
|
|
7
|
+
* - API 文档:https://ppinfra.com/docs/model-api
|
|
8
|
+
*
|
|
9
|
+
* 聚合型推理平台,代理 DeepSeek / Qwen / Moonshot / MiniMax / GLM / 百度 ERNIE 等,
|
|
10
|
+
* 模型更新频繁(每周都有新 id),bank 只维护主流文本 chat 模型,
|
|
11
|
+
* 元数据以 live /models probe 为准。
|
|
12
|
+
*/
|
|
13
|
+
import type { InkosEndpoint } from "../types.js";
|
|
14
|
+
|
|
15
|
+
export const PPIO: InkosEndpoint = {
|
|
16
|
+
id: "ppio",
|
|
17
|
+
label: "PPIO",
|
|
18
|
+
group: "aggregator",
|
|
19
|
+
api: "openai-completions",
|
|
20
|
+
baseUrl: "https://api.ppinfra.com/v3/openai",
|
|
21
|
+
checkModel: "deepseek/deepseek-v3.2",
|
|
22
|
+
temperatureRange: [0, 2],
|
|
23
|
+
defaultTemperature: 0.7,
|
|
24
|
+
writingTemperature: 1,
|
|
25
|
+
models: [
|
|
26
|
+
// --- DeepSeek 系列 ---
|
|
27
|
+
{ id: "deepseek/deepseek-v3.2", maxOutput: 8192, contextWindowTokens: 131072, enabled: true },
|
|
28
|
+
{ id: "deepseek/deepseek-v3.2-exp", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
29
|
+
{ id: "deepseek/deepseek-v3.1-terminus", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
30
|
+
{ id: "deepseek/deepseek-v3.1", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
31
|
+
{ id: "deepseek/deepseek-v3-0324", maxOutput: 8192, contextWindowTokens: 65536 },
|
|
32
|
+
{ id: "deepseek/deepseek-v3-turbo", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
33
|
+
{ id: "deepseek/deepseek-r1-0528", maxOutput: 65536, contextWindowTokens: 131072 },
|
|
34
|
+
{ id: "deepseek/deepseek-r1-turbo", maxOutput: 65536, contextWindowTokens: 131072 },
|
|
35
|
+
{ id: "deepseek/deepseek-prover-v2-671b", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
36
|
+
// --- Moonshot Kimi 系列 ---
|
|
37
|
+
{ id: "moonshotai/kimi-k2.6", maxOutput: 32768, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-21", temperature: 1 },
|
|
38
|
+
{ id: "moonshotai/kimi-k2.5", maxOutput: 32768, contextWindowTokens: 262144, releasedAt: "2026-01-27", temperature: 1 },
|
|
39
|
+
{ id: "moonshotai/kimi-k2-thinking", maxOutput: 65536, contextWindowTokens: 262144, temperature: 1 },
|
|
40
|
+
{ id: "moonshotai/kimi-k2-0905", maxOutput: 8192, contextWindowTokens: 262144 },
|
|
41
|
+
{ id: "moonshotai/kimi-k2-instruct", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
42
|
+
// --- MiniMax ---
|
|
43
|
+
{ id: "minimax/minimax-m2.7", maxOutput: 32768, contextWindowTokens: 204800, enabled: true },
|
|
44
|
+
{ id: "minimax/minimax-m2.7-highspeed", maxOutput: 32768, contextWindowTokens: 204800 },
|
|
45
|
+
{ id: "minimax/minimax-m2.5", maxOutput: 32768, contextWindowTokens: 196608 },
|
|
46
|
+
{ id: "minimax/minimax-m2.5-highspeed", maxOutput: 32768, contextWindowTokens: 196608 },
|
|
47
|
+
{ id: "minimax/minimax-m2.1", maxOutput: 32768, contextWindowTokens: 204800 },
|
|
48
|
+
{ id: "minimax/minimax-m2", maxOutput: 32768, contextWindowTokens: 204800 },
|
|
49
|
+
// --- 智谱 GLM ---
|
|
50
|
+
{ id: "zai-org/glm-5.1", maxOutput: 16384, contextWindowTokens: 202752, enabled: true, releasedAt: "2026-04-23" },
|
|
51
|
+
{ id: "zai-org/glm-5", maxOutput: 16384, contextWindowTokens: 202752 },
|
|
52
|
+
{ id: "zai-org/glm-5-turbo", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
53
|
+
{ id: "zai-org/glm-4.7", maxOutput: 16384, contextWindowTokens: 202752 },
|
|
54
|
+
{ id: "zai-org/glm-4.7-flash", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
55
|
+
{ id: "zai-org/glm-4.6", maxOutput: 16384, contextWindowTokens: 202752 },
|
|
56
|
+
{ id: "zai-org/glm-4.5", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
57
|
+
{ id: "zai-org/glm-4.5-air", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
58
|
+
// --- Qwen 系列 ---
|
|
59
|
+
{ id: "qwen/qwen3.6-27b", maxOutput: 65536, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-23" },
|
|
60
|
+
{ id: "qwen/qwen3.5-plus", maxOutput: 65536, contextWindowTokens: 1000000, enabled: true },
|
|
61
|
+
{ id: "qwen/qwen3.5-397b-a17b", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
62
|
+
{ id: "qwen/qwen3.5-122b-a10b", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
63
|
+
{ id: "qwen/qwen3.5-35b-a3b", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
64
|
+
{ id: "qwen/qwen3.5-27b", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
65
|
+
{ id: "qwen/qwen3-coder-next", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
66
|
+
{ id: "qwen/qwen3-coder-480b-a35b-instruct", maxOutput: 65536, contextWindowTokens: 262144 },
|
|
67
|
+
{ id: "qwen/qwen3-next-80b-a3b-instruct", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
68
|
+
{ id: "qwen/qwen3-next-80b-a3b-thinking", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
69
|
+
{ id: "qwen/qwen3-235b-a22b-instruct-2507", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
70
|
+
{ id: "qwen/qwen3-235b-a22b-thinking-2507", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
71
|
+
{ id: "qwen/qwen3-235b-a22b-fp8", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
72
|
+
{ id: "qwen/qwen3-32b-fp8", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
73
|
+
{ id: "qwen/qwen3-30b-a3b-fp8", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
74
|
+
{ id: "qwen/qwen-2.5-72b-instruct", maxOutput: 8192, contextWindowTokens: 32768 },
|
|
75
|
+
// --- 百度 ERNIE 4.5 ---
|
|
76
|
+
{ id: "baidu/ernie-4.5-300b-a47b-paddle", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
77
|
+
{ id: "baidu/ernie-4.5-21B-a3b", maxOutput: 8192, contextWindowTokens: 131072 },
|
|
78
|
+
{ id: "baidu/ernie-4.5-21b-a3b-thinking", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
79
|
+
// --- 小米 MiMo ---
|
|
80
|
+
{ id: "xiaomimimo/mimo-v2-pro", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
81
|
+
{ id: "xiaomimimo/mimo-v2-flash", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
82
|
+
// --- PPIO 自研 ---
|
|
83
|
+
{ id: "ppio-4b", maxOutput: 8192, contextWindowTokens: 32768 },
|
|
84
|
+
{ id: "kat-coder", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
85
|
+
],
|
|
86
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 七牛云 AI 推理 (Qiniu)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://www.qiniu.com/
|
|
5
|
+
* - 控制台 / API key:https://portal.qiniu.com/ai-inference/api-key
|
|
6
|
+
* - API 文档:https://developer.qiniu.com/aitokenapi
|
|
7
|
+
*/
|
|
8
|
+
import type { InkosEndpoint } from "../types.js";
|
|
9
|
+
|
|
10
|
+
export const QINIU: InkosEndpoint = {
|
|
11
|
+
id: "qiniu",
|
|
12
|
+
label: "七牛云 AI",
|
|
13
|
+
group: "aggregator",
|
|
14
|
+
api: "openai-completions",
|
|
15
|
+
baseUrl: "https://api.qnaigc.com/v1",
|
|
16
|
+
checkModel: "deepseek-v3",
|
|
17
|
+
temperatureRange: [0, 2],
|
|
18
|
+
defaultTemperature: 0.7,
|
|
19
|
+
writingTemperature: 1,
|
|
20
|
+
models: [
|
|
21
|
+
{ id: "deepseek-v3", maxOutput: 4096, contextWindowTokens: 131072, enabled: true },
|
|
22
|
+
{ id: "deepseek-r1", maxOutput: 4096, contextWindowTokens: 65536, enabled: true },
|
|
23
|
+
{ id: "minimax/minimax-m2.1", maxOutput: 131072, contextWindowTokens: 204800, enabled: true, releasedAt: "2025-12-24" },
|
|
24
|
+
{ id: "minimax/minimax-m2", maxOutput: 131072, contextWindowTokens: 204800, enabled: true, releasedAt: "2025-10-27" },
|
|
25
|
+
{ id: "deepseek/deepseek-math-v2", maxOutput: 131072, contextWindowTokens: 163840, enabled: true, releasedAt: "2025-11-27" },
|
|
26
|
+
{ id: "meituan/longcat-flash-chat", maxOutput: 65536, contextWindowTokens: 131072, enabled: true, releasedAt: "2025-09-01" },
|
|
27
|
+
{ id: "z-ai/glm-4.7", maxOutput: 128000, contextWindowTokens: 200000, enabled: true, releasedAt: "2025-12-23" },
|
|
28
|
+
{ id: "z-ai/glm-4.6", maxOutput: 128000, contextWindowTokens: 200000, enabled: true, releasedAt: "2025-09-30" },
|
|
29
|
+
{ id: "x-ai/grok-4-fast", maxOutput: 4096, contextWindowTokens: 2000000, enabled: true, releasedAt: "2025-09-09" },
|
|
30
|
+
{ id: "x-ai/grok-code-fast-1", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-08-27" },
|
|
31
|
+
],
|
|
32
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 商汤日日新 (SenseNova)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://platform.sensenova.cn/
|
|
5
|
+
* - 控制台 / API key:https://console.sensecore.cn/aistudio/management/access-key
|
|
6
|
+
* - API 文档:https://platform.sensenova.cn/doc
|
|
7
|
+
*/
|
|
8
|
+
import type { InkosEndpoint } from "../types.js";
|
|
9
|
+
|
|
10
|
+
export const SENSENOVA: InkosEndpoint = {
|
|
11
|
+
id: "sensenova",
|
|
12
|
+
label: "商汤日日新",
|
|
13
|
+
group: "china",
|
|
14
|
+
api: "openai-completions",
|
|
15
|
+
baseUrl: "https://api.sensenova.cn/compatible-mode/v1",
|
|
16
|
+
checkModel: "SenseChat-Turbo",
|
|
17
|
+
temperatureRange: [0, 2],
|
|
18
|
+
defaultTemperature: 0.7,
|
|
19
|
+
writingTemperature: 1,
|
|
20
|
+
models: [
|
|
21
|
+
{ id: "SenseNova-V6-5-Pro", maxOutput: 4096, contextWindowTokens: 131072, enabled: true, releasedAt: "2025-07-23" },
|
|
22
|
+
{ id: "SenseNova-V6-5-Turbo", maxOutput: 4096, contextWindowTokens: 131072, enabled: true, releasedAt: "2025-07-23" },
|
|
23
|
+
{ id: "Qwen3-235B", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-05-27" },
|
|
24
|
+
{ id: "Qwen3-32B", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-05-27" },
|
|
25
|
+
{ id: "SenseNova-V6-Reasoner", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
|
|
26
|
+
{ id: "SenseNova-V6-Turbo", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
|
|
27
|
+
{ id: "SenseNova-V6-Pro", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
|
|
28
|
+
{ id: "SenseChat-5-beta", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
29
|
+
{ id: "SenseChat-5-1202", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2024-12-30" },
|
|
30
|
+
{ id: "SenseChat-Turbo-1202", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2024-12-30" },
|
|
31
|
+
{ id: "SenseChat-5", maxOutput: 131072, contextWindowTokens: 131072 },
|
|
32
|
+
{ id: "SenseChat-Vision", maxOutput: 16384, contextWindowTokens: 16384, releasedAt: "2024-09-12" },
|
|
33
|
+
{ id: "SenseChat-Turbo", maxOutput: 32768, contextWindowTokens: 32768 },
|
|
34
|
+
{ id: "SenseChat-128K", maxOutput: 131072, contextWindowTokens: 131072 },
|
|
35
|
+
{ id: "SenseChat-32K", maxOutput: 32768, contextWindowTokens: 32768 },
|
|
36
|
+
{ id: "SenseChat", maxOutput: 4096, contextWindowTokens: 4096 },
|
|
37
|
+
{ id: "SenseChat-5-Cantonese", maxOutput: 32768, contextWindowTokens: 32768 },
|
|
38
|
+
{ id: "SenseChat-Character", maxOutput: 1024, contextWindowTokens: 8192 },
|
|
39
|
+
{ id: "SenseChat-Character-Pro", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
40
|
+
{ id: "DeepSeek-V3", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
41
|
+
{ id: "DeepSeek-R1", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
42
|
+
{ id: "DeepSeek-R1-Distill-Qwen-14B", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
43
|
+
{ id: "DeepSeek-R1-Distill-Qwen-32B", maxOutput: 4096, contextWindowTokens: 8192 },
|
|
44
|
+
],
|
|
45
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 硅基流动 (SiliconCloud / SiliconFlow)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://www.siliconflow.com/
|
|
5
|
+
* - 控制台 / API key:https://cloud.siliconflow.cn/account/ak
|
|
6
|
+
* - 模型广场:https://cloud.siliconflow.cn/models
|
|
7
|
+
* - API 文档:https://docs.siliconflow.cn/
|
|
8
|
+
*
|
|
9
|
+
* 聚合平台,代理 Qwen / DeepSeek / GLM / Kimi / 百川 / 昆仑万维等多家开源 + 托管模型,
|
|
10
|
+
* 新模型上架频繁,bank 只维护文本 chat 主流,元数据以 live /models probe 为准。
|
|
11
|
+
*/
|
|
12
|
+
import type { InkosEndpoint } from "../types.js";
|
|
13
|
+
|
|
14
|
+
export const SILICONCLOUD: InkosEndpoint = {
|
|
15
|
+
id: "siliconcloud",
|
|
16
|
+
label: "硅基流动",
|
|
17
|
+
group: "aggregator",
|
|
18
|
+
api: "openai-completions",
|
|
19
|
+
baseUrl: "https://api.siliconflow.cn/v1",
|
|
20
|
+
checkModel: "Qwen/Qwen2.5-7B-Instruct",
|
|
21
|
+
temperatureRange: [0, 2],
|
|
22
|
+
defaultTemperature: 0.7,
|
|
23
|
+
writingTemperature: 1,
|
|
24
|
+
models: [
|
|
25
|
+
// --- 2026-04 新上 ---
|
|
26
|
+
{ id: "Pro/moonshotai/Kimi-K2.6", maxOutput: 4096, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-21", temperature: 1 },
|
|
27
|
+
{ id: "Pro/zai-org/GLM-5", maxOutput: 4096, contextWindowTokens: 198000 },
|
|
28
|
+
{ id: "Pro/zai-org/GLM-4.7", maxOutput: 4096, contextWindowTokens: 200000 },
|
|
29
|
+
{ id: "Qwen/Qwen3.6-35B-A3B", maxOutput: 4096, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-17" },
|
|
30
|
+
{ id: "Qwen/Qwen3.6-27B", maxOutput: 4096, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-23" },
|
|
31
|
+
// ---
|
|
32
|
+
{ id: "Qwen/Qwen3.5-397B-A17B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-16" },
|
|
33
|
+
{ id: "Qwen/Qwen3.5-122B-A10B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-26" },
|
|
34
|
+
{ id: "Qwen/Qwen3.5-35B-A3B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-25" },
|
|
35
|
+
{ id: "Qwen/Qwen3.5-27B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-02-25" },
|
|
36
|
+
{ id: "Qwen/Qwen3.5-9B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
37
|
+
{ id: "Qwen/Qwen3.5-4B", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
38
|
+
{ id: "Pro/MiniMaxAI/MiniMax-M2.5", maxOutput: 4096, contextWindowTokens: 192000, releasedAt: "2026-02-13" },
|
|
39
|
+
{ id: "Pro/zai-org/glm-5", maxOutput: 4096, contextWindowTokens: 198000, releasedAt: "2026-02-12" },
|
|
40
|
+
{ id: "Pro/zai-org/GLM-5.1", maxOutput: 4096, contextWindowTokens: 198000, releasedAt: "2026-04-08" },
|
|
41
|
+
{ id: "zai-org/GLM-4.6V", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-12-08" },
|
|
42
|
+
{ id: "deepseek-ai/DeepSeek-V3.2", maxOutput: 4096, contextWindowTokens: 163840, enabled: true, releasedAt: "2025-12-01" },
|
|
43
|
+
{ id: "Pro/deepseek-ai/DeepSeek-V3.2", maxOutput: 4096, contextWindowTokens: 163840, releasedAt: "2025-12-01" },
|
|
44
|
+
{ id: "Pro/moonshotai/Kimi-K2.5", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-01-27", temperature: 1 },
|
|
45
|
+
{ id: "qwen/qwen3.5-397b-a17b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
46
|
+
{ id: "qwen/qwen3.5-122b-a10b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
47
|
+
{ id: "qwen/qwen3.5-35b-a3b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
48
|
+
{ id: "qwen/qwen3.5-27b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
49
|
+
{ id: "qwen/qwen3.5-9b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
50
|
+
{ id: "qwen/qwen3.5-4b", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2026-03-03" },
|
|
51
|
+
{ id: "Pro/zai-org/glm-4.7", maxOutput: 4096, contextWindowTokens: 200000, releasedAt: "2025-12-22" },
|
|
52
|
+
{ id: "moonshotai/Kimi-K2-Thinking", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-11-07", temperature: 1 },
|
|
53
|
+
{ id: "Pro/moonshotai/Kimi-K2-Thinking", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-11-07", temperature: 1 },
|
|
54
|
+
{ id: "MiniMaxAI/MiniMax-M2", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-10-28" },
|
|
55
|
+
{ id: "Qwen/Qwen3-VL-32B-Instruct", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-10-21" },
|
|
56
|
+
{ id: "Qwen/Qwen3-VL-32B-Thinking", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-10-21" },
|
|
57
|
+
{ id: "deepseek-ai/DeepSeek-OCR", maxOutput: 4096, contextWindowTokens: 8192, releasedAt: "2025-10-20" },
|
|
58
|
+
{ id: "Qwen/Qwen3-Omni-30B-A3B-Instruct", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-09-22" },
|
|
59
|
+
{ id: "Qwen/Qwen3-Omni-30B-A3B-Thinking", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-09-22" },
|
|
60
|
+
{ id: "Qwen/Qwen3-Omni-30B-A3B-Captioner", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-09-22" },
|
|
61
|
+
{ id: "tencent/Hunyuan-MT-7B", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-09-01" },
|
|
62
|
+
{ id: "Kwaipilot/KAT-Dev", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-27" },
|
|
63
|
+
{ id: "zai-org/GLM-4.6", maxOutput: 4096, contextWindowTokens: 198000, releasedAt: "2025-09-30" },
|
|
64
|
+
{ id: "Qwen/Qwen3-VL-30B-A3B-Instruct", maxOutput: 4096, contextWindowTokens: 256000 },
|
|
65
|
+
{ id: "Qwen/Qwen3-VL-30B-A3B-Thinking", maxOutput: 4096, contextWindowTokens: 256000 },
|
|
66
|
+
{ id: "Qwen/Qwen3-VL-235B-A22B-Instruct", maxOutput: 4096, contextWindowTokens: 256000 },
|
|
67
|
+
{ id: "Qwen/Qwen3-VL-235B-A22B-Thinking", maxOutput: 4096, contextWindowTokens: 256000 },
|
|
68
|
+
{ id: "deepseek-ai/DeepSeek-V3.1-Terminus", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
69
|
+
{ id: "Pro/deepseek-ai/DeepSeek-V3.1-Terminus", maxOutput: 4096, contextWindowTokens: 163840 },
|
|
70
|
+
{ id: "Qwen/Qwen3-VL-8B-Instruct", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-10-15" },
|
|
71
|
+
{ id: "Qwen/Qwen3-VL-8B-Thinking", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-10-15" },
|
|
72
|
+
{ id: "inclusionAI/Ring-flash-2.0", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-19" },
|
|
73
|
+
{ id: "inclusionAI/Ling-flash-2.0", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-17" },
|
|
74
|
+
{ id: "inclusionAI/Ling-mini-2.0", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-09-09" },
|
|
75
|
+
{ id: "ByteDance-Seed/Seed-OSS-36B-Instruct", maxOutput: 4096, contextWindowTokens: 256000, releasedAt: "2025-08-20" },
|
|
76
|
+
{ id: "stepfun-ai/step3", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-07-31" },
|
|
77
|
+
{ id: "Qwen/Qwen3-Coder-480B-A35B-Instruct", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-23" },
|
|
78
|
+
{ id: "Qwen/Qwen3-Coder-30B-A3B-Instruct", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-31" },
|
|
79
|
+
{ id: "zai-org/GLM-4.5V", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-08-11" },
|
|
80
|
+
{ id: "zai-org/GLM-4.5-Air", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-07-28" },
|
|
81
|
+
{ id: "ascend-tribe/pangu-pro-moe", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-17" },
|
|
82
|
+
{ id: "baidu/ERNIE-4.5-300B-A47B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-30" },
|
|
83
|
+
{ id: "moonshotai/Kimi-K2-Instruct-0905", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-09-05" },
|
|
84
|
+
{ id: "Pro/moonshotai/Kimi-K2-Instruct-0905", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-09-05" },
|
|
85
|
+
{ id: "moonshotai/Kimi-Dev-72B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-17" },
|
|
86
|
+
{ id: "tencent/Hunyuan-A13B-Instruct", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-27" },
|
|
87
|
+
{ id: "MiniMaxAI/MiniMax-M1-80k", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-06-16" },
|
|
88
|
+
{ id: "Tongyi-Zhiwen/QwenLong-L1-32B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-05-26" },
|
|
89
|
+
{ id: "Qwen/Qwen3-235B-A22B-Thinking-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-25" },
|
|
90
|
+
{ id: "Qwen/Qwen3-235B-A22B-Instruct-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-21" },
|
|
91
|
+
{ id: "Qwen/Qwen3-30B-A3B-Thinking-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-30" },
|
|
92
|
+
{ id: "Qwen/Qwen3-30B-A3B-Instruct-2507", maxOutput: 4096, contextWindowTokens: 262144, releasedAt: "2025-07-29" },
|
|
93
|
+
{ id: "Qwen/Qwen3-32B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
94
|
+
{ id: "Qwen/Qwen3-14B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
95
|
+
{ id: "Qwen/Qwen3-8B", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-28" },
|
|
96
|
+
{ id: "THUDM/GLM-4.1V-9B-Thinking", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-07-02" },
|
|
97
|
+
{ id: "Pro/THUDM/GLM-4.1V-9B-Thinking", maxOutput: 4096, contextWindowTokens: 65536, releasedAt: "2025-07-02" },
|
|
98
|
+
{ id: "THUDM/GLM-Z1-32B-0414", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-14" },
|
|
99
|
+
{ id: "THUDM/GLM-Z1-9B-0414", maxOutput: 4096, contextWindowTokens: 131072, releasedAt: "2025-04-14" },
|
|
100
|
+
{ id: "THUDM/GLM-4-32B-0414", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
|
|
101
|
+
{ id: "THUDM/GLM-4-9B-0414", maxOutput: 4096, contextWindowTokens: 32768, releasedAt: "2025-04-14" },
|
|
102
|
+
{ id: "deepseek-ai/DeepSeek-R1-0528-Qwen3-8B", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
103
|
+
{ id: "deepseek-ai/DeepSeek-R1", maxOutput: 4096, contextWindowTokens: 98304 },
|
|
104
|
+
{ id: "deepseek-ai/DeepSeek-V3", maxOutput: 4096, contextWindowTokens: 65536 },
|
|
105
|
+
{ id: "Pro/deepseek-ai/DeepSeek-R1", maxOutput: 4096, contextWindowTokens: 98304 },
|
|
106
|
+
{ id: "Pro/deepseek-ai/DeepSeek-V3", maxOutput: 4096, contextWindowTokens: 65536 },
|
|
107
|
+
{ id: "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
108
|
+
{ id: "deepseek-ai/DeepSeek-R1-Distill-Qwen-14B", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
109
|
+
{ id: "deepseek-ai/DeepSeek-R1-Distill-Qwen-7B", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
110
|
+
{ id: "Pro/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
111
|
+
{ id: "deepseek-ai/DeepSeek-V2.5", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
112
|
+
{ id: "Qwen/QVQ-72B-Preview", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
113
|
+
{ id: "Qwen/QwQ-32B", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
114
|
+
{ id: "Qwen/Qwen2.5-7B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
115
|
+
{ id: "Pro/Qwen/Qwen2.5-7B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
116
|
+
{ id: "Qwen/Qwen2.5-14B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
117
|
+
{ id: "Qwen/Qwen2.5-32B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
118
|
+
{ id: "Qwen/Qwen2.5-72B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
119
|
+
{ id: "Qwen/Qwen2.5-72B-Instruct-128K", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
120
|
+
{ id: "Qwen/Qwen2.5-Coder-32B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
121
|
+
{ id: "Qwen/Qwen2-VL-72B-Instruct", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
122
|
+
{ id: "Qwen/Qwen2.5-VL-32B-Instruct", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
123
|
+
{ id: "Qwen/Qwen2.5-VL-72B-Instruct", maxOutput: 4096, contextWindowTokens: 131072 },
|
|
124
|
+
{ id: "internlm/internlm2_5-7b-chat", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
125
|
+
],
|
|
126
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 讯飞星火 (iFLYTEK Spark)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://xinghuo.xfyun.cn/
|
|
5
|
+
* - 控制台 / API key:https://console.xfyun.cn/services/cbm
|
|
6
|
+
* - HTTP API 文档:https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html
|
|
7
|
+
* - OpenAI 兼容接入:https://spark-api-open.xf-yun.com/v1
|
|
8
|
+
*
|
|
9
|
+
* 模型 id 命名历史遗留——用的是内部 domain 字段(generalv3 = Spark Pro,
|
|
10
|
+
* generalv3.5 = Spark Max,4.0Ultra = 当前旗舰)。bank 按官方文档清单维护。
|
|
11
|
+
*/
|
|
12
|
+
import type { InkosEndpoint } from "../types.js";
|
|
13
|
+
|
|
14
|
+
export const SPARK: InkosEndpoint = {
|
|
15
|
+
id: "spark",
|
|
16
|
+
label: "讯飞星火",
|
|
17
|
+
group: "china",
|
|
18
|
+
api: "openai-completions",
|
|
19
|
+
baseUrl: "https://spark-api-open.xf-yun.com/v1",
|
|
20
|
+
checkModel: "lite",
|
|
21
|
+
temperatureRange: [0, 1],
|
|
22
|
+
defaultTemperature: 0.5,
|
|
23
|
+
writingTemperature: 0.95,
|
|
24
|
+
models: [
|
|
25
|
+
// id 即官方文档 model 字段。对应产品名写在行尾注释
|
|
26
|
+
{ id: "4.0Ultra", maxOutput: 32768, contextWindowTokens: 32768, enabled: true }, // Spark 4.0 Ultra
|
|
27
|
+
{ id: "pro-128k", maxOutput: 32768, contextWindowTokens: 131072, enabled: true }, // Spark Pro-128K
|
|
28
|
+
{ id: "max-32k", maxOutput: 8192, contextWindowTokens: 32768 }, // Spark Max-32K
|
|
29
|
+
{ id: "generalv3.5", maxOutput: 8192, contextWindowTokens: 8192 }, // Spark Max (2026-03-10 后台升级到 Ultra)
|
|
30
|
+
{ id: "generalv3", maxOutput: 8192, contextWindowTokens: 8192 }, // Spark Pro
|
|
31
|
+
{ id: "lite", maxOutput: 4096, contextWindowTokens: 8192, enabled: true }, // Spark Lite
|
|
32
|
+
],
|
|
33
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 阶跃星辰 (StepFun)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://www.stepfun.com/
|
|
5
|
+
* - 控制台 / API key:https://platform.stepfun.com/interface-key
|
|
6
|
+
* - API 文档:https://platform.stepfun.com/docs/overview/concept
|
|
7
|
+
*/
|
|
8
|
+
import type { InkosEndpoint } from "../types.js";
|
|
9
|
+
|
|
10
|
+
export const STEPFUN: InkosEndpoint = {
|
|
11
|
+
id: "stepfun",
|
|
12
|
+
label: "阶跃星辰",
|
|
13
|
+
group: "china",
|
|
14
|
+
api: "openai-completions",
|
|
15
|
+
baseUrl: "https://api.stepfun.com/v1",
|
|
16
|
+
checkModel: "step-1-8k",
|
|
17
|
+
temperatureRange: [0, 1],
|
|
18
|
+
defaultTemperature: 0.7,
|
|
19
|
+
writingTemperature: 1,
|
|
20
|
+
models: [
|
|
21
|
+
{ id: "step-3.5-flash", maxOutput: 4096, contextWindowTokens: 256000, enabled: true },
|
|
22
|
+
{ id: "step-3", maxOutput: 4096, contextWindowTokens: 64000, enabled: true },
|
|
23
|
+
{ id: "step-r1-v-mini", maxOutput: 4096, contextWindowTokens: 100000 },
|
|
24
|
+
{ id: "step-1-8k", maxOutput: 4096, contextWindowTokens: 8000 },
|
|
25
|
+
{ id: "step-1-32k", maxOutput: 4096, contextWindowTokens: 32000 },
|
|
26
|
+
{ id: "step-1-256k", maxOutput: 4096, contextWindowTokens: 256000 },
|
|
27
|
+
{ id: "step-2-mini", maxOutput: 4096, contextWindowTokens: 8000, releasedAt: "2025-01-14" },
|
|
28
|
+
{ id: "step-2-16k", maxOutput: 4096, contextWindowTokens: 16000 },
|
|
29
|
+
{ id: "step-2-16k-exp", maxOutput: 4096, contextWindowTokens: 16000, releasedAt: "2025-01-15" },
|
|
30
|
+
{ id: "step-1v-8k", maxOutput: 4096, contextWindowTokens: 8000 },
|
|
31
|
+
{ id: "step-1v-32k", maxOutput: 4096, contextWindowTokens: 32000 },
|
|
32
|
+
{ id: "step-1o-vision-32k", maxOutput: 4096, contextWindowTokens: 32000, releasedAt: "2025-01-22" },
|
|
33
|
+
{ id: "step-1o-turbo-vision", maxOutput: 4096, contextWindowTokens: 32000, releasedAt: "2025-02-14" },
|
|
34
|
+
],
|
|
35
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 腾讯云 TI-ONE / LKE
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://cloud.tencent.com/product/lkeap
|
|
5
|
+
* - 控制台 / API key:https://console.cloud.tencent.com/lkeap/api
|
|
6
|
+
* - API 文档:https://cloud.tencent.com/document/product/1772
|
|
7
|
+
*/
|
|
8
|
+
import type { InkosEndpoint } from "../types.js";
|
|
9
|
+
|
|
10
|
+
export const TENCENTCLOUD: InkosEndpoint = {
|
|
11
|
+
id: "tencentcloud",
|
|
12
|
+
label: "腾讯云 (lkeap)",
|
|
13
|
+
group: "china",
|
|
14
|
+
api: "openai-completions",
|
|
15
|
+
baseUrl: "https://api.lkeap.cloud.tencent.com/v1",
|
|
16
|
+
checkModel: "deepseek-v3",
|
|
17
|
+
temperatureRange: [0, 2],
|
|
18
|
+
defaultTemperature: 0.7,
|
|
19
|
+
writingTemperature: 1,
|
|
20
|
+
models: [
|
|
21
|
+
{ id: "deepseek-r1", maxOutput: 16000, contextWindowTokens: 65536, enabled: true },
|
|
22
|
+
{ id: "deepseek-v3-0324", maxOutput: 16000, contextWindowTokens: 65536, enabled: true },
|
|
23
|
+
{ id: "deepseek-v3", maxOutput: 16000, contextWindowTokens: 65536 },
|
|
24
|
+
],
|
|
25
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 火山方舟 (Volcengine Ark / Doubao)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://www.volcengine.com/product/ark
|
|
5
|
+
* - 控制台 / API key:https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey
|
|
6
|
+
* - API 文档:https://www.volcengine.com/docs/82379
|
|
7
|
+
*/
|
|
8
|
+
import type { InkosEndpoint } from "../types.js";
|
|
9
|
+
|
|
10
|
+
export const VOLCENGINE: InkosEndpoint = {
|
|
11
|
+
id: "volcengine",
|
|
12
|
+
label: "火山引擎 (豆包)",
|
|
13
|
+
group: "china",
|
|
14
|
+
api: "openai-completions",
|
|
15
|
+
baseUrl: "https://ark.cn-beijing.volces.com/api/v3",
|
|
16
|
+
checkModel: "doubao-seed-2.0-lite",
|
|
17
|
+
temperatureRange: [0, 2],
|
|
18
|
+
defaultTemperature: 0.7,
|
|
19
|
+
writingTemperature: 1,
|
|
20
|
+
models: [
|
|
21
|
+
{ id: "doubao-seed-2.0-pro", maxOutput: 32000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
22
|
+
{ id: "doubao-seed-2.0-lite", maxOutput: 32000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
23
|
+
{ id: "doubao-seed-2.0-mini", maxOutput: 32000, contextWindowTokens: 256000, releasedAt: "2026-02-15" },
|
|
24
|
+
{ id: "doubao-seed-2.0-code", maxOutput: 32000, contextWindowTokens: 256000, releasedAt: "2026-02-15" },
|
|
25
|
+
{ id: "doubao-seed-1.8", maxOutput: 64000, contextWindowTokens: 256000, releasedAt: "2025-12-18" },
|
|
26
|
+
{ id: "doubao-seed-code", maxOutput: 32000, contextWindowTokens: 256000 },
|
|
27
|
+
{ id: "glm-4-7", maxOutput: 16000, contextWindowTokens: 200000 },
|
|
28
|
+
{ id: "deepseek-v3.2", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
29
|
+
{ id: "deepseek-v3.1", maxOutput: 32768, contextWindowTokens: 131072 },
|
|
30
|
+
{ id: "kimi-k2-thinking", maxOutput: 32768, contextWindowTokens: 262144, temperature: 1 },
|
|
31
|
+
{ id: "kimi-k2", maxOutput: 32768, contextWindowTokens: 262144 },
|
|
32
|
+
{ id: "doubao-seed-1.6-vision", maxOutput: 32000, contextWindowTokens: 256000 },
|
|
33
|
+
{ id: "doubao-seed-1.6-thinking", maxOutput: 32000, contextWindowTokens: 256000 },
|
|
34
|
+
{ id: "doubao-seed-1.6", maxOutput: 32000, contextWindowTokens: 256000 },
|
|
35
|
+
{ id: "doubao-seed-1.6-lite", maxOutput: 32000, contextWindowTokens: 256000 },
|
|
36
|
+
{ id: "doubao-seed-1.6-flash", maxOutput: 32000, contextWindowTokens: 256000 },
|
|
37
|
+
{ id: "doubao-1.5-ui-tars", maxOutput: 16000, contextWindowTokens: 131072 },
|
|
38
|
+
{ id: "doubao-1.5-thinking-vision-pro", maxOutput: 16000, contextWindowTokens: 131072 },
|
|
39
|
+
{ id: "doubao-1.5-thinking-pro", maxOutput: 16000, contextWindowTokens: 131072 },
|
|
40
|
+
{ id: "doubao-1.5-thinking-pro-m", maxOutput: 16000, contextWindowTokens: 131072 },
|
|
41
|
+
{ id: "deepseek-r1", maxOutput: 16384, contextWindowTokens: 131072 },
|
|
42
|
+
{ id: "deepseek-v3", maxOutput: 16384, contextWindowTokens: 128000 },
|
|
43
|
+
{ id: "doubao-1.5-pro-32k", maxOutput: 16384, contextWindowTokens: 128000 },
|
|
44
|
+
{ id: "doubao-1.5-pro-256k", maxOutput: 12288, contextWindowTokens: 256000 },
|
|
45
|
+
{ id: "doubao-1.5-lite-32k", maxOutput: 12288, contextWindowTokens: 32768 },
|
|
46
|
+
{ id: "doubao-1.5-vision-pro-32k", maxOutput: 12288, contextWindowTokens: 32768, releasedAt: "2025-01-15" },
|
|
47
|
+
{ id: "doubao-1.5-vision-pro", maxOutput: 16384, contextWindowTokens: 128000, releasedAt: "2025-03-28" },
|
|
48
|
+
{ id: "doubao-1.5-vision-lite", maxOutput: 16384, contextWindowTokens: 128000, releasedAt: "2025-03-15" },
|
|
49
|
+
{ id: "doubao-lite-32k", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
50
|
+
{ id: "doubao-pro-32k", maxOutput: 4096, contextWindowTokens: 32768 },
|
|
51
|
+
],
|
|
52
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 火山方舟 Coding Plan (豆包编程订阅)
|
|
3
|
+
*
|
|
4
|
+
* - 官网:https://www.volcengine.com/product/ark
|
|
5
|
+
* - 订阅入口:https://www.volcengine.com/docs/82379/1925114
|
|
6
|
+
* - 快速开始:https://www.volcengine.com/docs/82379/1928261
|
|
7
|
+
* - 模型价格:https://www.volcengine.com/docs/82379/1544106
|
|
8
|
+
* - Anthropic 协议 baseUrl:https://ark.cn-beijing.volces.com/api/coding
|
|
9
|
+
*
|
|
10
|
+
* 火山方舟 Coding Plan 是火山引擎针对编程场景的订阅服务,订阅包内解锁多家
|
|
11
|
+
* 主力编程模型(豆包 / MiniMax / GLM / DeepSeek / Kimi),走 Anthropic
|
|
12
|
+
* 兼容协议,Claude Code / Cursor 等客户端可直连。
|
|
13
|
+
*
|
|
14
|
+
* 注:baseUrl 是 /api/coding(不是 /api/v3/anthropic)—— 后者是火山通用
|
|
15
|
+
* Anthropic 兼容接入,和 CodingPlan 订阅计量不通。
|
|
16
|
+
*/
|
|
17
|
+
import type { InkosEndpoint } from "../types.js";
|
|
18
|
+
|
|
19
|
+
export const VOLCENGINE_CODING_PLAN: InkosEndpoint = {
|
|
20
|
+
id: "volcengineCodingPlan",
|
|
21
|
+
label: "火山 Coding Plan",
|
|
22
|
+
group: "codingPlan",
|
|
23
|
+
api: "anthropic-messages",
|
|
24
|
+
baseUrl: "https://ark.cn-beijing.volces.com/api/coding",
|
|
25
|
+
checkModel: "doubao-seed-2.0-code",
|
|
26
|
+
temperatureRange: [0, 1],
|
|
27
|
+
defaultTemperature: 0.7,
|
|
28
|
+
writingTemperature: 1,
|
|
29
|
+
models: [
|
|
30
|
+
// --- Doubao-Seed-2.0 主力(2026-02-14 发布) ---
|
|
31
|
+
{ id: "doubao-seed-2.0-code", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
32
|
+
{ id: "doubao-seed-2.0-pro", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
33
|
+
{ id: "doubao-seed-2.0-lite", maxOutput: 128000, contextWindowTokens: 256000, enabled: true, releasedAt: "2026-02-15" },
|
|
34
|
+
// --- 老版 ---
|
|
35
|
+
{ id: "doubao-seed-code", maxOutput: 32000, contextWindowTokens: 256000, releasedAt: "2025-11-01" },
|
|
36
|
+
// --- 订阅包里的第三方模型 ---
|
|
37
|
+
{ id: "minimax-m2.5", maxOutput: 131072, contextWindowTokens: 204800, enabled: true },
|
|
38
|
+
{ id: "glm-4.7", maxOutput: 131072, contextWindowTokens: 200000, enabled: true },
|
|
39
|
+
{ id: "deepseek-v3.2", maxOutput: 65536, contextWindowTokens: 262144, enabled: true },
|
|
40
|
+
{ id: "kimi-k2.5", maxOutput: 32768, contextWindowTokens: 262144, enabled: true, temperature: 1 },
|
|
41
|
+
],
|
|
42
|
+
};
|