OptionalapiKeyEnv?: stringThe name of the environment variable that holds the API key. The key itself is never saved.
How Kizuki talks to a model server. openai-compatible: any server that speaks the OpenAI
format, such as Ollama and MLX. gateway: Vercel AI Gateway, through the AI SDK's own
gateway provider.
none turns thinking off, which is faster on small local models. default leaves it to the model.
How replies are kept in the right shape. server: the server enforces it (Ollama,
OpenAI). prompt: Kizuki describes the shape in the prompt and checks the reply itself,
for servers that ignore it (MLX).
Adjusts each request for the server. With thinking off it also sends the switch Qwen models read through their chat template (
enable_thinking: false), which MLX needs and Ollama ignores. When Kizuki checks reply shapes itself, the shape the server would ignore is left out.