better warning

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Giacomo Bertolazzi
2025-10-27 21:05:11 +01:00
committed by GitHub
parent cdc0774fe7
commit eb6a1bbcfd

View File

@@ -109,7 +109,7 @@ class ModelsConfig(BaseModel):
key: API key required for the provider (optional) key: API key required for the provider (optional)
""" """
if key and os.getenv(key) is None: if key and os.getenv(key) is None:
log.warning(f"No {key} set in environment variables for provider.") log.warning(f"No {key} set in environment variables for {clazz.__name__}.")
models.clear() models.clear()
return return