Skip to content

Commit 8a2e48f

Browse files
mattappersonlouisgvgithub-actions[bot]
authored
chore: update OpenAPI specification from openrouter-web (#77)
Co-authored-by: louisgv <[email protected]> Co-authored-by: update-generated-files-action <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fcd6301 commit 8a2e48f

22 files changed

+103
-160
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 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: f377d4ed11037a871b8c253c1d75f132
4+
docChecksum: 9660e86ea28560265285c6e3773bd061
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.653.1
7-
generationVersion: 2.748.0
8-
releaseVersion: 0.1.9
9-
configChecksum: 7a9a57baedc1855f3964d13bf5247b93
6+
speakeasyVersion: 1.653.2
7+
generationVersion: 2.748.4
8+
releaseVersion: 0.1.10
9+
configChecksum: 0b94228b2cc806ed198c6d48069286d9
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212
published: true

.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.9
33+
version: 0.1.10
3434
acceptHeaderEnum: false
3535
additionalDependencies:
3636
dependencies: {}

.speakeasy/in.openapi.yaml

Lines changed: 17 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ components:
223223
example:
224224
type: summary_text
225225
text: Analyzed the problem using first principles
226-
ResponsesOutputItemReasoning:
226+
OutputItemReasoning:
227227
type: object
228228
properties:
229229
type:
@@ -256,8 +256,19 @@ components:
256256
- in_progress
257257
required:
258258
- type
259+
- id
259260
- summary
260-
description: An output item containing reasoning
261+
example:
262+
type: reasoning
263+
id: reasoning-abc123
264+
summary:
265+
- type: summary_text
266+
text: Analyzed the problem using first principles
267+
ResponsesOutputItemReasoning:
268+
allOf:
269+
- $ref: '#/components/schemas/OutputItemReasoning'
270+
- type: object
271+
properties: {}
261272
example:
262273
id: reasoning-123
263274
type: reasoning
@@ -268,6 +279,7 @@ components:
268279
content:
269280
- type: reasoning_text
270281
text: First, we analyze the problem...
282+
description: An output item containing reasoning
271283
OutputItemFunctionCall:
272284
type: object
273285
properties:
@@ -655,6 +667,7 @@ components:
655667
format: mp3
656668
ToolCallStatus:
657669
type: string
670+
nullable: true
658671
enum:
659672
- in_progress
660673
- completed
@@ -752,6 +765,7 @@ components:
752765
- function_call_output
753766
id:
754767
type: string
768+
nullable: true
755769
call_id:
756770
type: string
757771
output:
@@ -760,7 +774,6 @@ components:
760774
$ref: '#/components/schemas/ToolCallStatus'
761775
required:
762776
- type
763-
- id
764777
- call_id
765778
- output
766779
- type: object
@@ -1159,47 +1172,6 @@ components:
11591172
format:
11601173
type: text
11611174
verbosity: medium
1162-
OutputItemReasoning:
1163-
type: object
1164-
properties:
1165-
type:
1166-
type: string
1167-
enum:
1168-
- reasoning
1169-
id:
1170-
type: string
1171-
content:
1172-
type: array
1173-
items:
1174-
$ref: '#/components/schemas/ReasoningTextContent'
1175-
summary:
1176-
type: array
1177-
items:
1178-
$ref: '#/components/schemas/ReasoningSummaryText'
1179-
encrypted_content:
1180-
type: string
1181-
nullable: true
1182-
status:
1183-
anyOf:
1184-
- type: string
1185-
enum:
1186-
- completed
1187-
- type: string
1188-
enum:
1189-
- incomplete
1190-
- type: string
1191-
enum:
1192-
- in_progress
1193-
required:
1194-
- type
1195-
- id
1196-
- summary
1197-
example:
1198-
type: reasoning
1199-
id: reasoning-abc123
1200-
summary:
1201-
- type: summary_text
1202-
text: Analyzed the problem using first principles
12031175
OpenAIResponsesNonStreamingResponse:
12041176
type: object
12051177
properties:
@@ -3378,6 +3350,7 @@ components:
33783350
- function_call_output
33793351
id:
33803352
type: string
3353+
nullable: true
33813354
call_id:
33823355
type: string
33833356
output:
@@ -3386,7 +3359,6 @@ components:
33863359
$ref: '#/components/schemas/ToolCallStatus'
33873360
required:
33883361
- type
3389-
- id
33903362
- call_id
33913363
- output
33923364
description: The output from a function call execution

.speakeasy/out.openapi.yaml

Lines changed: 17 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ components:
224224
example:
225225
type: summary_text
226226
text: Analyzed the problem using first principles
227-
ResponsesOutputItemReasoning:
227+
OutputItemReasoning:
228228
type: object
229229
properties:
230230
type:
@@ -257,8 +257,19 @@ components:
257257
- in_progress
258258
required:
259259
- type
260+
- id
260261
- summary
261-
description: An output item containing reasoning
262+
example:
263+
type: reasoning
264+
id: reasoning-abc123
265+
summary:
266+
- type: summary_text
267+
text: Analyzed the problem using first principles
268+
ResponsesOutputItemReasoning:
269+
allOf:
270+
- $ref: '#/components/schemas/OutputItemReasoning'
271+
- type: object
272+
properties: {}
262273
example:
263274
id: reasoning-123
264275
type: reasoning
@@ -269,6 +280,7 @@ components:
269280
content:
270281
- type: reasoning_text
271282
text: First, we analyze the problem...
283+
description: An output item containing reasoning
272284
OutputItemFunctionCall:
273285
type: object
274286
properties:
@@ -662,6 +674,7 @@ components:
662674
format: mp3
663675
ToolCallStatus:
664676
type: string
677+
nullable: true
665678
enum:
666679
- in_progress
667680
- completed
@@ -760,6 +773,7 @@ components:
760773
- function_call_output
761774
id:
762775
type: string
776+
nullable: true
763777
call_id:
764778
type: string
765779
output:
@@ -768,7 +782,6 @@ components:
768782
$ref: '#/components/schemas/ToolCallStatus'
769783
required:
770784
- type
771-
- id
772785
- call_id
773786
- output
774787
- type: object
@@ -1173,47 +1186,6 @@ components:
11731186
format:
11741187
type: text
11751188
verbosity: medium
1176-
OutputItemReasoning:
1177-
type: object
1178-
properties:
1179-
type:
1180-
type: string
1181-
enum:
1182-
- reasoning
1183-
id:
1184-
type: string
1185-
content:
1186-
type: array
1187-
items:
1188-
$ref: '#/components/schemas/ReasoningTextContent'
1189-
summary:
1190-
type: array
1191-
items:
1192-
$ref: '#/components/schemas/ReasoningSummaryText'
1193-
encrypted_content:
1194-
type: string
1195-
nullable: true
1196-
status:
1197-
anyOf:
1198-
- type: string
1199-
enum:
1200-
- completed
1201-
- type: string
1202-
enum:
1203-
- incomplete
1204-
- type: string
1205-
enum:
1206-
- in_progress
1207-
required:
1208-
- type
1209-
- id
1210-
- summary
1211-
example:
1212-
type: reasoning
1213-
id: reasoning-abc123
1214-
summary:
1215-
- type: summary_text
1216-
text: Analyzed the problem using first principles
12171189
OpenAIResponsesNonStreamingResponse:
12181190
type: object
12191191
properties:
@@ -3394,6 +3366,7 @@ components:
33943366
- function_call_output
33953367
id:
33963368
type: string
3369+
nullable: true
33973370
call_id:
33983371
type: string
33993372
output:
@@ -3402,7 +3375,6 @@ components:
34023375
$ref: '#/components/schemas/ToolCallStatus'
34033376
required:
34043377
- type
3405-
- id
34063378
- call_id
34073379
- output
34083380
description: The output from a function call execution

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.653.1
1+
speakeasyVersion: 1.653.2
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:505db4e808f899250c7fa8a9021fef1356f2e50b85cdd1bb0c9c8fb0c18ee70a
6-
sourceBlobDigest: sha256:e9dacfcb19b3a3b855457d17b2fd129d604190b556d6510d103bcacd1da7010c
5+
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
6+
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
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:505db4e808f899250c7fa8a9021fef1356f2e50b85cdd1bb0c9c8fb0c18ee70a
16-
sourceBlobDigest: sha256:e9dacfcb19b3a3b855457d17b2fd129d604190b556d6510d103bcacd1da7010c
15+
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
16+
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
1717
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:a742a45e54f5e7d04f4128327c7558221fc95b7e012710a526ed8ec76b45f5ef
18+
codeSamplesRevisionDigest: sha256:0f9c73bf63e810bfa351faeb47ca62dbc21680abe1d4d1d1342d59738cccbb53
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

docs/models/openairesponsesinputfunctioncalloutput.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { OpenAIResponsesInputFunctionCallOutput } from "@openrouter/sdk/models";
77

88
let value: OpenAIResponsesInputFunctionCallOutput = {
99
type: "function_call_output",
10-
id: "<id>",
1110
callId: "<id>",
1211
output: "<value>",
1312
};
@@ -18,7 +17,7 @@ let value: OpenAIResponsesInputFunctionCallOutput = {
1817
| Field | Type | Required | Description | Example |
1918
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
2019
| `type` | [models.OpenAIResponsesInputTypeFunctionCallOutput](../models/openairesponsesinputtypefunctioncalloutput.md) | :heavy_check_mark: | N/A | |
21-
| `id` | *string* | :heavy_check_mark: | N/A | |
20+
| `id` | *string* | :heavy_minus_sign: | N/A | |
2221
| `callId` | *string* | :heavy_check_mark: | N/A | |
2322
| `output` | *string* | :heavy_check_mark: | N/A | |
2423
| `status` | [models.ToolCallStatus](../models/toolcallstatus.md) | :heavy_minus_sign: | N/A | completed |

docs/models/openairesponsesinputunion1.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const value: models.OpenAIResponsesInputMessage2 = {
3232
```typescript
3333
const value: models.OpenAIResponsesInputFunctionCallOutput = {
3434
type: "function_call_output",
35-
id: "<id>",
3635
callId: "<id>",
3736
output: "<value>",
3837
};

docs/models/openresponsesfunctioncalloutput.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { OpenResponsesFunctionCallOutput } from "@openrouter/sdk/models";
99

1010
let value: OpenResponsesFunctionCallOutput = {
1111
type: "function_call_output",
12-
id: "output-abc123",
1312
callId: "call-abc123",
1413
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
1514
};
@@ -20,7 +19,7 @@ let value: OpenResponsesFunctionCallOutput = {
2019
| Field | Type | Required | Description | Example |
2120
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
2221
| `type` | [models.OpenResponsesFunctionCallOutputType](../models/openresponsesfunctioncalloutputtype.md) | :heavy_check_mark: | N/A | |
23-
| `id` | *string* | :heavy_check_mark: | N/A | |
22+
| `id` | *string* | :heavy_minus_sign: | N/A | |
2423
| `callId` | *string* | :heavy_check_mark: | N/A | |
2524
| `output` | *string* | :heavy_check_mark: | N/A | |
2625
| `status` | [models.ToolCallStatus](../models/toolcallstatus.md) | :heavy_minus_sign: | N/A | completed |

docs/models/openresponsesinput1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const value: models.OpenResponsesFunctionToolCall = {
5858
```typescript
5959
const value: models.OpenResponsesFunctionCallOutput = {
6060
type: "function_call_output",
61-
id: "output-abc123",
6261
callId: "call-abc123",
6362
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
6463
};
@@ -85,10 +84,11 @@ const value: models.ResponsesOutputMessage = {
8584
```typescript
8685
const value: models.ResponsesOutputItemReasoning = {
8786
type: "reasoning",
87+
id: "reasoning-abc123",
8888
summary: [
8989
{
9090
type: "summary_text",
91-
text: "Analyzed the problem and found the optimal solution.",
91+
text: "Analyzed the problem using first principles",
9292
},
9393
],
9494
};

docs/models/responsesoutputitem.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ const value: models.ResponsesOutputMessage = {
2626
```typescript
2727
const value: models.ResponsesOutputItemReasoning = {
2828
type: "reasoning",
29+
id: "reasoning-abc123",
2930
summary: [
3031
{
3132
type: "summary_text",
32-
text: "Analyzed the problem and found the optimal solution.",
33+
text: "Analyzed the problem using first principles",
3334
},
3435
],
3536
};

0 commit comments

Comments
 (0)