JVNAUTOSCI-2518 Add opt-in OpenRouter provider - #471
Merged
Conversation
| } | ||
|
|
||
|
|
||
| class OpenRouterClient(OpenAIClient): |
| def test_openrouter_settings_catalogue_uses_fixed_key_source( | ||
| monkeypatch: pytest.MonkeyPatch, | ||
| ) -> None: | ||
| import src.backend.server.routes.settings_routes as settings_routes |
| def test_openrouter_settings_probe_requires_exact_eligibility_and_reports_profile( | ||
| monkeypatch: pytest.MonkeyPatch, | ||
| ) -> None: | ||
| import src.backend.server.routes.settings_routes as settings_routes |
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.
User outcome
Von gains OpenRouter as an explicit opt-in inference source, broadening the model portfolio while retaining exact actor-scoped provider/model eligibility, visible provider identity, and fail-closed selection.
Material changes
OPENROUTER_API_KEYorOPENROUTER_API_KEY_FILE; key values are not persisted or returned.provider=openrouteridentity.zdr: true,data_collection: "deny",require_parameters: true, and router-metadata requests at the provider boundary. This prevents an in-scope direct or structured caller from weakening the declared privacy/compatibility profile; the restriction is limited to OpenRouter requests.Jira: https://naoinstitute.atlassian.net/browse/JVNAUTOSCI-2518
Evidence
pdm run pytest -qacross the OpenRouter, key resolution, Settings probe, structured transport/client, registry, parameter, eligibility, generate-resolution, and OpenStack-template suites: 239 passed.npm test -- --runInBand tests/frontend: 87 suites / 469 tests passed.provider=openrouterand the exact model slug without issuing a model request.git diff --checkand secret-pattern inspection passed.llm_interface.pyretains one pre-existing Gemini SDK typing mismatch.Ship boundary