mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
style: Update import location and add SSL verification in fetch_openrouter_model_info()
This commit is contained in:
parent
4765a90f97
commit
b37773c630
1 changed files with 2 additions and 2 deletions
|
@ -240,9 +240,9 @@ class ModelInfoManager:
|
|||
"""
|
||||
url_part = model[len("openrouter/"):]
|
||||
url = "https://openrouter.ai/" + url_part
|
||||
import requests
|
||||
try:
|
||||
response = requests.get(url, timeout=5)
|
||||
import requests
|
||||
response = requests.get(url, timeout=5, verify=self.verify_ssl)
|
||||
if response.status_code != 200:
|
||||
return {}
|
||||
html = response.text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue