Skip to content

Commit 6f80163

Browse files
mattappersonabhinav-polagithub-actions[bot]
authored
chore: update OpenAPI specification from openrouter-web (#74)
Co-authored-by: abhinav-pola <[email protected]> Co-authored-by: update-generated-files-action <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b31e303 commit 6f80163

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+353
-438
lines changed

.speakeasy/gen.lock

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b6cd71c-ea04-44da-af45-e43968b5928d
33
management:
4-
docChecksum: 72770d47aad60a8f1a16b4613e8d1ca3
4+
docChecksum: d991e451fa3b40458d9a8e2e16068801
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.652.0
7-
generationVersion: 2.745.2
8-
releaseVersion: 0.1.7
9-
configChecksum: bf32e6ab7422922b4cca9c193ae8e0fb
6+
speakeasyVersion: 1.653.0
7+
generationVersion: 2.748.0
8+
releaseVersion: 0.1.8
9+
configChecksum: c8eca5e6a16c0adf24b477cd8360e674
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212
published: true
@@ -15,7 +15,7 @@ features:
1515
acceptHeaders: 2.81.2
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.12
18-
core: 3.26.3
18+
core: 3.26.4
1919
customCodeRegions: 0.1.0
2020
defaultEnabledRetries: 0.1.0
2121
deprecations: 2.81.1
@@ -546,12 +546,12 @@ generatedFiles:
546546
- src/funcs/creditsCreateCoinbaseCharge.ts
547547
- src/funcs/creditsGetCredits.ts
548548
- src/funcs/embeddingsGenerate.ts
549+
- src/funcs/embeddingsListModels.ts
549550
- src/funcs/endpointsList.ts
550551
- src/funcs/endpointsListZdrEndpoints.ts
551552
- src/funcs/generationsGetGeneration.ts
552553
- src/funcs/modelsCount.ts
553554
- src/funcs/modelsList.ts
554-
- src/funcs/modelsListEmbeddings.ts
555555
- src/funcs/modelsListForUser.ts
556556
- src/funcs/oAuthCreateAuthCode.ts
557557
- src/funcs/oAuthExchangeAuthCodeForAPIKey.ts
@@ -778,13 +778,13 @@ generatedFiles:
778778
- src/react-query/creditsCreateCoinbaseCharge.ts
779779
- src/react-query/creditsGetCredits.ts
780780
- src/react-query/embeddingsGenerate.ts
781+
- src/react-query/embeddingsListModels.ts
781782
- src/react-query/endpointsList.ts
782783
- src/react-query/endpointsListZdrEndpoints.ts
783784
- src/react-query/generationsGetGeneration.ts
784785
- src/react-query/index.ts
785786
- src/react-query/modelsCount.ts
786787
- src/react-query/modelsList.ts
787-
- src/react-query/modelsListEmbeddings.ts
788788
- src/react-query/modelsListForUser.ts
789789
- src/react-query/oAuthCreateAuthCode.ts
790790
- src/react-query/oAuthExchangeAuthCodeForAPIKey.ts
@@ -1802,4 +1802,13 @@ examples:
18021802
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
18031803
"500":
18041804
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1805+
listEmbeddingsModels:
1806+
speakeasy-default-list-embeddings-models:
1807+
responses:
1808+
"200":
1809+
application/json: {"data": [{"id": "openai/gpt-4", "canonical_slug": "openai/gpt-4", "name": "GPT-4", "created": 1692901234, "pricing": {"prompt": "0.00003", "completion": "0.00006"}, "context_length": 8192, "architecture": {"modality": "text->text", "input_modalities": ["text"], "output_modalities": ["text"]}, "top_provider": {"is_moderated": true}, "per_request_limits": null, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "default_parameters": null}]}
1810+
"400":
1811+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1812+
"500":
1813+
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
18051814
examplesVersion: 1.0.2

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: true
3131
skipResponseBodyAssertions: false
3232
typescript:
33-
version: 0.1.7
33+
version: 0.1.8
3434
acceptHeaderEnum: false
3535
additionalDependencies:
3636
dependencies: {}

.speakeasy/in.openapi.yaml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3987,27 +3987,6 @@ components:
39873987
amount: 100
39883988
sender: '0x1234567890123456789012345678901234567890'
39893989
chain_id: 1
3990-
ModelsCountResponse:
3991-
type: object
3992-
properties:
3993-
data:
3994-
type: object
3995-
properties:
3996-
count:
3997-
type: number
3998-
description: Total number of available models
3999-
example: 150
4000-
required:
4001-
- count
4002-
description: Model count data
4003-
example:
4004-
count: 150
4005-
required:
4006-
- data
4007-
description: Model count data
4008-
example:
4009-
data:
4010-
count: 150
40113990
PublicPricing:
40123991
type: object
40133992
properties:
@@ -4378,6 +4357,27 @@ components:
43784357
- frequency_penalty
43794358
- presence_penalty
43804359
default_parameters: null
4360+
ModelsCountResponse:
4361+
type: object
4362+
properties:
4363+
data:
4364+
type: object
4365+
properties:
4366+
count:
4367+
type: number
4368+
description: Total number of available models
4369+
example: 150
4370+
required:
4371+
- count
4372+
description: Model count data
4373+
example:
4374+
count: 150
4375+
required:
4376+
- data
4377+
description: Model count data
4378+
example:
4379+
data:
4380+
count: 150
43814381
InstructType:
43824382
type: string
43834383
nullable: true
@@ -6248,6 +6248,33 @@ paths:
62486248
schema:
62496249
$ref: '#/components/schemas/ProviderOverloadedResponse'
62506250
operationId: createEmbeddings
6251+
/embeddings/models:
6252+
get:
6253+
tags:
6254+
- Embeddings
6255+
x-speakeasy-name-override: listModels
6256+
summary: List all embeddings models
6257+
description: Returns a list of all available embeddings models and their properties
6258+
responses:
6259+
'200':
6260+
description: Returns a list of embeddings models
6261+
content:
6262+
application/json:
6263+
schema:
6264+
$ref: '#/components/schemas/ModelsListResponse'
6265+
'400':
6266+
description: Bad Request - Invalid request parameters
6267+
content:
6268+
application/json:
6269+
schema:
6270+
$ref: '#/components/schemas/BadRequestResponse'
6271+
'500':
6272+
description: Internal Server Error
6273+
content:
6274+
application/json:
6275+
schema:
6276+
$ref: '#/components/schemas/InternalServerResponse'
6277+
operationId: listEmbeddingsModels
62516278
/generation:
62526279
get:
62536280
tags:
@@ -6582,33 +6609,6 @@ paths:
65826609
schema:
65836610
$ref: '#/components/schemas/InternalServerResponse'
65846611
operationId: getModels
6585-
/models/embeddings:
6586-
get:
6587-
tags:
6588-
- Models
6589-
x-speakeasy-name-override: listEmbeddings
6590-
summary: List all embeddings models
6591-
description: Returns a list of all available embeddings models and their properties
6592-
responses:
6593-
'200':
6594-
description: Returns a list of embeddings models
6595-
content:
6596-
application/json:
6597-
schema:
6598-
$ref: '#/components/schemas/ModelsListResponse'
6599-
'400':
6600-
description: Bad Request - Invalid request parameters
6601-
content:
6602-
application/json:
6603-
schema:
6604-
$ref: '#/components/schemas/BadRequestResponse'
6605-
'500':
6606-
description: Internal Server Error
6607-
content:
6608-
application/json:
6609-
schema:
6610-
$ref: '#/components/schemas/InternalServerResponse'
6611-
operationId: listModelsEmbeddings
66126612
/models/user:
66136613
get:
66146614
tags:

.speakeasy/out.openapi.yaml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4001,27 +4001,6 @@ components:
40014001
amount: 100
40024002
sender: '0x1234567890123456789012345678901234567890'
40034003
chain_id: 1
4004-
ModelsCountResponse:
4005-
type: object
4006-
properties:
4007-
data:
4008-
type: object
4009-
properties:
4010-
count:
4011-
type: number
4012-
description: Total number of available models
4013-
example: 150
4014-
required:
4015-
- count
4016-
description: Model count data
4017-
example:
4018-
count: 150
4019-
required:
4020-
- data
4021-
description: Model count data
4022-
example:
4023-
data:
4024-
count: 150
40254004
PublicPricing:
40264005
type: object
40274006
properties:
@@ -4397,6 +4376,27 @@ components:
43974376
- frequency_penalty
43984377
- presence_penalty
43994378
default_parameters: null
4379+
ModelsCountResponse:
4380+
type: object
4381+
properties:
4382+
data:
4383+
type: object
4384+
properties:
4385+
count:
4386+
type: number
4387+
description: Total number of available models
4388+
example: 150
4389+
required:
4390+
- count
4391+
description: Model count data
4392+
example:
4393+
count: 150
4394+
required:
4395+
- data
4396+
description: Model count data
4397+
example:
4398+
data:
4399+
count: 150
44004400
InstructType:
44014401
type: string
44024402
nullable: true
@@ -6265,6 +6265,33 @@ paths:
62656265
schema:
62666266
$ref: '#/components/schemas/ProviderOverloadedResponse'
62676267
operationId: createEmbeddings
6268+
/embeddings/models:
6269+
get:
6270+
tags:
6271+
- Embeddings
6272+
x-speakeasy-name-override: listModels
6273+
summary: List all embeddings models
6274+
description: Returns a list of all available embeddings models and their properties
6275+
responses:
6276+
'200':
6277+
description: Returns a list of embeddings models
6278+
content:
6279+
application/json:
6280+
schema:
6281+
$ref: '#/components/schemas/ModelsListResponse'
6282+
'400':
6283+
description: Bad Request - Invalid request parameters
6284+
content:
6285+
application/json:
6286+
schema:
6287+
$ref: '#/components/schemas/BadRequestResponse'
6288+
'500':
6289+
description: Internal Server Error
6290+
content:
6291+
application/json:
6292+
schema:
6293+
$ref: '#/components/schemas/InternalServerResponse'
6294+
operationId: listEmbeddingsModels
62686295
/generation:
62696296
get:
62706297
tags:
@@ -6587,33 +6614,6 @@ paths:
65876614
schema:
65886615
$ref: '#/components/schemas/InternalServerResponse'
65896616
operationId: getModels
6590-
/models/embeddings:
6591-
get:
6592-
tags:
6593-
- Models
6594-
x-speakeasy-name-override: listEmbeddings
6595-
summary: List all embeddings models
6596-
description: Returns a list of all available embeddings models and their properties
6597-
responses:
6598-
'200':
6599-
description: Returns a list of embeddings models
6600-
content:
6601-
application/json:
6602-
schema:
6603-
$ref: '#/components/schemas/ModelsListResponse'
6604-
'400':
6605-
description: Bad Request - Invalid request parameters
6606-
content:
6607-
application/json:
6608-
schema:
6609-
$ref: '#/components/schemas/BadRequestResponse'
6610-
'500':
6611-
description: Internal Server Error
6612-
content:
6613-
application/json:
6614-
schema:
6615-
$ref: '#/components/schemas/InternalServerResponse'
6616-
operationId: listModelsEmbeddings
66176617
/models/user:
66186618
get:
66196619
tags:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.652.0
1+
speakeasyVersion: 1.653.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:6ebac1e729591ec2c09e69bd6be79efd3b92d8c096be40905b2622ba9d55216a
6-
sourceBlobDigest: sha256:77e4e4e1005c72b7f3229453613f1d7aaa997abf08a2fc66523d55a5dbcd8556
5+
sourceRevisionDigest: sha256:684c9a95109635b087cc5ce05ce1dd1b63e55c85612ee25560c99cc85a6a1215
6+
sourceBlobDigest: sha256:988834ac43d414bf263bc54e3474c11047540738ef32056269620d834f7ffac7
77
tags:
88
- latest
99
- staging
@@ -12,10 +12,10 @@ targets:
1212
openrouter:
1313
source: OpenRouter API
1414
sourceNamespace: open-router-chat-completions-api
15-
sourceRevisionDigest: sha256:6ebac1e729591ec2c09e69bd6be79efd3b92d8c096be40905b2622ba9d55216a
16-
sourceBlobDigest: sha256:77e4e4e1005c72b7f3229453613f1d7aaa997abf08a2fc66523d55a5dbcd8556
15+
sourceRevisionDigest: sha256:684c9a95109635b087cc5ce05ce1dd1b63e55c85612ee25560c99cc85a6a1215
16+
sourceBlobDigest: sha256:988834ac43d414bf263bc54e3474c11047540738ef32056269620d834f7ffac7
1717
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:723294fa9e26e899e01d155bf97971b1d0c207dac0426ee48887ffeae95fab1a
18+
codeSamplesRevisionDigest: sha256:eec8ccd940cfc9e5072acaaee9380b17a8d7e35a75adf7da46a9727156f439c8
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

0 commit comments

Comments
 (0)