Improper handling of provider while creating llm object for TextGenerator.
Type in code line 32 in the file mentioned below
def llm(provider: str = None, **kwargs):
# load config. This will load the default config from
# configs/config.default.yml if no path to a config file is specified. in
# the environment variable LLMX_CONFIG_PATH
config = load_config()
if provider is None:
# provider is not explicitly specified, use the default provider from the config file
provider = config["model"]["provider"] if "provider" in config["model"] else None
kwargs = config["model"]["parameters"] if "parameters" in config["model"] else {}
if provider is None:
logger.info("No provider specified. Defaulting to 'openai'.")
provider = "openai"
Improper handling of provider while creating llm object for TextGenerator.
Type in code line 32 in the file mentioned below
Code Link:
https://github.com/victordibia/llmx/blame/b0af8d1819488302019628b7c8d31bdb5051b366/llmx/generators/text/textgen.py#L34