Add Novita LLM and Embedding Provider#4280
Open
Alex-wuhu wants to merge 2 commits intomem0ai:mainfrom
Open
Conversation
- Add NovitaLLM and NovitaEmbedding classes - Add NovitaConfig and NovitaEmbeddingConfig classes - Register 'novita' provider in LlmFactory and EmbedderFactory
|
|
be6e59c to
4a8f7ff
Compare
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
novitaprovider support for both LLM and Embedding.https://api.novita.ai/openai.NOVITA_API_KEYauthentication.Key Fixes (follow-up)
deepseek/deepseek-v3.2(Novita rule).response_formatpass-through inNovitaLLM.generate_response.response_callbacksupport in Novita LLM config/runtime (parity with OpenAI provider).NOVITA_API_URLNOVITA_API_BASEfor compatibility with deprecation warning.http_client_proxiestyping in Novita configs.qwen/qwen3-embedding-0.6bwith default dimensions1024.Files Changed
mem0/llms/novita.pymem0/embeddings/novita.pymem0/configs/llms/novita.pymem0/configs/embeddings/novita.pytests/llms/test_novita.pytests/embeddings/test_novita_embeddings.pyVerification
uv run --with pytest python -m pytest -q tests/llms/test_novita.py tests/embeddings/test_novita_embeddings.py