feat: add Novita AI as optional LLM provider#1020
Closed
Alex-wuhu wants to merge 1 commit intoItzCrazyKns:masterfrom
Closed
feat: add Novita AI as optional LLM provider#1020Alex-wuhu wants to merge 1 commit intoItzCrazyKns:masterfrom
Alex-wuhu wants to merge 1 commit intoItzCrazyKns:masterfrom
Conversation
Adds Novita AI (https://novita.ai) as a drop-in OpenAI-compatible provider. Set NOVITA_API_KEY to use Novita instead of OpenAI — no other code changes needed. Novita offers competitive pricing with full OpenAI API compatibility.
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.
What this PR does
Adds Novita AI as an optional, drop-in replacement for existing OpenAI-compatible providers.
Usage: Set
NOVITA_API_KEYin your environment — the existing configuration is preserved and unchanged.Novita provides an OpenAI-compatible API endpoint (
https://api.novita.ai/openai) with cost-effective access to leading models including DeepSeek, Llama, and more.Changes
src/lib/models/providers/novita/directory.NovitaProvider,NovitaLLM, andNovitaEmbeddingusing the OpenAI-compatible pattern.NovitaProviderinsrc/lib/models/providers/index.ts.README.mdto include Novita AI in the list of supported providers.Integration analysis
src/lib/models/providers/groq/NovitaEmbeddingextendingOpenAIEmbedding.Testing
Set
NOVITA_API_KEY=<your-key>and you should be able to select Novita AI as a provider in the setup screen and use its models for both chat and embeddings.Summary by cubic
Adds Novita AI as an optional, OpenAI-compatible provider for chat and embeddings. Enables using Novita models by setting NOVITA_API_KEY, with no other config changes.
New Features
Migration
Written for commit 826e363. Summary will update on new commits.