mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-08 22:22:20 +01:00
fix: recognize Conifer as a known provider endpoint (#6429)
* fix: recognize Conifer as a known provider endpoint Recognize Conifer (api.conifer.build) in providers.js endpoint labels and map conifer.build to the openrouter curation sentinel in routes/model_routes.py so server-returned models are displayed as curated while preserving OpenAI wire compatibility. Fixes #6205 * test(providers): remove trailing blank line --------- Co-authored-by: Alexandre Teixeira <general@alexandreteixeira.dev>
This commit is contained in:
co-authored by
Alexandre Teixeira
parent
ae03bb8363
commit
37454f9d34
@@ -52,3 +52,14 @@ def _provider_label(url: str) -> str | None:
|
||||
])
|
||||
def test_provider_label_neutral_for_loopback(url, expected):
|
||||
assert _provider_label(url) == expected
|
||||
|
||||
|
||||
@pytest.mark.skipif(not _HAS_NODE, reason="node binary not on PATH")
|
||||
@pytest.mark.parametrize("url,expected", [
|
||||
("https://api.conifer.build/v1", "Conifer"),
|
||||
("https://conifer.build/v1", "Conifer"),
|
||||
("https://API.CONIFER.BUILD/v1", "Conifer"),
|
||||
("https://conifer.build.attacker.example/v1", "conifer.build.attacker.example"),
|
||||
])
|
||||
def test_provider_label_conifer(url, expected):
|
||||
assert _provider_label(url) == expected
|
||||
|
||||
Reference in New Issue
Block a user