mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
feat: add browser launch for model warnings documentation
This commit is contained in:
parent
f0233455d2
commit
4ac8386313
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import traceback
|
import traceback
|
||||||
|
import webbrowser
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import git
|
import git
|
||||||
|
@ -610,7 +611,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if io.confirm_ask("Open documentation url for more info?", subject=urls.model_warnings):
|
if io.confirm_ask("Open documentation url for more info?", subject=urls.model_warnings):
|
||||||
pass # ai have this launch the url in a browser!
|
webbrowser.open(urls.model_warnings)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue