Skip to content

feat: Add Novita provider integration#1455

Open
Alex-wuhu wants to merge 3 commits intokyegomez:masterfrom
Alex-wuhu:novita-integration
Open

feat: Add Novita provider integration#1455
Alex-wuhu wants to merge 3 commits intokyegomez:masterfrom
Alex-wuhu:novita-integration

Conversation

@Alex-wuhu
Copy link
Copy Markdown

@Alex-wuhu Alex-wuhu commented Mar 16, 2026

Summary

Add Novita AI as a new provider to Swarms, following the existing provider pattern.

Changes

CLI Utils (swarms/cli/utils.py)

  • Added NOVITA_API_KEY environment variable detection in _detect_active_provider()
  • Added NOVITA_API_KEY to check_api_keys() validation

Model Router (swarms/structs/model_router.py)

  • Added three Novita AI model recommendations:
    • moonshotai/kimi-k2.5: Kimi K2.5 for complex reasoning and code generation
    • zai-org/glm-5: GLM-5 for multimodal reasoning and general tasks
    • minimax/minimax-m2.5: MiniMax M2.5 for video and multimodal tasks
  • Added novita to providers dictionary

Usage

Set the API key:

export NOVITA_API_KEY="your-novita-api-key"

Use with Agent via OpenAI-compatible endpoint:

import os
from swarms import Agent

agent = Agent(
    agent_name="Novita-Agent",
    model_name="moonshotai/kimi-k2.5",
    llm_base_url="https://api.novita.ai/openai",
    llm_api_key=os.getenv("NOVITA_API_KEY"),
    max_loops=1,
)

result = agent.run("Your task here")

Notes

  • Endpoint: https://api.novita.ai/openai (OpenAI-compatible)
  • API key follows existing provider pattern via NOVITA_API_KEY env var
  • No existing code modified — only additions to CLI utils and model router
  • Minimal diff, no unrelated refactoring

- Add NOVITA_API_KEY environment variable to CLI utils
- Add Novita model recommendations: deepseek/deepseek-v3.2, zai-org/glm-5, minimax/minimax-m2.5
- Add 'novita' to providers dictionary
@github-actions
Copy link
Copy Markdown

Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap.

Alex-wuhu and others added 2 commits March 16, 2026 23:52
- Replace deepseek/deepseek-v3.2 with moonshotai/kimi-k2.5 (default)
- Keep zai-org/glm-5 and minimax/minimax-m2.5
- Update descriptions to clarify Novita AI provenance

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Alex-wuhu Alex-wuhu marked this pull request as ready for review March 18, 2026 13:16
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