We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b7071 commit 6f5c2daCopy full SHA for 6f5c2da
1 file changed
scripts/openrouter.sh
@@ -13,7 +13,7 @@ import urllib.request
13
14
readmeFile = sys.argv[1]
15
updateTime = sys.argv[2]
16
-apiUrl = 'https://openrouter.ai/api/frontend/models'
+apiUrl = 'https://openrouter.ai/api/frontend/v1/catalog/models'
17
18
with urllib.request.urlopen(apiUrl, timeout=30) as httpResponse:
19
apiData = json.loads(httpResponse.read().decode())
@@ -42,7 +42,8 @@ for modelData in modelList:
42
capList.append('video-gen')
43
if modelData.get('supports_reasoning', False):
44
capList.append('reasoning')
45
- if modelData.get('supports_tool_parameters', False):
+ modelEndpoint = modelData.get('endpoint') or {}
46
+ if modelEndpoint.get('supports_tool_parameters', False):
47
capList.append('tools')
48
if contextLength:
49
sizeText = f'{contextLength:,} tokens'
0 commit comments