Skip to content

feat: complete Novita AI provider integration#2320

Draft
Alex-wuhu wants to merge 2 commits intoarc53:mainfrom
Alex-wuhu:novita-integration
Draft

feat: complete Novita AI provider integration#2320
Alex-wuhu wants to merge 2 commits intoarc53:mainfrom
Alex-wuhu:novita-integration

Conversation

@Alex-wuhu
Copy link

Summary

Completes the Novita AI provider integration that was partially scaffolded in the codebase.

What was already there: NovitaLLM class, ModelProvider.NOVITA enum value, factory registration, and setup.sh menu entry.

What this PR adds:

  • Corrects the base URL (/v3/openai/openai) to match the Novita OpenAI-compatible endpoint spec
  • Adds NOVITA_API_KEY as a dedicated settings field (alongside OPENAI_API_KEY, GROQ_API_KEY, etc.)
  • Adds NOVITA_MODELS catalog 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
  • Wires _add_novita_models() into ModelRegistry._load_models() so models appear in the frontend dropdown when NOVITA_API_KEY or LLM_PROVIDER=novita is configured
  • Adds novita to get_api_key_for_provider() so credentials route correctly through all execution paths
  • Updates setup.sh default model from the removed deepseek/deepseek-r1 to moonshotai/kimi-k2.5

Usage

Set NOVITA_API_KEY=<your-key> in .env (or API_KEY + LLM_PROVIDER=novita). Models will appear in the model selector automatically.

The setup.sh interactive wizard already lists Novita as option 7 and now sets the correct default model.

- 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
@vercel
Copy link

vercel bot commented Mar 22, 2026

@Alex-wuhu is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added repo application Application labels Mar 22, 2026
- Add NOVITA_API_KEY to field_validator for proper key normalization
- Fix setup.ps1 Novita section to use correct variable name and model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant