tidy(nodes): clarify comment

This commit is contained in:
psychedelicious 2024-02-08 10:57:01 +11:00
parent 220baae793
commit 1655061c96

View File

@ -279,15 +279,8 @@ class ModelsInterface(InvocationContextInterface):
:param submodel: The submodel of the model to get. :param submodel: The submodel of the model to get.
""" """
# During this call, the model manager emits events with model loading status. The model # The model manager emits events as it loads the model. It needs the context data to build
# manager itself has access to the events services, but does not have access to the # the event payloads.
# required metadata for the events.
#
# For example, it needs access to the node's ID so that the events can be associated
# with the execution of a specific node.
#
# While this is available within the node, it's tedious to need to pass it in on every
# call. We can avoid that by wrapping the method here.
return self._services.model_manager.get_model( return self._services.model_manager.get_model(
model_name, base_model, model_type, submodel, context_data=self._context_data model_name, base_model, model_type, submodel, context_data=self._context_data