Skip to content

feat: add Novita AI as LLM provider#630

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

feat: add Novita AI as LLM provider#630
Alex-wuhu wants to merge 1 commit intoOpenPipe:mainfrom
Alex-wuhu:novita-integration

Conversation

@Alex-wuhu
Copy link

Summary

Add Novita AI as a new LLM provider. Novita offers an OpenAI-compatible API with competitive pricing and a wide selection of open-source models.

Changes

  • New Novita provider following existing provider patterns
  • API key configuration via NOVITA_API_KEY environment variable
  • Support for chat, completion, and embedding models

Configuration

NOVITA_API_KEY=your_key_here

Endpoint: https://api.novita.ai/openai

- Add NOVITA_PROVIDER constant
- Add Novita models to MODEL_TOKEN_PRICING with pricing:
  - moonshotai/kimi-k2.5: /bin/bash.6/M input, /M output, /bin/bash.1/M cache
  - zai-org/glm-5: /M input, .2/M output, /bin/bash.2/M cache
  - minimax/minimax-m2.5: /bin/bash.3/M input, .2/M output, /bin/bash.03/M cache
- Update _estimate_provider_cost to handle Novita (OpenAI-compatible)
- Update provider validation in extract_api_cost
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