Skip to content

Conversation

@zachmayer
Copy link
Contributor

Extracted from #2211 for easier review.

This PR adds a new MoonshotAI provider for Kimi models:

  • Add MoonshotAIProvider with OpenAI-compatible API
  • Implements OpenAI-style interface with custom base URL (api.moonshot.ai)
  • Supports tool definitions but disables strict tool validation (as per MoonshotAI docs)
  • Add moonshotai:kimi-k2-0711-preview as known model
  • Configure to use OpenAIModel for compatibility
  • Add comprehensive tests for provider functionality
  • Update CLI and model name tests
  • Uses MOONSHOT_API_KEY environment variable

The provider follows the same pattern as other OpenAI-compatible providers like DeepSeek and Grok.

- Add MoonshotAIProvider with OpenAI-compatible API
- Implements OpenAI-style interface with custom base URL
- Supports tool definitions but not strict tool validation
- Add moonshotai:kimi-k2-0711-preview as known model
- Configure to use OpenAIModel for compatibility
- Add comprehensive tests for provider functionality
- Update CLI and model name tests
@zachmayer zachmayer closed this Jul 17, 2025
@zachmayer zachmayer deleted the feat/moonshotai-provider branch July 17, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant