feat(models): bidirectional [1m] long-context variant model #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "guochao/agent-run:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reuse Anthropic's
[1m]long-context suffix as a model-list annotationthat works across both protocol families.
"name[1m]"decodes to base idname+context_window 1000000. Any model (string or object form) with
context_window >= 1000000 exposes two selectable variants: plain
nameand longname[1m]. Object-form ids are taken verbatim (aliteral trailing
[1m]is a plain name, never decoded).LaunchModelcarries per-protocol wire names resolved once atlaunch: Anthropic gets the variant label (marker kept), OpenAI gets
the base id (marker stripped) plus a forced
model_context_windowfor the long variant only.
default_model/--modelaccept either variant label; shellcompletion and describe-help expand variants;
models listkeepsbase rows and prints a hint about available
[1m]variants.--force modelsynthesizes a plain LaunchModel from the literalname instead of panicking; an empty model list with
--modelnowreturns a guided error. Duplicate selectable labels (variant
collision across entries) emit a warning.
sanitize_chat_completions_model/wire_model_idstripping; the variant model supersedes it.
config.demo.yaml.