Repository navigation
feat: add Novita AI as LLM provider - #11
Merged
Merged
Conversation
Registers novita as an OpenAI-compatible provider: - Endpoint: https://api.novita.ai/openai - API key: NOVITA_API_KEY env var - Model prefix: novita/<model> (e.g. novita/moonshotai/kimi-k2.5) - Routes through chatOpenAICompatible (same as openai/openrouter) - Adds TestApplyLLMRouting_Novita routing test Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Alex-yang00
marked this pull request as ready for review
March 19, 2026 11:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
novitaas an OpenAI-compatible LLM provider (endpoint:https://api.novita.ai/openai)NOVITA_API_KEYenv var, following the same pattern as other providerschatOpenAICompatiblepath — no new protocol code needednovita/<model>works likeopenai/<model>oropenrouter/<model>moonshotai/kimi-k2.5; also supportsdeepseek/deepseek-v3.2,zai-org/glm-5,qwen/qwen3-embedding-0.6bChanges
config/config.go: addDefaultNovitaBaseURLconstant,novita/prefix inparseRoutedModel(), base URL + API key cases inApplyLLMRouting()llm/client.go: add"novita"to the OpenAI-compatible switch caseconfig/config_test.go: addTestApplyLLMRouting_NovitaTest plan
go test ./config/... ./llm/...passesnovita/moonshotai/kimi-k2.5routes tohttps://api.novita.ai/openaiand picks upNOVITA_API_KEY🤖 Generated with Claude Code