feat: update model warning prompt to offer documentation link

This commit is contained in:
Paul Gauthier 2024-10-30 11:34:18 -07:00 committed by Paul Gauthier (aider)
parent 53e7eba00b
commit f0233455d2

View file

@ -607,9 +607,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
if problem:
io.tool_output("You can skip this check with --no-show-model-warnings")
io.tool_output()
try:
if not io.confirm_ask("Proceed anyway?"):
return 1
if io.confirm_ask("Open documentation url for more info?", subject=urls.model_warnings):
pass # ai have this launch the url in a browser!
except KeyboardInterrupt:
return 1