Expand description
[model] in speccoder.toml.
Structs§
- Model
Config - The model speccoder calls.
- Prices
- USD per million tokens.
Enums§
- Cache
Ttl - Prompt-cache lifetime for breakpoints: agentplane’s, read as
5mor1h(one hour survives a run paused for an approval). How long a provider keeps a cached prompt prefix. - Prompt
Style - Provider prompt dialects (same content, same stability order).
Functions§
- open_
driver - The model driver for
model, and the secret to redact from messages. Keys come only from the environment; a localopenai-compatibleserver needs none unlessapi_key_envnames one. - parse
- Reads
[model]from the configuration text;Nonewhen absent. - refused
- Why the model could not be opened, as a result: a missing key is
KEY-MISSINGwith the exactexport(and the other ways to get a model), anything elseCONFIG-INVALID. Every command that calls a model says it the same way. - strip_
cache_ control - Removes
cache_controlbreakpoints from a prompt (forPromptStyle::Chat).