diff options
Diffstat (limited to 'llamachat/config.py')
| -rw-r--r-- | llamachat/config.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llamachat/config.py b/llamachat/config.py index ac53823..8fa4933 100644 --- a/llamachat/config.py +++ b/llamachat/config.py @@ -126,6 +126,13 @@ def load(path: Path = CONFIG_PATH) -> Config: # Providers are built from the raw values so a bare base_url still # synthesizes the local entry. DEFAULTS supplies base_url when the file # names neither, which keeps a config with no network settings working. + # + # That default is load-bearing, not a convenience: it is the only reason + # a malformed [providers.local] still leaves a working local provider, + # since parse() rebuilds local from the bare URL after skipping it. + # Dropping base_url from DEFAULTS, or letting a caller reach parse() + # without one, would turn every such config into an app with no local + # provider at all. Keep the key. provider_table = providers_mod.parse(values) return Config( |
