feat: add Novita AI as LLM provider#957
Open
Alex-wuhu wants to merge 1 commit intocrestalnetwork:mainfrom
Open
feat: add Novita AI as LLM provider#957Alex-wuhu wants to merge 1 commit intocrestalnetwork:mainfrom
Alex-wuhu wants to merge 1 commit intocrestalnetwork:mainfrom
Conversation
- Add LLMProvider.NOVITA enum value - Add NovitaLLM class using langchain_openai ChatOpenAI with https://api.novita.ai/openai - Register NOVITA_API_KEY in Config - Add 3 models to llm.csv: moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.5 - Add kimi-k2.5 to pick_default_model() priority list - Update .env.example with NOVITA_API_KEY - Update test mocks to include novita_api_key = None
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.
Summary
Adds Novita AI as a first-class LLM provider alongside OpenAI, Google, DeepSeek, xAI, OpenRouter, MiniMax, and Ollama.
Changes:
intentkit/models/llm.py— newLLMProvider.NOVITAenum value,NovitaLLMclass (OpenAI-compatible endpoint athttps://api.novita.ai/openai), wired intocreate_llm_model()factoryintentkit/models/llm.csv— 3 models:moonshotai/kimi-k2.5,zai-org/glm-5,minimax/minimax-m2.5intentkit/config/config.py—NOVITA_API_KEYenv varintentkit/models/llm_picker.py—moonshotai/kimi-k2.5added topick_default_model()priority list.env.example—NOVITA_API_KEY=tests/core/test_llm.py—novita_api_key = Noneadded to all config mocksSetup
Models become available immediately once the key is set. All three models support function calling and structured output.