Kizuki
    Preparing search index...

    Function makeAsk

    • Makes an Ask function for the configured answer model. With replyShape: "prompt" the shape goes into the instructions and Kizuki reads and checks the reply itself.

      Parameters

      • chat: {
            apiKeyEnv?: string;
            baseURL: string;
            model: string;
            reasoning: "none" | "default";
            replyShape: "server" | "prompt";
        }
        • OptionalapiKeyEnv?: string

          The name of the environment variable that holds the API key. The key itself is never saved.

        • baseURL: string
        • model: string
        • reasoning: "none" | "default"

          none turns thinking off, which is faster on small local models. default leaves it to the model.

        • replyShape: "server" | "prompt"

          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).

      • env: Env = process.env

      Returns Ask