Skip to content

Commit 030aa9b

Browse files
committed
.37
1 parent e00be78 commit 030aa9b

File tree

114 files changed

+3248
-3330
lines changed

Some content is hidden

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

114 files changed

+3248
-3330
lines changed

.speakeasy/gen.lock

Lines changed: 57 additions & 60 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generation:
2727
generateNewTests: true
2828
skipResponseBodyAssertions: false
2929
typescript:
30-
version: 0.0.0-beta.33
30+
version: 0.0.0-beta.37
3131
acceptHeaderEnum: false
3232
additionalDependencies:
3333
dependencies: {}

.speakeasy/in.openapi.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,21 @@ components:
820820
- type: string
821821
enum:
822822
- required
823-
- $ref: '#/components/schemas/ToolChoiceTypes'
824-
- $ref: '#/components/schemas/ToolChoiceFunction'
823+
- allOf:
824+
- $ref: '#/components/schemas/ToolChoiceTypes'
825+
- type: object
826+
properties: {}
827+
description: Tool choice by type
828+
example:
829+
type: file_search
830+
- allOf:
831+
- $ref: '#/components/schemas/ToolChoiceFunction'
832+
- type: object
833+
properties: {}
834+
description: Specific function tool choice
835+
example:
836+
type: function
837+
name: get_weather
825838
description: Tool choice configuration
826839
example: auto
827840
ResponsePrompt:
@@ -2817,7 +2830,7 @@ components:
28172830
context_length: 8192
28182831
architecture:
28192832
tokenizer: GPT
2820-
instruct_type: chatcompletion
2833+
instruct_type: chatml
28212834
modality: text
28222835
input_modalities:
28232836
- text
@@ -3091,7 +3104,7 @@ components:
30913104
- top_p
30923105
- frequency_penalty
30933106
- presence_penalty
3094-
status: active
3107+
status: 0
30953108
uptime_last_30m: 0.99
30963109
supports_implicit_caching: true
30973110
KeyInfo:
@@ -4195,7 +4208,7 @@ paths:
41954208
/api/alpha/responses:
41964209
post:
41974210
operationId: sendResponsesRequest
4198-
x-speakeasy-name-override: sendRequest
4211+
x-speakeasy-name-override: send
41994212
x-speakeasy-stream-request-field: stream
42004213
tags:
42014214
- beta.responses
@@ -4206,7 +4219,11 @@ paths:
42064219
content:
42074220
application/json:
42084221
schema:
4209-
$ref: '#/components/schemas/OpenAIResponsesRequest'
4222+
allOf:
4223+
- $ref: '#/components/schemas/OpenAIResponsesRequest'
4224+
- type: object
4225+
properties: {}
4226+
description: Request schema for OpenAI-compatible Responses API
42104227
responses:
42114228
'200':
42124229
description: Successful response

.speakeasy/out.openapi.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,21 @@ components:
820820
- type: string
821821
enum:
822822
- required
823-
- $ref: '#/components/schemas/ToolChoiceTypes'
824-
- $ref: '#/components/schemas/ToolChoiceFunction'
823+
- allOf:
824+
- $ref: '#/components/schemas/ToolChoiceTypes'
825+
- type: object
826+
properties: {}
827+
description: Tool choice by type
828+
example:
829+
type: file_search
830+
- allOf:
831+
- $ref: '#/components/schemas/ToolChoiceFunction'
832+
- type: object
833+
properties: {}
834+
description: Specific function tool choice
835+
example:
836+
type: function
837+
name: get_weather
825838
description: Tool choice configuration
826839
example: auto
827840
ResponsePrompt:
@@ -2817,7 +2830,7 @@ components:
28172830
context_length: 8192
28182831
architecture:
28192832
tokenizer: GPT
2820-
instruct_type: chatcompletion
2833+
instruct_type: chatml
28212834
modality: text
28222835
input_modalities:
28232836
- text
@@ -3091,7 +3104,7 @@ components:
30913104
- top_p
30923105
- frequency_penalty
30933106
- presence_penalty
3094-
status: active
3107+
status: 0
30953108
uptime_last_30m: 0.99
30963109
supports_implicit_caching: true
30973110
KeyInfo:
@@ -4195,7 +4208,7 @@ paths:
41954208
/api/alpha/responses:
41964209
post:
41974210
operationId: sendResponsesRequest
4198-
x-speakeasy-name-override: sendRequest
4211+
x-speakeasy-name-override: send
41994212
x-speakeasy-stream-request-field: stream
42004213
tags:
42014214
- beta.responses
@@ -4206,7 +4219,11 @@ paths:
42064219
content:
42074220
application/json:
42084221
schema:
4209-
$ref: '#/components/schemas/OpenAIResponsesRequest'
4222+
allOf:
4223+
- $ref: '#/components/schemas/OpenAIResponsesRequest'
4224+
- type: object
4225+
properties: {}
4226+
description: Request schema for OpenAI-compatible Responses API
42104227
responses:
42114228
'200':
42124229
description: Successful response

FUNCTIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ specific category of applications.
2020

2121
```typescript
2222
import { OpenRouterCore } from "@openrouter/sdk/core.js";
23-
import { betaResponsesSendRequest } from "@openrouter/sdk/funcs/betaResponsesSendRequest.js";
23+
import { betaResponsesSend } from "@openrouter/sdk/funcs/betaResponsesSend.js";
2424

2525
// Use `OpenRouterCore` for best tree-shaking performance.
2626
// You can create one instance of it to use across an application.
@@ -29,7 +29,7 @@ const openRouter = new OpenRouterCore({
2929
});
3030

3131
async function run() {
32-
const res = await betaResponsesSendRequest(openRouter, {
32+
const res = await betaResponsesSend(openRouter, {
3333
input: "Hello, how can I help you today?",
3434
instructions: "<value>",
3535
metadata: {
@@ -104,7 +104,7 @@ async function run() {
104104
const { value: result } = res;
105105
console.log(result);
106106
} else {
107-
console.log("betaResponsesSendRequest failed:", res.error);
107+
console.log("betaResponsesSend failed:", res.error);
108108
}
109109
}
110110

REACT_QUERY.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ Query.
112112
[use-mutation]: https://tanstack.com/query/v5/docs/framework/react/reference/useMutation
113113

114114
```tsx
115-
import { useBetaResponsesSendRequestMutation } from "@openrouter/sdk/react-query/betaResponsesSendRequest.js";
115+
import { useBetaResponsesSendMutation } from "@openrouter/sdk/react-query/betaResponsesSend.js";
116116

