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:
Prince
2026-11-08 02:27:35 +00:00
committed by GitHub
co-authored by Alexandre Teixeira
parent ae03bb8363
commit 37454f9d34
5 changed files with 34 additions and 0 deletions
+11
View File
@@ -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