Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from flo_ai.helpers.llm_factory import LLMFactory
from flo_ai.llm import Gemini
from db_repo_module.models.llm_inference_config import LlmInferenceConfig
from flo_ai.models.agent import LLMConfigModel


class LLMModelFunc:
Expand All @@ -15,7 +16,11 @@ def _create_llm_instance(self, config: LlmInferenceConfig):
Returns:
LLM instance
"""
return LLMFactory.create_llm({'provider': 'rootflo', 'model_id': config.id})
config = LLMConfigModel(
provider='rootflo',
model_id=config.id,
)
Comment thread
vishnurk6247 marked this conversation as resolved.
return LLMFactory.create_llm(config)
Comment thread
vishnurk6247 marked this conversation as resolved.

async def generate_response(
self,
Expand Down
Loading