From bcc7194e4cf2c8865244051b35edb3bdef712a61 Mon Sep 17 00:00:00 2001 From: Thiago Castro Ferreira Date: Tue, 30 Jul 2024 15:27:05 +0200 Subject: [PATCH] Fixing circular import in the SDK --- aixplain/modules/model/llm_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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