mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
Do fast env validation if models start with openai/ anthropic/
This commit is contained in:
parent
ed9ed895d0
commit
f059505edf
1 changed files with 2 additions and 2 deletions
|
@ -566,9 +566,9 @@ class Model:
|
|||
"""Fast path for common models. Avoids forcing litellm import."""
|
||||
|
||||
model = self.name
|
||||
if model in OPENAI_MODELS:
|
||||
if model in OPENAI_MODELS or model.startswith("openai/"):
|
||||
var = "OPENAI_API_KEY"
|
||||
elif model in ANTHROPIC_MODELS:
|
||||
elif model in ANTHROPIC_MODELS or model.startswith("anthropic/"):
|
||||
var = "ANTHROPIC_API_KEY"
|
||||
else:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue