feat: binding bots with runtime (#1238)

This commit is contained in:
Junyan Qin (Chin)
2025-03-27 23:50:02 +08:00
committed by GitHub
parent 5be17c55d2
commit 5379e4cf27
3 changed files with 158 additions and 74 deletions

View File

@@ -35,7 +35,10 @@ class ModelsService:
**model_data
)
)
await self.ap.model_mgr.load_llm_model(model_data)
llm_model = await self.get_llm_model(model_data['uuid'])
await self.ap.model_mgr.load_llm_model(llm_model)
return model_data['uuid']
@@ -60,7 +63,10 @@ class ModelsService:
)
await self.ap.model_mgr.remove_llm_model(model_uuid)
await self.ap.model_mgr.load_llm_model(model_data)
llm_model = await self.get_llm_model(model_uuid)
await self.ap.model_mgr.load_llm_model(llm_model)
async def delete_llm_model(self, model_uuid: str) -> None:
await self.ap.persistence_mgr.execute_async(