Merge verified Odysseus fixes

This commit is contained in:
pewdiepie-archdaemon
2026-07-23 14:49:02 +00:00
parent 4c9a8ca115
commit d8a2059df8
117 changed files with 15693 additions and 3191 deletions
+18
View File
@@ -24,3 +24,21 @@ def test_header_indicator_has_title_tooltip():
body = SRC[SRC.index("export function updateModelPicker()"):]
assert re.search(r"label\.title\s*=\s*modelId\b", body), \
"header model indicator needs a title tooltip (#1982)"
def test_api_picker_dedupe_includes_endpoint_id():
# API providers can expose the same model id intentionally. The chat picker
# must not dedupe OpenRouter away just because OpenAI has the same id.
assert "const isApiEndpoint = item.category && item.category !== 'local';" in SRC
assert re.search(r"const seenKey = isApiEndpoint\s*\?", SRC), \
"chat picker should dedupe API models by endpoint+model, not model id only"
assert "${item.endpoint_id || item.url || item.endpoint_name || 'api'}::${mid}" in SRC
def test_api_picker_groups_by_endpoint_name():
# OpenRouter models often have ids like openai/* or google/*; browse mode
# should still show them under the OpenRouter endpoint group.
assert "function _providerGroupKey(m)" in SRC
assert "m.category && m.category !== 'local' && m.epName" in SRC
assert "`~endpoint:${m.epName}`" in SRC
assert "_providerGroupName(provider)" in SRC