diff --git a/aixplain/modules/model/llm_model.py b/aixplain/modules/model/llm_model.py index 14b9c7f4..5c5c4140 100644 --- a/aixplain/modules/model/llm_model.py +++ b/aixplain/modules/model/llm_model.py @@ -24,7 +24,6 @@ import json import logging import traceback -from aixplain.factories.file_factory import FileFactory from aixplain.enums import Function, Supplier from aixplain.modules.model import Model from aixplain.utils import config @@ -182,6 +181,8 @@ def run_async( """ headers = {"x-api-key": self.api_key, "Content-Type": "application/json"} + from aixplain.factories.file_factory import FileFactory + data = FileFactory.to_link(data) if isinstance(data, dict): payload = data