fix: get_llm_models: model_service is a module, not an attribute (#1762)

This commit is contained in:
Matthew_Astral
2025-11-07 12:23:49 +01:00
committed by GitHub
parent 021c3bbb94
commit f8658e2d77

View File

@@ -298,7 +298,7 @@ class RuntimeConnectionHandler(handler.Handler):
@self.action(PluginToRuntimeAction.GET_LLM_MODELS)
async def get_llm_models(data: dict[str, Any]) -> handler.ActionResponse:
"""Get llm models"""
llm_models = await self.ap.model_service.get_llm_models(include_secret=False)
llm_models = await self.ap.llm_model_service.get_llm_models(include_secret=False)
return handler.ActionResponse.success(
data={
'llm_models': llm_models,