117117
export function Example() {
118-
const { mutate, status } = useBetaResponsesSendRequestMutation();
118+
const { mutate, status } = useBetaResponsesSendMutation();
119119

120120
return (
121121
<form
@@ -210,10 +210,10 @@ Since the underlying SDK handles request timeouts and retries, there are a few
210210
more options provided by the mutation hooks to control these behaviors.
211211

212212
```tsx
213-
import { useBetaResponsesSendRequestMutation } from "@openrouter/sdk/react-query/betaResponsesSendRequest.js";
213+
import { useBetaResponsesSendMutation } from "@openrouter/sdk/react-query/betaResponsesSend.js";
214214

215215
export function ExampleWithOptions() {
216-
const { mutate, status } = useBetaResponsesSendRequestMutation({
216+
const { mutate, status } = useBetaResponsesSendMutation({
217217
// TanStack Query options:
218218
networkMode: "online",
219219
gcTime: 5 * 60 * 1000, // 5 minutes

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const openRouter = new OpenRouter({
8989
});
9090

9191
async function run() {
92-
const result = await openRouter.beta.responses.sendRequest({
92+
const result = await openRouter.beta.responses.send({
9393
input: "Hello, how can I help you today?",
9494
instructions: "<value>",
9595
metadata: {
@@ -190,7 +190,7 @@ const openRouter = new OpenRouter({
190190
});
191191

192192
async function run() {
193-
const result = await openRouter.beta.responses.sendRequest({
193+
const result = await openRouter.beta.responses.send({
194194
input: "Hello, how can I help you today?",
195195
instructions: "<value>",
196196
metadata: {
@@ -316,7 +316,7 @@ run();
316316

317317
#### [beta.responses](docs/sdks/responses/README.md)
318318

319-
* [sendRequest](docs/sdks/responses/README.md#sendrequest) - Submit a response request
319+
* [send](docs/sdks/responses/README.md#send) - Submit a response request
320320

321321
### [chat](docs/sdks/chat/README.md)
322322

@@ -388,7 +388,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
388388
- [`apiKeysGetCurrentKeyMetadata`](docs/sdks/apikeys/README.md#getcurrentkeymetadata) - Get current API key
389389
- [`apiKeysList`](docs/sdks/apikeys/README.md#list) - List API keys
390390
- [`apiKeysUpdate`](docs/sdks/apikeys/README.md#update) - Update an API key
391-
- [`betaResponsesSendRequest`](docs/sdks/responses/README.md#sendrequest) - Submit a response request
391+
- [`betaResponsesSend`](docs/sdks/responses/README.md#send) - Submit a response request
392392
- [`chatSend`](docs/sdks/chat/README.md#send) - Create a chat completion
393393
- [`completionsGenerate`](docs/sdks/completions/README.md#generate) - Create a completion
394394
- [`creditsAddCoinbaseCharge`](docs/sdks/credits/README.md#addcoinbasecharge) - Create a Coinbase charge for crypto payment
@@ -437,7 +437,7 @@ To learn about this feature and how to get started, check
437437
- [`useApiKeysGetCurrentKeyMetadata`](docs/sdks/apikeys/README.md#getcurrentkeymetadata) - Get current API key
438438
- [`useApiKeysList`](docs/sdks/apikeys/README.md#list) - List API keys
439439
- [`useApiKeysUpdateMutation`](docs/sdks/apikeys/README.md#update) - Update an API key
440-
- [`useBetaResponsesSendRequestMutation`](docs/sdks/responses/README.md#sendrequest) - Submit a response request
440+
- [`useBetaResponsesSendMutation`](docs/sdks/responses/README.md#send) - Submit a response request
441441
- [`useChatSendMutation`](docs/sdks/chat/README.md#send) - Create a chat completion
442442
- [`useCompletionsGenerateMutation`](docs/sdks/completions/README.md#generate) - Create a completion
443443
- [`useCreditsAddCoinbaseChargeMutation`](docs/sdks/credits/README.md#addcoinbasecharge) - Create a Coinbase charge for crypto payment
@@ -474,7 +474,7 @@ const openRouter = new OpenRouter({
474474
});
475475

476476
async function run() {
477-
const result = await openRouter.beta.responses.sendRequest({
477+
const result = await openRouter.beta.responses.send({
478478
input: "Hello, how can I help you today?",
479479
instructions: "<value>",
480480
metadata: {
@@ -572,7 +572,7 @@ const openRouter = new OpenRouter({
572572
});
573573

574574
async function run() {
575-
const result = await openRouter.beta.responses.sendRequest({
575+
const result = await openRouter.beta.responses.send({
576576
input: "Hello, how can I help you today?",
577577
instructions: "<value>",
578578
metadata: {
@@ -682,7 +682,7 @@ const openRouter = new OpenRouter({
682682
});
683683

684684
async function run() {
685-
const result = await openRouter.beta.responses.sendRequest({
685+
const result = await openRouter.beta.responses.send({
686686
input: "Hello, how can I help you today?",
687687
instructions: "<value>",
688688
metadata: {
@@ -788,7 +788,7 @@ const openRouter = new OpenRouter({
788788

789789
async function run() {
790790
try {
791-
const result = await openRouter.beta.responses.sendRequest({
791+
const result = await openRouter.beta.responses.send({
792792
input: "Hello, how can I help you today?",
793793
instructions: "<value>",
794794
metadata: {

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const openRouter = new OpenRouter({
77
});
88

99
async function run() {
10-
const result = await openRouter.beta.responses.sendRequest({
10+
const result = await openRouter.beta.responses.send({
1111
input: "Hello, how can I help you today?",
1212
instructions: "<value>",
1313
metadata: {

docs/models/chatgenerationparams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ let value: ChatGenerationParams = {
5454
type: "function",
5555
function: {
5656
name: "<value>",
57-
description: "mealy ew industrialize colossal",
57+
description:
58+
"rural toward while since midst finally tributary consequently underneath till",
5859
parameters: {
5960
"key": "<value>",
6061
"key1": "<value>",
61-
"key2": "<value>",
6262
},
6363
strict: false,
6464
},

docs/models/endpointslist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let value: EndpointsList = {
4545
| `pricing` | [models.EndpointsListPricing](../models/endpointslistpricing.md) | :heavy_check_mark: | N/A |
4646
| `providerName` | [models.ProviderName](../models/providername.md) | :heavy_check_mark: | N/A |
4747
| `tag` | *string* | :heavy_check_mark: | N/A |
48-
| `quantization` | [models.EndpointsListQuantization](../models/endpointslistquantization.md) | :heavy_check_mark: | N/A |
48+
| `quantization` | [models.Quantization](../models/quantization.md) | :heavy_check_mark: | N/A |
4949
| `maxCompletionTokens` | *number* | :heavy_check_mark: | N/A |
5050
| `maxPromptTokens` | *number* | :heavy_check_mark: | N/A |
5151
| `supportedParameters` | [models.EndpointsListSupportedParameter](../models/endpointslistsupportedparameter.md)[] | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)