Skip to content

Commit

Permalink
remove has default llm
Browse files Browse the repository at this point in the history
  • Loading branch information
kdziedzic68 committed Nov 28, 2024
1 parent 9bf4076 commit f404bc6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
11 changes: 0 additions & 11 deletions packages/ragbits-core/src/ragbits/core/llms/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ def get_llm_from_factory(factory_path: str) -> LLM:
return function()


def has_default_llm(llm_type: LLMType = LLMType.TEXT) -> bool:
"""
Check if the default LLM factory is set in the configuration.
Returns:
bool: Whether the default LLM factory is set.
"""
default_factory = core_config.default_llm_factories.get(llm_type, None)
return default_factory is not None


def get_default_llm(llm_type: LLMType = LLMType.TEXT) -> LLM:
"""
Get an instance of the default LLM using the factory function
Expand Down

This file was deleted.

0 comments on commit f404bc6

Please sign in to comment.