feat: add Novita AI as LLM provider#1369
Closed
Alex-wuhu wants to merge 1 commit intomicrosoft:mainfrom
Closed
Conversation
Add Novita AI (OpenAI-compatible) as an alternative LLM provider: - Register qwen3-embedding-0.6b token limit in EMBEDDING_MODEL_LIMITS - Add NOVITA_API_KEY detection to health_check env_check() - Add Novita AI configuration example to .env.example - Add Novita AI setup section to installation_and_configuration.rst Users can configure Novita by setting NOVITA_API_KEY and OPENAI_API_BASE=https://api.novita.ai/openai alongside a CHAT_MODEL with the openai/ prefix (e.g. openai/moonshotai/kimi-k2.5).
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
qwen3-embedding-0.6btoken limit (8192) inEMBEDDING_MODEL_LIMITSNOVITA_API_KEYdetection tohealth_check.pyenv validation.env.exampledocs/installation_and_configuration.rstConfiguration
Users can configure Novita AI by adding to their
.env:Novita AI uses the OpenAI-compatible endpoint, so it routes through LiteLLM's existing
openaiprovider path with no new dependencies.Test plan
NOVITA_API_KEYand runrdagent health_check— env_check should pick up the key and test chat/embedding connectivityopenai/moonshotai/kimi-k2.5model resolves correctly via LiteLLM withOPENAI_API_BASE=https://api.novita.ai/openailitellm_proxy/qwen/qwen3-embedding-0.6bembedding call succeeds with Novita base URL📚 Documentation preview 📚: https://RDAgent--1369.org.readthedocs.build/en/1369/