feat(ambient): sync model catalog from API - #2692
Conversation
cb136a4 to
7b681da
Compare
|
Hi @rekram1-node, would love to get this reviewed 🙏 |
|
AUTOMATED REVIEW: Blocking merge: generated reasoning models lack explicit provider options, transient API omissions can delete local files, and the sync ignores source |
2b091b8 to
45c47b2
Compare
|
Thank you for the review @rekram1-node, this is ready for a final look 🙏 |
Add an Ambient sync provider that maps the OpenRouter-shaped catalog through the shared builder. Skip catalog entries with is_ready=false so only served models are generated, and set deleteMissing=false with skipped/missing notices so a transient catalog omission retains local files instead of deleting them. Emit reasoning_options = [] for reasoning models, since Ambient exposes no reasoning control, rather than silently inheriting the base model's options.
45c47b2 to
18e87cf
Compare
|
@rekram1-node just following up here, thank you 🙏 |
Action items
|
Ambient now syncs from
/v1/modelsin the hourly workflow instead of a hand-maintained allowlist. Replaces theambient:generatescript with aSyncProviderand picks up the full model list (15 models).Ambient's API reports an
openrouter.slug, per-token pricing, andsupported_features, so each model is adapted to the OpenRouter shape and run throughbuildOpenRouterModel(same ascloudflare-workers-ai). Models with a canonical definition inherit it viabase_modeland override only cost, limit, and modalities; the two gpt-oss models have no canonical entry and are emitted in full.Models
zai-org/GLM-5.1-FP8zhipuai/glm-5.1ambient/largezhipuai/glm-5.1z-ai/glm-4.5-airzhipuai/glm-4.5-airmoonshotai/kimi-k2.6moonshotai/kimi-k2.6moonshotai/kimi-k2.7-codemoonshotai/kimi-k2.7-codegoogle/gemma-4-26b-a4b-itgoogle/gemma-4-26b-a4b-itgoogle/gemma-4-31b-itgoogle/gemma-4-31b-itnvidia/nemotron-3-nano-30b-a3bnvidia/nemotron-3-nano-30b-a3bqwen/qwen3-coder-30b-a3b-instructalibaba/qwen3-coder-30b-a3b-instructqwen/qwen3-next-80b-a3b-instructalibaba/qwen3-next-80b-a3b-instructqwen/qwen3.5-35b-a3balibaba/qwen3.5-35b-a3bqwen/qwen3.6-27balibaba/qwen3.6-27bqwen/qwen3.6-35b-a3balibaba/qwen3.6-35b-a3bopenai/gpt-oss-120bopenai/gpt-oss-20b