mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
refactor: update fallback LLM initialization to use factory method
This commit is contained in:
@@ -30,9 +30,9 @@ class BaseLLM(ABC):
|
|||||||
and self.fallback_model_name
|
and self.fallback_model_name
|
||||||
):
|
):
|
||||||
try:
|
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_provider,
|
||||||
self.fallback_llm_api_key,
|
self.fallback_llm_api_key,
|
||||||
None,
|
None,
|
||||||
|
|||||||
Reference in New Issue
Block a user