kimi

package
v6.8.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package kimi implements thinking configuration for Kimi (Moonshot AI) models.

Kimi models use the OpenAI-compatible reasoning_effort format with discrete levels (low/medium/high). The provider strips any existing thinking config and applies the unified ThinkingConfig in OpenAI format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct{}

Applier implements thinking.ProviderApplier for Kimi models.

Kimi-specific behavior:

  • Output format: reasoning_effort (string: low/medium/high)
  • Uses OpenAI-compatible format
  • Supports budget-to-level conversion

func NewApplier

func NewApplier() *Applier

NewApplier creates a new Kimi thinking applier.

func (*Applier) Apply

func (a *Applier) Apply(body []byte, config thinking.ThinkingConfig, modelInfo *registry.ModelInfo) ([]byte, error)

Apply applies thinking configuration to Kimi request body.

Expected output format:

{
  "reasoning_effort": "high"
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL