fix: Split long URL into multiple lines to adhere to line length limit

This commit is contained in:
Paul Gauthier (aider) 2024-08-25 07:53:03 -07:00
parent 225cb93b05
commit 5e50adb96f

View file

@ -455,7 +455,10 @@ class Model(ModelSettings):
# First, attempt to fetch from GitHub
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)
if response.status_code == 200:
content = response.json()