Skip to content

feat: add Novita AI as optional LLM provider#33

Open
Alex-wuhu wants to merge 1 commit intoshareAI-lab:mainfrom
Alex-wuhu:novita-integration
Open

feat: add Novita AI as optional LLM provider#33
Alex-wuhu wants to merge 1 commit intoshareAI-lab:mainfrom
Alex-wuhu:novita-integration

Conversation

@Alex-wuhu
Copy link

What this PR does

Adds Novita AI as an optional, drop-in replacement for Anthropic.

Usage: Set NOVITA_API_KEY in your environment — the existing ANTHROPIC_API_KEY path is preserved and unchanged.

Novita provides an OpenAI-compatible API endpoint (https://api.novita.ai/openai) with cost-effective access to leading models including Claude, DeepSeek, Llama, and more.

Changes

  • Provider initialization reads NOVITA_API_KEY env var; falls back to existing Anthropic config if not set
  • Updated agents/s01_agent_loop.py to support both Anthropic and OpenAI-compatible APIs
  • Added Novita configuration to .env.example
  • Added openai to requirements.txt

Testing

Set NOVITA_API_KEY=<your-key> and run the existing test suite — behavior should be identical to using Anthropic.

Adds Novita AI (https://novita.ai) as a drop-in OpenAI-compatible provider.
Set NOVITA_API_KEY to use Novita instead of Anthropic — no other code changes needed.

Novita offers competitive pricing with full OpenAI API compatibility.
- Added NOVITA_API_KEY env var check in s01_agent_loop.py
- Updated .env.example with Novita configuration
- Added openai to requirements.txt
@vercel
Copy link

vercel bot commented Feb 26, 2026

@Alex-wuhu is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant