mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Added --show-model-warnings
This commit is contained in:
parent
01cf038bb5
commit
f9e122b9d7
2 changed files with 7 additions and 14 deletions
|
@ -309,7 +309,7 @@ class Model:
|
|||
if res["missing_keys"]:
|
||||
return res
|
||||
|
||||
provider = self.info.get("litellm_provider").lower()
|
||||
provider = self.info.get("litellm_provider", "").lower()
|
||||
if provider == "cohere_chat":
|
||||
return validate_variables(["COHERE_API_KEY"])
|
||||
if provider == "gemini":
|
||||
|
@ -331,13 +331,9 @@ def validate_variables(vars):
|
|||
|
||||
|
||||
def sanity_check_models(io, main_model):
|
||||
missing_model_info = False
|
||||
if not sanity_check_model(io, main_model):
|
||||
missing_model_info = True
|
||||
sanity_check_model(io, main_model)
|
||||
if main_model.weak_model and main_model.weak_model is not main_model:
|
||||
if not sanity_check_model(io, main_model.weak_model):
|
||||
missing_model_info = True
|
||||
return missing_model_info
|
||||
sanity_check_model(io, main_model.weak_model)
|
||||
|
||||
|
||||
def sanity_check_model(io, model):
|
||||
|
@ -371,8 +367,6 @@ def sanity_check_model(io, model):
|
|||
if show:
|
||||
io.tool_error("For more info see https://aider.chat/docs/llms.html#model-warnings")
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def fuzzy_match_models(name):
|
||||
name = name.lower()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue