Skip to content

feat(llm): add Novita as an OpenAI-compatible text provider - #34

Open
jax-novita wants to merge 1 commit into
Forget-C:mainfrom
jax-novita:add-novita-provider
Open

feat(llm): add Novita as an OpenAI-compatible text provider#34
jax-novita wants to merge 1 commit into
Forget-C:mainfrom
jax-novita:add-novita-provider

Conversation

@jax-novita

Copy link
Copy Markdown

Summary

Adds Novita as a new LLM provider option, following the same pattern as the existing aliyun_bailian OpenAI-compatible provider.

Changes

  • Register a novita ProviderSpec in backend/app/services/llm/provider_bootstrap.py (aliases novita, novita_ai, novita-ai; text category; default base URL https://api.novita.ai/openai/v1).
  • Add novita to the capability matrix assertion in backend/tests/test_llm_api_responses.py.
  • Add backend/tests/test_novita_provider.py covering 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.
  • Manually exercised the provider through the repository's own runtime path (Providerprovider_resolverlangchain_openai.ChatOpenAI) against the live Novita API; got a real completion back with the expected model name and stop reason.

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.
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