-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
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"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels