feat(llm): add Novita as an OpenAI-compatible text provider - #34
Open
jax-novita wants to merge 1 commit into
Open
feat(llm): add Novita as an OpenAI-compatible text provider#34jax-novita wants to merge 1 commit into
jax-novita wants to merge 1 commit into
Conversation
Registers Novita alongside the existing OpenAI/volcengine/aliyun_bailian providers so users can pick it from the model management flow. Novita exposes an OpenAI-compatible chat completions endpoint, so it plugs into the existing provider registry without any new integration code.
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 as a new LLM provider option, following the same pattern as the existing
aliyun_bailianOpenAI-compatible provider.Changes
novitaProviderSpecinbackend/app/services/llm/provider_bootstrap.py(aliasesnovita,novita_ai,novita-ai; text category; default base URLhttps://api.novita.ai/openai/v1).novitato the capability matrix assertion inbackend/tests/test_llm_api_responses.py.backend/tests/test_novita_provider.pycovering registration, alias resolution, category scoping, and default base URL resolution.Verification
uv run --directory backend pytest tests/test_novita_provider.py tests/test_llm_api_responses.py tests/test_llm_manage.py tests/test_llm_resolver.py— 38 passed.uv run --directory backend pylint app/services/llm/provider_bootstrap.py— 10.00/10.Provider→provider_resolver→langchain_openai.ChatOpenAI) against the live Novita API; got a real completion back with the expected model name and stop reason.