Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8b6cd71c-ea04-44da-af45-e43968b5928d
management:
docChecksum: f377d4ed11037a871b8c253c1d75f132
docChecksum: 9660e86ea28560265285c6e3773bd061
docVersion: 1.0.0
speakeasyVersion: 1.653.1
generationVersion: 2.748.0
releaseVersion: 0.1.9
configChecksum: 7a9a57baedc1855f3964d13bf5247b93
speakeasyVersion: 1.653.2
generationVersion: 2.748.4
releaseVersion: 0.1.10
configChecksum: 0b94228b2cc806ed198c6d48069286d9
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: false
typescript:
version: 0.1.9
version: 0.1.10
acceptHeaderEnum: false
additionalDependencies:
dependencies: {}
Expand Down
62 changes: 17 additions & 45 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ components:
example:
type: summary_text
text: Analyzed the problem using first principles
ResponsesOutputItemReasoning:
OutputItemReasoning:
type: object
properties:
type:
Expand Down Expand Up @@ -256,8 +256,19 @@ components:
- in_progress
required:
- type
- id
- summary
description: An output item containing reasoning
example:
type: reasoning
id: reasoning-abc123
summary:
- type: summary_text
text: Analyzed the problem using first principles
ResponsesOutputItemReasoning:
allOf:
- $ref: '#/components/schemas/OutputItemReasoning'
- type: object
properties: {}
example:
id: reasoning-123
type: reasoning
Expand All @@ -268,6 +279,7 @@ components:
content:
- type: reasoning_text
text: First, we analyze the problem...
description: An output item containing reasoning
OutputItemFunctionCall:
type: object
properties:
Expand Down Expand Up @@ -655,6 +667,7 @@ components:
format: mp3
ToolCallStatus:
type: string
nullable: true
enum:
- in_progress
- completed
Expand Down Expand Up @@ -752,6 +765,7 @@ components:
- function_call_output
id:
type: string
nullable: true
call_id:
type: string
output:
Expand All @@ -760,7 +774,6 @@ components:
$ref: '#/components/schemas/ToolCallStatus'
required:
- type
- id
- call_id
- output
- type: object
Expand Down Expand Up @@ -1159,47 +1172,6 @@ components:
format:
type: text
verbosity: medium
OutputItemReasoning:
type: object
properties:
type:
type: string
enum:
- reasoning
id:
type: string
content:
type: array
items:
$ref: '#/components/schemas/ReasoningTextContent'
summary:
type: array
items:
$ref: '#/components/schemas/ReasoningSummaryText'
encrypted_content:
type: string
nullable: true
status:
anyOf:
- type: string
enum:
- completed
- type: string
enum:
- incomplete
- type: string
enum:
- in_progress
required:
- type
- id
- summary
example:
type: reasoning
id: reasoning-abc123
summary:
- type: summary_text
text: Analyzed the problem using first principles
OpenAIResponsesNonStreamingResponse:
type: object
properties:
Expand Down Expand Up @@ -3378,6 +3350,7 @@ components:
- function_call_output
id:
type: string
nullable: true
call_id:
type: string
output:
Expand All @@ -3386,7 +3359,6 @@ components:
$ref: '#/components/schemas/ToolCallStatus'
required:
- type
- id
- call_id
- output
description: The output from a function call execution
Expand Down
62 changes: 17 additions & 45 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ components:
example:
type: summary_text
text: Analyzed the problem using first principles
ResponsesOutputItemReasoning:
OutputItemReasoning:
type: object
properties:
type:
Expand Down Expand Up @@ -257,8 +257,19 @@ components:
- in_progress
required:
- type
- id
- summary
description: An output item containing reasoning
example:
type: reasoning
id: reasoning-abc123
summary:
- type: summary_text
text: Analyzed the problem using first principles
ResponsesOutputItemReasoning:
allOf:
- $ref: '#/components/schemas/OutputItemReasoning'
- type: object
properties: {}
example:
id: reasoning-123
type: reasoning
Expand All @@ -269,6 +280,7 @@ components:
content:
- type: reasoning_text
text: First, we analyze the problem...
description: An output item containing reasoning
OutputItemFunctionCall:
type: object
properties:
Expand Down Expand Up @@ -662,6 +674,7 @@ components:
format: mp3
ToolCallStatus:
type: string
nullable: true
enum:
- in_progress
- completed
Expand Down Expand Up @@ -760,6 +773,7 @@ components:
- function_call_output
id:
type: string
nullable: true
call_id:
type: string
output:
Expand All @@ -768,7 +782,6 @@ components:
$ref: '#/components/schemas/ToolCallStatus'
required:
- type
- id
- call_id
- output
- type: object
Expand Down Expand Up @@ -1173,47 +1186,6 @@ components:
format:
type: text
verbosity: medium
OutputItemReasoning:
type: object
properties:
type:
type: string
enum:
- reasoning
id:
type: string
content:
type: array
items:
$ref: '#/components/schemas/ReasoningTextContent'
summary:
type: array
items:
$ref: '#/components/schemas/ReasoningSummaryText'
encrypted_content:
type: string
nullable: true
status:
anyOf:
- type: string
enum:
- completed
- type: string
enum:
- incomplete
- type: string
enum:
- in_progress
required:
- type
- id
- summary
example:
type: reasoning
id: reasoning-abc123
summary:
- type: summary_text
text: Analyzed the problem using first principles
OpenAIResponsesNonStreamingResponse:
type: object
properties:
Expand Down Expand Up @@ -3394,6 +3366,7 @@ components:
- function_call_output
id:
type: string
nullable: true
call_id:
type: string
output:
Expand All @@ -3402,7 +3375,6 @@ components:
$ref: '#/components/schemas/ToolCallStatus'
required:
- type
- id
- call_id
- output
description: The output from a function call execution
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.653.1
speakeasyVersion: 1.653.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:505db4e808f899250c7fa8a9021fef1356f2e50b85cdd1bb0c9c8fb0c18ee70a
sourceBlobDigest: sha256:e9dacfcb19b3a3b855457d17b2fd129d604190b556d6510d103bcacd1da7010c
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
tags:
- latest
- staging
Expand All @@ -12,10 +12,10 @@ targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:505db4e808f899250c7fa8a9021fef1356f2e50b85cdd1bb0c9c8fb0c18ee70a
sourceBlobDigest: sha256:e9dacfcb19b3a3b855457d17b2fd129d604190b556d6510d103bcacd1da7010c
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:a742a45e54f5e7d04f4128327c7558221fc95b7e012710a526ed8ec76b45f5ef
codeSamplesRevisionDigest: sha256:0f9c73bf63e810bfa351faeb47ca62dbc21680abe1d4d1d1342d59738cccbb53
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
3 changes: 1 addition & 2 deletions docs/models/openairesponsesinputfunctioncalloutput.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { OpenAIResponsesInputFunctionCallOutput } from "@openrouter/sdk/models";

