better warning
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cdc0774fe7
commit
eb6a1bbcfd
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user