mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
fix: Split long URL into multiple lines to adhere to line length limit
This commit is contained in:
parent
225cb93b05
commit
5e50adb96f
1 changed files with 4 additions and 1 deletions
|
@ -455,7 +455,10 @@ class Model(ModelSettings):
|
||||||
# First, attempt to fetch from GitHub
|
# First, attempt to fetch from GitHub
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
url = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json"
|
url = (
|
||||||
|
"https://raw.githubusercontent.com/BerriAI/litellm/main/"
|
||||||
|
"model_prices_and_context_window.json"
|
||||||
|
)
|
||||||
response = requests.get(url, timeout=5)
|
response = requests.get(url, timeout=5)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
content = response.json()
|
content = response.json()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue