refactor: update fallback LLM initialization to use factory method

This commit is contained in:
Siddhant Rai
2025-06-06 17:23:27 +05:30
parent 35f4b13237
commit e5b1a71659

View File

@@ -30,9 +30,9 @@ class BaseLLM(ABC):
and self.fallback_model_name
):
try:
from llm.llm_creator import LLMCreator
from application.llm.llm_creator import LLMCreator
self._fallback_llm = LLMCreator(
self._fallback_llm = LLMCreator.create_llm(
self.fallback_provider,
self.fallback_llm_api_key,
None,