Skip to content

Commit 87ba23b

Browse files
authored
chore: update OpenAPI specification from openrouter-web (#17)
2 parents afc3a30 + da38731 commit 87ba23b

File tree

1 file changed

+97
-22
lines changed

1 file changed

+97
-22
lines changed

.speakeasy/in.openapi.yaml

Lines changed: 97 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4872,7 +4872,13 @@ paths:
48724872
prompt_tokens: 50
48734873
completion_tokens: 125
48744874
reasoning_tokens: 25
4875-
default:
4875+
4XX:
4876+
description: Error Response
4877+
content:
4878+
application/json:
4879+
schema:
4880+
$ref: '#/components/schemas/ErrorResponse'
4881+
5XX:
48764882
description: Error Response
48774883
content:
48784884
application/json:
@@ -4917,8 +4923,14 @@ paths:
49174923
data:
49184924
total_credits: 100.5
49194925
total_usage: 25.75
4920-
default:
4921-
description: Internal server error
4926+
4XX:
4927+
description: Error Response
4928+
content:
4929+
application/json:
4930+
schema:
4931+
$ref: '#/components/schemas/ErrorResponse'
4932+
5XX:
4933+
description: Error Response
49224934
content:
49234935
application/json:
49244936
schema:
@@ -5035,7 +5047,13 @@ paths:
50355047
- web3_data
50365048
required:
50375049
- data
5038-
default:
5050+
4XX:
5051+
description: Error
5052+
content:
5053+
application/json:
5054+
schema:
5055+
$ref: '#/components/schemas/ErrorResponse'
5056+
5XX:
50395057
description: Error
50405058
content:
50415059
application/json:
@@ -5256,8 +5274,14 @@ paths:
52565274
required:
52575275
- data
52585276
description: Generation response
5259-
default:
5260-
description: Error
5277+
4XX:
5278+
description: Error Response
5279+
content:
5280+
application/json:
5281+
schema:
5282+
$ref: '#/components/schemas/ErrorResponse'
5283+
5XX:
5284+
description: Error Response
52615285
content:
52625286
application/json:
52635287
schema:
@@ -5267,6 +5291,7 @@ paths:
52675291
get:
52685292
tags:
52695293
- Models
5294+
x-speakeasy-name-override: count
52705295
summary: Get total count of available models
52715296
responses:
52725297
'200':
@@ -5304,6 +5329,7 @@ paths:
53045329
get:
53055330
tags:
53065331
- Models
5332+
x-speakeasy-name-override: list
53075333
summary: List all models and their properties
53085334
parameters:
53095335
- schema:
@@ -5355,6 +5381,7 @@ paths:
53555381
get:
53565382
tags:
53575383
- Models
5384+
x-speakeasy-name-override: listForUser
53585385
summary: List models filtered by user provider preferences
53595386
security:
53605387
- bearer: []
@@ -5470,8 +5497,14 @@ paths:
54705497
- endpoints
54715498
required:
54725499
- data
5473-
default:
5474-
description: Error
5500+
4XX:
5501+
description: Error Response
5502+
content:
5503+
application/json:
5504+
schema:
5505+
$ref: '#/components/schemas/ErrorResponse'
5506+
5XX:
5507+
description: Error Response
54755508
content:
54765509
application/json:
54775510
schema:
@@ -5661,8 +5694,14 @@ paths:
56615694
- temperature
56625695
- top_p
56635696
- max_tokens
5664-
default:
5665-
description: Data not found
5697+
4XX:
5698+
description: Error Response
5699+
content:
5700+
application/json:
5701+
schema:
5702+
$ref: '#/components/schemas/ErrorResponse'
5703+
5XX:
5704+
description: Error Response
56665705
content:
56675706
application/json:
56685707
schema:
@@ -5926,8 +5965,14 @@ paths:
59265965
byok_usage_monthly: 17.38
59275966
created_at: '2025-08-24T10:30:00Z'
59285967
updated_at: '2025-08-24T15:45:00Z'
5929-
default:
5930-
description: Error response
5968+
4XX:
5969+
description: Error Response
5970+
content:
5971+
application/json:
5972+
schema:
5973+
$ref: '#/components/schemas/ErrorResponse'
5974+
5XX:
5975+
description: Error Response
59315976
content:
59325977
application/json:
59335978
schema:
@@ -6130,8 +6175,14 @@ paths:
61306175
created_at: '2025-08-24T10:30:00Z'
61316176
updated_at: null
61326177
key: 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
6133-
default:
6134-
description: Error response
6178+
4XX:
6179+
description: Error Response
6180+
content:
6181+
application/json:
6182+
schema:
6183+
$ref: '#/components/schemas/ErrorResponse'
6184+
5XX:
6185+
description: Error Response
61356186
content:
61366187
application/json:
61376188
schema:
@@ -6340,8 +6391,14 @@ paths:
63406391
byok_usage_monthly: 17.38
63416392
created_at: '2025-08-24T10:30:00Z'
63426393
updated_at: '2025-08-24T16:00:00Z'
6343-
default:
6344-
description: Error response
6394+
4XX:
6395+
description: Error Response
6396+
content:
6397+
application/json:
6398+
schema:
6399+
$ref: '#/components/schemas/ErrorResponse'
6400+
5XX:
6401+
description: Error Response
63456402
content:
63466403
application/json:
63476404
schema:
@@ -6377,8 +6434,14 @@ paths:
63776434
- deleted
63786435
example:
63796436
deleted: true
6380-
default:
6381-
description: Error response
6437+
4XX:
6438+
description: Error Response
6439+
content:
6440+
application/json:
6441+
schema:
6442+
$ref: '#/components/schemas/ErrorResponse'
6443+
5XX:
6444+
description: Error Response
63826445
content:
63836446
application/json:
63846447
schema:
@@ -6546,8 +6609,14 @@ paths:
65466609
byok_usage_monthly: 17.38
65476610
created_at: '2025-08-24T10:30:00Z'
65486611
updated_at: '2025-08-24T15:45:00Z'
6549-
default:
6550-
description: Error response
6612+
4XX:
6613+
description: Error Response
6614+
content:
6615+
application/json:
6616+
schema:
6617+
$ref: '#/components/schemas/ErrorResponse'
6618+
5XX:
6619+
description: Error Response
65516620
content:
65526621
application/json:
65536622
schema:
@@ -6720,8 +6789,14 @@ paths:
67206789
requests: 1000
67216790
interval: 1h
67226791
note: This field is deprecated and safe to ignore.
6723-
default:
6724-
description: Error response
6792+
4XX:
6793+
description: Error Response
6794+
content:
6795+
application/json:
6796+
schema:
6797+
$ref: '#/components/schemas/ErrorResponse'
6798+
5XX:
6799+
description: Error Response
67256800
content:
67266801
application/json:
67276802
schema:

0 commit comments

Comments
 (0)