Send per-app provider attribution titles from one gateway app registry
Add openai_gateway/apps.py as the single list of internal gateway apps and send X-OpenRouter-Title (plus legacy X-Title and HTTP-Referer) per app to every upstream. Label the Devii agent, bots, modifier, quiz grading, SEO metadata, community and sync callers. Shorten two app references that exceeded the 30 character limit and were recorded as default. Also includes the pending Muse Code, route health and Responses work. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -134,7 +134,7 @@ def test_grade_free_text_uses_a_valid_verdict(monkeypatch):
|
||||
def test_grade_free_text_passes_the_answering_key_through(monkeypatch):
|
||||
seen = {}
|
||||
|
||||
def capture(api_key, system, text, timeout, model=None, bypass_preamble=False):
|
||||
def capture(api_key, system, text, timeout, model=None, bypass_preamble=False, app_reference=None):
|
||||
seen["api_key"] = api_key
|
||||
seen["bypass_preamble"] = bypass_preamble
|
||||
return json.dumps({"score": 1.0}), None
|
||||
@@ -147,7 +147,7 @@ def test_grade_free_text_passes_the_answering_key_through(monkeypatch):
|
||||
def test_grade_free_text_bypasses_the_operator_preamble(monkeypatch):
|
||||
seen = {}
|
||||
|
||||
def capture(api_key, system, text, timeout, model=None, bypass_preamble=False):
|
||||
def capture(api_key, system, text, timeout, model=None, bypass_preamble=False, app_reference=None):
|
||||
seen["bypass_preamble"] = bypass_preamble
|
||||
return json.dumps({"score": 1.0}), None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user