let value: OpenAIResponsesInputFunctionCallOutput = {
type: "function_call_output",
id: "<id>",
callId: "<id>",
output: "<value>",
};
Expand All @@ -18,7 +17,7 @@ let value: OpenAIResponsesInputFunctionCallOutput = {
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `type` | [models.OpenAIResponsesInputTypeFunctionCallOutput](../models/openairesponsesinputtypefunctioncalloutput.md) | :heavy_check_mark: | N/A | |
| `id` | *string* | :heavy_check_mark: | N/A | |
| `id` | *string* | :heavy_minus_sign: | N/A | |
| `callId` | *string* | :heavy_check_mark: | N/A | |
| `output` | *string* | :heavy_check_mark: | N/A | |
| `status` | [models.ToolCallStatus](../models/toolcallstatus.md) | :heavy_minus_sign: | N/A | completed |
1 change: 0 additions & 1 deletion docs/models/openairesponsesinputunion1.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const value: models.OpenAIResponsesInputMessage2 = {
```typescript
const value: models.OpenAIResponsesInputFunctionCallOutput = {
type: "function_call_output",
id: "<id>",
callId: "<id>",
output: "<value>",
};
Expand Down
3 changes: 1 addition & 2 deletions docs/models/openresponsesfunctioncalloutput.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { OpenResponsesFunctionCallOutput } from "@openrouter/sdk/models";

let value: OpenResponsesFunctionCallOutput = {
type: "function_call_output",
id: "output-abc123",
callId: "call-abc123",
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
};
Expand All @@ -20,7 +19,7 @@ let value: OpenResponsesFunctionCallOutput = {
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `type` | [models.OpenResponsesFunctionCallOutputType](../models/openresponsesfunctioncalloutputtype.md) | :heavy_check_mark: | N/A | |
| `id` | *string* | :heavy_check_mark: | N/A | |
| `id` | *string* | :heavy_minus_sign: | N/A | |
| `callId` | *string* | :heavy_check_mark: | N/A | |
| `output` | *string* | :heavy_check_mark: | N/A | |
| `status` | [models.ToolCallStatus](../models/toolcallstatus.md) | :heavy_minus_sign: | N/A | completed |
4 changes: 2 additions & 2 deletions docs/models/openresponsesinput1.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const value: models.OpenResponsesFunctionToolCall = {
```typescript
const value: models.OpenResponsesFunctionCallOutput = {
type: "function_call_output",
id: "output-abc123",
callId: "call-abc123",
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
};
Expand All @@ -85,10 +84,11 @@ const value: models.ResponsesOutputMessage = {
```typescript
const value: models.ResponsesOutputItemReasoning = {
type: "reasoning",
id: "reasoning-abc123",
summary: [
{
type: "summary_text",
text: "Analyzed the problem and found the optimal solution.",
text: "Analyzed the problem using first principles",
},
],
};
Expand Down
3 changes: 2 additions & 1 deletion docs/models/responsesoutputitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ const value: models.ResponsesOutputMessage = {
```typescript
const value: models.ResponsesOutputItemReasoning = {
type: "reasoning",
id: "reasoning-abc123",
summary: [
{
type: "summary_text",
text: "Analyzed the problem and found the optimal solution.",
text: "Analyzed the problem using first principles",
},
],
};
Expand Down
Loading
Loading