Expand description
Optional: let a model phrase the reply.
Off unless serve --llm is asked for and a key is in the environment.
The board itself never goes near the model — ids, counts and state
transitions are computed in crate::agent and the model is handed the
finished sentence to rewrite. That is deliberate: a dogfood app whose
assertions depend on a model is a dogfood app that cannot be tested.
Same wire format and the same environment variables as e2e/src/llm.rs, and
the same point: an OpenAI-compatible /chat/completions endpoint reached
with reqwest and two serde structs. There is no LLM crate here either.
Structs§
- Missing
ApiKey Voice::from_envfound no API key, and the endpoint needs one.- Voice
- A model that rephrases the agent’s replies.
Constants§
- API_
KEY_ ENV - The environment variable holding the API key.
- BASE_
URL_ ENV - The environment variable holding the base URL.
- DEFAULT_
BASE_ URL - Where requests go unless
BASE_URL_ENVsays otherwise. - DEFAULT_
MODEL - The model this talks to by default. Pinned, never a
*-latestalias. - FALLBACK_
API_ KEY_ ENV - Read when
API_KEY_ENVis unset — the default endpoint is Gemini’s. - MODEL_
ENV - The environment variable holding the model id.
- QWEN_
API_ KEY_ ENV - The key that goes with
QWEN_BASE_URL_ENV. - QWEN_
BASE_ URL_ ENV - Qwen Cloud’s OpenAI-compatible mode, read when
BASE_URL_ENVis unset: the base URL, its key, and its model, in that order. - QWEN_
DEFAULT_ MODEL - The Qwen model used when
QWEN_MODEL_ENVis unset. Pinned, like the default. - QWEN_
MODEL_ ENV - The model that goes with
QWEN_BASE_URL_ENV, whenMODEL_ENVis unset.