fix: fallback to OpenAILLMHandler when no handler class is found

This commit is contained in:
Alex
2025-06-20 16:08:40 +01:00
parent e879ef805f
commit b404162364

View File

@@ -14,5 +14,5 @@ class LLMHandlerCreator:
def create_handler(cls, llm_type: str, *args, **kwargs) -> LLMHandler:
handler_class = cls.handlers.get(llm_type.lower())
if not handler_class:
raise ValueError(f"No LLM handler class found for type {llm_type}")
handler_class = OpenAILLMHandler
return handler_class(*args, **kwargs)