mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
refac all urls into urls.py
This commit is contained in:
parent
09d3d02971
commit
1f1da4b1a2
7 changed files with 26 additions and 18 deletions
|
@ -8,18 +8,18 @@ import pypandoc
|
|||
from bs4 import BeautifulSoup
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
from aider import __version__
|
||||
from aider import __version__, urls
|
||||
|
||||
aider_user_agent = f"Aider/{__version__} +https://aider.chat"
|
||||
aider_user_agent = f"Aider/{__version__} +{urls.website}"
|
||||
|
||||
# Playwright is nice because it has a simple way to install dependencies on most
|
||||
# platforms.
|
||||
PLAYWRIGHT_INFO = """
|
||||
PLAYWRIGHT_INFO = f"""
|
||||
For better web scraping, install Playwright chromium with this command in your terminal:
|
||||
|
||||
playwright install --with-deps chromium
|
||||
|
||||
See https://aider.chat/docs/install/optional.html#enable-playwright for more info.
|
||||
See {urls.enable_playwrite} for more info.
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue