mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-07 14:08:43 -04:00
Merge verified Odysseus fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user