fix(volc_sync): restrict model discovery and enhance loop logging
This commit is contained in:
+3
-3
@@ -580,10 +580,10 @@ def active_monitor_loop():
|
||||
if sline.startswith("- model_name:"):
|
||||
current_model_name = sline.split(":", 1)[1].strip().strip("\"'")
|
||||
if current_model_name:
|
||||
if "api_base:" in sline and ("HUOSHAN" in sline or "volc" in sline):
|
||||
INTERESTED_MODELS.add(current_model_name)
|
||||
if "model:" in sline and "volcengine/" in sline:
|
||||
# User requirement: Only models using HUOSHAN_BASE_URL are valid
|
||||
if "api_base:" in sline and "HUOSHAN_BASE_URL" in sline:
|
||||
INTERESTED_MODELS.add(current_model_name)
|
||||
# Deprecated: removed heuristics for "volc" or "volcengine/"
|
||||
print(
|
||||
f"Auto-discovered {len(INTERESTED_MODELS)} Active Volcengine models: {INTERESTED_MODELS}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user