mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
updated model warnings and docs
This commit is contained in:
parent
bcabd50414
commit
17f7297d86
2 changed files with 35 additions and 33 deletions
|
@ -551,7 +551,7 @@ def sanity_check_model(io, model):
|
|||
if not model.info:
|
||||
show = True
|
||||
io.tool_output(
|
||||
f"Model {model}: Unknown model, context window size and token costs unavailable."
|
||||
f"Model {model}: Unknown context window size and costs, using sane defaults."
|
||||
)
|
||||
|
||||
possible_matches = fuzzy_match_models(model.name)
|
||||
|
@ -560,12 +560,12 @@ def sanity_check_model(io, model):
|
|||
for match in possible_matches:
|
||||
fq, m = match
|
||||
if fq == m:
|
||||
io.tool_error(f"- {m}")
|
||||
io.tool_output(f"- {m}")
|
||||
else:
|
||||
io.tool_error(f"- {m} ({fq})")
|
||||
io.tool_output(f"- {m} ({fq})")
|
||||
|
||||
if show:
|
||||
io.tool_error(urls.model_warnings)
|
||||
io.tool_output(f"For more info, see: {urls.model_warnings}\n")
|
||||
|
||||
|
||||
def fuzzy_match_models(name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue