revert: remove unrelated repository formatting

This commit is contained in:
9qeklajc
2026-07-26 20:12:12 +02:00
parent 06dba681c5
commit c5da73f1e9
22 changed files with 319 additions and 259 deletions
+10 -10
View File
@@ -232,10 +232,7 @@ def create_model_mappings(
aliases.append(prefixed_id)
# Register forwarded_model_id as a routable alias
if (
model_to_use.forwarded_model_id
and model_to_use.forwarded_model_id not in aliases
):
if model_to_use.forwarded_model_id and model_to_use.forwarded_model_id not in aliases:
aliases.append(model_to_use.forwarded_model_id)
# Try to set each alias
@@ -325,10 +322,7 @@ def create_model_mappings(
aliases.append(prefixed_id)
# Register forwarded_model_id as a routable alias
if (
model_to_use.forwarded_model_id
and model_to_use.forwarded_model_id not in aliases
):
if model_to_use.forwarded_model_id and model_to_use.forwarded_model_id not in aliases:
aliases.append(model_to_use.forwarded_model_id)
for alias in aliases:
@@ -348,10 +342,16 @@ def create_model_mappings(
forwarded_model_ids, the one whose forwarded_model_id equals the
requested alias wins.
"""
if model.forwarded_model_id and model.forwarded_model_id.lower() == alias:
if (
model.forwarded_model_id
and model.forwarded_model_id.lower() == alias
):
return 5
if model.id and model.id.lower() == alias:
if (
model.id
and model.id.lower() == alias
):
return 4
model_base = get_base_model_id(model.id)