feat: complete Novita AI provider integration#2320
Draft
Alex-wuhu wants to merge 2 commits intoarc53:mainfrom
Draft
feat: complete Novita AI provider integration#2320Alex-wuhu wants to merge 2 commits intoarc53:mainfrom
Alex-wuhu wants to merge 2 commits intoarc53:mainfrom
Conversation
- Fix base URL to https://api.novita.ai/openai (was /v3/openai) - Add NOVITA_API_KEY dedicated setting - Add NOVITA_MODELS catalog (kimi-k2.5, glm-5, minimax-m2.5) - Add _add_novita_models() to ModelRegistry with key-based activation - Add novita to get_api_key_for_provider() key routing - Update setup.sh default model to moonshotai/kimi-k2.5
|
@Alex-wuhu is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
- Add NOVITA_API_KEY to field_validator for proper key normalization - Fix setup.ps1 Novita section to use correct variable name and model
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
Completes the Novita AI provider integration that was partially scaffolded in the codebase.
What was already there:
NovitaLLMclass,ModelProvider.NOVITAenum value, factory registration, and setup.sh menu entry.What this PR adds:
/v3/openai→/openai) to match the Novita OpenAI-compatible endpoint specNOVITA_API_KEYas a dedicated settings field (alongsideOPENAI_API_KEY,GROQ_API_KEY, etc.)NOVITA_MODELScatalog with three models:moonshotai/kimi-k2.5(default, 262k ctx, vision),zai-org/glm-5(202k ctx),minimax/minimax-m2.5(204k ctx) — all support function calling and structured output_add_novita_models()intoModelRegistry._load_models()so models appear in the frontend dropdown whenNOVITA_API_KEYorLLM_PROVIDER=novitais configurednovitatoget_api_key_for_provider()so credentials route correctly through all execution pathsdeepseek/deepseek-r1tomoonshotai/kimi-k2.5Usage
Set
NOVITA_API_KEY=<your-key>in.env(orAPI_KEY+LLM_PROVIDER=novita). Models will appear in the model selector automatically.The
setup.shinteractive wizard already lists Novita as option 7 and now sets the correct default model.