fix: initialize cfg_base_url for custom providers
Co-authored-by: Nathan Esquenazi <nesquena@gmail.com>
This commit is contained in:
@@ -427,6 +427,7 @@ def get_available_models() -> dict:
|
|||||||
|
|
||||||
# 1. Read config.yaml model section
|
# 1. Read config.yaml model section
|
||||||
model_cfg = cfg.get('model', {})
|
model_cfg = cfg.get('model', {})
|
||||||
|
cfg_base_url = ''
|
||||||
if isinstance(model_cfg, str):
|
if isinstance(model_cfg, str):
|
||||||
default_model = model_cfg
|
default_model = model_cfg
|
||||||
elif isinstance(model_cfg, dict):
|
elif isinstance(model_cfg, dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user