feat(llm-drivers): add Novita AI as OpenAI-compatible provider#3076
Merged
Conversation
Register novita with NOVITA_API_KEY at https://api.novita.ai/openai/v1 in PROVIDER_REGISTRY (alias: novita-ai). Updates known_providers count and the unknown-provider error hint. Adds two registry-lookup tests. Ported from openfang 365bec8 + 4714efb, adapted to librefang's PROVIDER_REGISTRY architecture so detect_available_provider picks it up without a separate PROBE_ORDER entry.
This was referenced Apr 25, 2026
Merged
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
PROVIDER_REGISTRY(librefang-llm-drivers) athttps://api.novita.ai/openai/v1, envNOVITA_API_KEY, aliasnovita-ai. Uses the OpenAI API format.known_providers()count (39 → 40), unknown-provider error hint, and.env.example.Auto-detection is automatic via the existing registry-driven
detect_available_provider()(Phase 2 falls through to the fullPROVIDER_REGISTRY) — no separatePRIORITYentry is needed.Ported from openfang
365bec8and4714efb, adapted to LibreFang's registry architecture (which is cleaner than the upstreammatcharms).Companion registry PR (model catalog so Novita's models surface in the dashboard picker without
/api/models/custom): librefang/librefang-registry#72Test plan
cargo check -p librefang-llm-drivers --tests— greencargo test -p librefang-llm-drivers --lib drivers::tests— 30 passed (incl.test_provider_defaults_novita,test_provider_defaults_novita_ai_alias)cargo clippy -p librefang-llm-drivers --all-targets -- -D warnings— cleanNOVITA_API_KEY+provider = "novita"and send a chat through/api/agents/{id}/message