2 Commits

  • feat: add Kimi authentication support and streamline device ID handling
    - Introduced `RequestKimiToken` API for Kimi authentication flow.
    - Integrated device ID management throughout Kimi-related components.
    - Enhanced header management for Kimi API requests with device ID context.
  • Add Kimi (Moonshot AI) provider support
    - OAuth2 device authorization grant flow (RFC 8628) for authentication
    - Streaming and non-streaming chat completions via OpenAI-compatible API
    - Models: kimi-k2, kimi-k2-thinking, kimi-k2.5
    - CLI `--kimi-login` command for device flow auth
    - Token management with automatic refresh
    - Thinking/reasoning effort support for thinking-enabled models
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>