Commit Graph
3 Commits
Author SHA1 Message Date
Aiden Cline 23ab17b850 feat(v2): migrate Command Code provider files to schema 2 (#10790)
* feat(v2): migrate Command Code provider files to schema 2 (mechanical)

bun packages/core/script/migrate-v2.ts provider commandcode

* feat(commandcode): DeepSeek peak multiplier, retire ling-3.1-flash:free

DeepSeek V4/V4.1 files price peak hours (01-04, 06-10 UTC Mon-Fri) at 2x via cost.multipliers, as the pricing page documents. The free Ling 3.1 Flash tier is gone from the catalog and pricing page, so the :free file is deprecated. The provider header notes the Provider plan fee.

* feat(commandcode): Anthropic mid-conversation flags on Claude files

Claude files served via @ai-sdk/anthropic copy system_updates, effort_updates and tools.updates from the same model's providers/anthropic file, as GitHub Copilot does. v2-only; v1 unchanged.
2026-10-21 10:33:51 -05:00
Aiden Cline 262d2c4179 feat(v2): migrate Z.AI (Zhipu) lab and provider files to schema 2 (#10546)
* feat(v2): migrate Z.AI (Zhipu) lab and provider files to schema 2

Mechanical migration via migrate-v2.ts. structured_output moves off five
zhipuai lab files; the v1 host files that inherited it now set it
themselves. Lab files set top_p (documented) and top_k (true for
open-weights models, false for API-only ones).

* feat(zhipuai): backfill v2 capabilities, CN pricing, and missing Z.AI models

- Provider files base_model the zhipuai labs and hold only overrides.
- Reasoning defaults, implicit cache, top_k = false, system_updates and
  tools.updates / effort_updates from the docs and live probes.
- zhipuai prices converted from the bigmodel.cn CNY list with >=32K tiers.
- GLM-5.2 gets the thinking.type toggle next to its effort levels.
- Coding Plan entries now routed to GLM-5.3 / GLM-5.3-Flash are deprecated.
- glm-image type and launch date; glm-5v-turbo MIME inputs.
- New v2-only models: glm-4.5-x, glm-4.5-airx, glm-4.6v-flashx, glm-5-turbo
  (zhipuai), glm-image, glm-asr-2512, cogvideox-3.

* fix(zhipuai): exact MIME modalities for GLM vision, video and image models

Labs list the formats the Z.AI / Zhipu Chat API documents (jpg/png images,
mp4/mkv/mov video, PDF files on GLM-5.3-Flash); provider files no longer
repeat them. CogVideoX-3 outputs video/mp4. GLM-Image stays generic (no
documented format; live URLs are labeled PNG but carry JPEG) and its
first-party entries take text input only.
2026-10-19 21:32:55 -05:00
RAMA 060ca3bfa8 feat(commandcode): add CommandCode provider (71 models) (#9835)
* feat(commandcode): add provider

* fix(commandcode): match gateway reasoning

* fix(commandcode): resolve control review
2026-10-16 11:54:13 -05:00