fix: strip volcengine prefix in limit sync to match config
This commit is contained in:
+7
-1
@@ -181,7 +181,12 @@ def clean_model_name(name):
|
|||||||
"""LiteLLM style cleaning: remove provider prefixes."""
|
"""LiteLLM style cleaning: remove provider prefixes."""
|
||||||
if not name:
|
if not name:
|
||||||
return ""
|
return ""
|
||||||
return name.replace("openai/", "").replace("azure/", "").replace("anthropic/", "")
|
return (
|
||||||
|
name.replace("openai/", "")
|
||||||
|
.replace("azure/", "")
|
||||||
|
.replace("anthropic/", "")
|
||||||
|
.replace("volcengine/", "")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def normalize_volc_name(raw_name):
|
def normalize_volc_name(raw_name):
|
||||||
@@ -784,6 +789,7 @@ def active_monitor_loop():
|
|||||||
raw_val.replace("openai/", "")
|
raw_val.replace("openai/", "")
|
||||||
.replace("azure/", "")
|
.replace("azure/", "")
|
||||||
.replace("anthropic/", "")
|
.replace("anthropic/", "")
|
||||||
|
.replace("volcengine/", "")
|
||||||
)
|
)
|
||||||
current_entry["upstream_model"] = clean
|
current_entry["upstream_model"] = clean
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Reference in New Issue
Block a user