feat: python模型管理

This commit is contained in:
砂糖
2025-10-07 15:49:58 +08:00
parent 1a7ecafc7d
commit 4cec966613
6 changed files with 563 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ async def startup_event():
model_manager = ModelManager()
# Look for models.json configuration file
models_json_path = os.getenv("MODELS_JSON", os.path.join(os.path.dirname(__file__), "..", "models", "models.json"))
models_json_path = os.getenv("MODELS_JSON", os.path.join(os.path.dirname(__file__), "..", "models.json"))
if os.path.exists(models_json_path):
try: