Skip to content

feat: add Novita AI as LLM provider - #11

Merged
mosaxiv merged 1 commit into
mosaxiv:mainfrom
Alex-yang00:novita-integration
Mar 24, 2026
Merged

mosaxiv merged 1 commit into
mosaxiv:mainfrom
Alex-yang00:novita-integration

Conversation

@Alex-yang00

Copy link
Copy Markdown
Contributor

Summary

  • Adds novita as an OpenAI-compatible LLM provider (endpoint: https://api.novita.ai/openai)
  • API key resolved from NOVITA_API_KEY env var, following the same pattern as other providers
  • Routes through the existing chatOpenAICompatible path — no new protocol code needed
  • Model prefix novita/<model> works like openai/<model> or openrouter/<model>
  • Default model: moonshotai/kimi-k2.5; also supports deepseek/deepseek-v3.2, zai-org/glm-5, qwen/qwen3-embedding-0.6b

Changes

  • config/config.go: add DefaultNovitaBaseURL constant, novita/ prefix in parseRoutedModel(), base URL + API key cases in ApplyLLMRouting()
  • llm/client.go: add "novita" to the OpenAI-compatible switch case
  • config/config_test.go: add TestApplyLLMRouting_Novita

Test plan

  • go test ./config/... ./llm/... passes
  • Config with novita/moonshotai/kimi-k2.5 routes to https://api.novita.ai/openai and picks up NOVITA_API_KEY

🤖 Generated with Claude Code

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
Alex-yang00 marked this pull request as ready for review March 19, 2026 11:30
@mosaxiv
mosaxiv merged commit c6ea754 into mosaxiv:main Mar 24, 2026
1 check passed
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.

2 participants