@opencode-ai/ai 0.0.0-dev-17675 → 0.0.0-dev-17681
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/protocols/anthropic-messages.d.ts +22 -22
- package/dist/protocols/gemini.d.ts +3 -3
- package/dist/protocols/open-responses.d.ts +33 -33
- package/dist/protocols/openai-chat.d.ts +15 -15
- package/dist/protocols/openai-compatible-chat.d.ts +3 -3
- package/dist/protocols/openai-compatible-responses.d.ts +4 -4
- package/dist/protocols/openai-responses.d.ts +28 -28
- package/dist/protocols/utils/open-responses-options.d.ts +10 -5
- package/dist/protocols/utils/open-responses-options.js +4 -2
- package/dist/protocols/utils/openai-options.d.ts +6 -4
- package/dist/protocols/utils/openai-options.js +3 -3
- package/dist/providers/amazon-bedrock-mantle.d.ts +8 -8
- package/dist/providers/anthropic-compatible.d.ts +9 -9
- package/dist/providers/anthropic.d.ts +9 -9
- package/dist/providers/azure.d.ts +8 -8
- package/dist/providers/cloudflare.d.ts +9 -9
- package/dist/providers/google-vertex-chat.d.ts +3 -3
- package/dist/providers/google-vertex-messages.d.ts +9 -9
- package/dist/providers/google-vertex-responses.d.ts +4 -4
- package/dist/providers/google-vertex.d.ts +1 -1
- package/dist/providers/google.d.ts +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +4 -4
- package/dist/providers/openai-compatible.d.ts +3 -3
- package/dist/providers/openai.d.ts +8 -8
- package/dist/providers/openrouter.d.ts +10 -10
- package/dist/providers/xai.d.ts +8 -8
- package/dist/schema/errors.js +2 -1
- package/dist/schema/events.d.ts +5 -3
- package/dist/schema/events.js +5 -2
- package/dist/schema/ids.d.ts +0 -13
- package/dist/schema/ids.js +0 -9
- package/dist/schema/messages.d.ts +4 -0
- package/dist/schema/messages.js +5 -2
- package/dist/schema/options.d.ts +2 -0
- package/dist/schema/options.js +2 -1
- package/package.json +3 -3
|
@@ -111,11 +111,11 @@ declare const OpenAIResponsesBody: Schema.Struct<{
|
|
|
111
111
|
readonly prompt_cache_key: Schema.optional<Schema.String>;
|
|
112
112
|
readonly include: Schema.optional<Schema.$Array<Schema.declare<import("./utils/open-responses-options.js").ResponseIncludable, import("./utils/open-responses-options.js").ResponseIncludable>>>;
|
|
113
113
|
readonly reasoning: Schema.optional<Schema.Struct<{
|
|
114
|
-
readonly effort: Schema.optional<Schema.
|
|
114
|
+
readonly effort: Schema.optional<Schema.declare<import("./utils/open-responses-options.js").ReasoningEffort, import("./utils/open-responses-options.js").ReasoningEffort>>;
|
|
115
115
|
readonly summary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
116
116
|
}>>;
|
|
117
117
|
readonly text: Schema.optional<Schema.Struct<{
|
|
118
|
-
readonly verbosity: Schema.optional<Schema.
|
|
118
|
+
readonly verbosity: Schema.optional<Schema.declare<import("./utils/open-responses-options.js").TextVerbosity, import("./utils/open-responses-options.js").TextVerbosity>>;
|
|
119
119
|
}>>;
|
|
120
120
|
readonly max_output_tokens: Schema.optional<Schema.Number>;
|
|
121
121
|
readonly max_tool_calls: Schema.optional<Schema.Int>;
|
|
@@ -196,7 +196,7 @@ export declare const protocol: Protocol<{
|
|
|
196
196
|
readonly instructions?: string | undefined;
|
|
197
197
|
readonly reasoning?: {
|
|
198
198
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
199
|
-
readonly effort?:
|
|
199
|
+
readonly effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
200
200
|
} | undefined;
|
|
201
201
|
readonly tools?: readonly ({
|
|
202
202
|
readonly type: "function";
|
|
@@ -211,22 +211,22 @@ export declare const protocol: Protocol<{
|
|
|
211
211
|
readonly size?: string | undefined;
|
|
212
212
|
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
213
213
|
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
214
|
-
readonly quality?: "
|
|
214
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
215
215
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
216
216
|
readonly output_compression?: number | undefined;
|
|
217
217
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
218
218
|
readonly partial_images?: number | undefined;
|
|
219
219
|
})[] | undefined;
|
|
220
220
|
readonly text?: {
|
|
221
|
-
readonly verbosity?: "
|
|
221
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
222
222
|
} | undefined;
|
|
223
223
|
readonly temperature?: number | undefined;
|
|
224
|
-
readonly tool_choice?: "required" | "
|
|
224
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
225
225
|
readonly type: "function";
|
|
226
226
|
readonly name: string;
|
|
227
227
|
} | {
|
|
228
228
|
readonly type: "allowed_tools";
|
|
229
|
-
readonly mode: "required" | "
|
|
229
|
+
readonly mode: "required" | "auto" | "none";
|
|
230
230
|
readonly tools: readonly {
|
|
231
231
|
readonly type: "function";
|
|
232
232
|
readonly name: string;
|
|
@@ -246,17 +246,17 @@ export declare const protocol: Protocol<{
|
|
|
246
246
|
}, string, {
|
|
247
247
|
readonly [x: string]: unknown;
|
|
248
248
|
readonly type: string;
|
|
249
|
+
readonly status?: unknown;
|
|
250
|
+
readonly code?: string | null | undefined;
|
|
251
|
+
readonly message?: string | undefined;
|
|
252
|
+
readonly headers?: unknown;
|
|
253
|
+
readonly text?: string | undefined;
|
|
249
254
|
readonly error?: {
|
|
250
255
|
readonly type?: string | null | undefined;
|
|
251
256
|
readonly code?: string | null | undefined;
|
|
252
257
|
readonly message?: string | null | undefined;
|
|
253
258
|
readonly param?: string | null | undefined;
|
|
254
259
|
} | null | undefined;
|
|
255
|
-
readonly status?: unknown;
|
|
256
|
-
readonly code?: string | null | undefined;
|
|
257
|
-
readonly message?: string | undefined;
|
|
258
|
-
readonly headers?: unknown;
|
|
259
|
-
readonly text?: string | undefined;
|
|
260
260
|
readonly item?: {
|
|
261
261
|
readonly [x: string]: unknown;
|
|
262
262
|
readonly type: string;
|
|
@@ -269,13 +269,13 @@ export declare const protocol: Protocol<{
|
|
|
269
269
|
readonly delta?: string | undefined;
|
|
270
270
|
readonly response?: {
|
|
271
271
|
readonly [x: string]: unknown;
|
|
272
|
+
readonly id?: string | undefined;
|
|
272
273
|
readonly error?: {
|
|
273
274
|
readonly type?: string | null | undefined;
|
|
274
275
|
readonly code?: string | null | undefined;
|
|
275
276
|
readonly message?: string | null | undefined;
|
|
276
277
|
readonly param?: string | null | undefined;
|
|
277
278
|
} | null | undefined;
|
|
278
|
-
readonly id?: string | undefined;
|
|
279
279
|
readonly usage?: {
|
|
280
280
|
readonly input_tokens?: number | undefined;
|
|
281
281
|
readonly output_tokens?: number | undefined;
|
|
@@ -370,7 +370,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
370
370
|
readonly instructions?: string | undefined;
|
|
371
371
|
readonly reasoning?: {
|
|
372
372
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
373
|
-
readonly effort?:
|
|
373
|
+
readonly effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
374
374
|
} | undefined;
|
|
375
375
|
readonly tools?: readonly ({
|
|
376
376
|
readonly type: "function";
|
|
@@ -385,22 +385,22 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
385
385
|
readonly size?: string | undefined;
|
|
386
386
|
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
387
387
|
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
388
|
-
readonly quality?: "
|
|
388
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
389
389
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
390
390
|
readonly output_compression?: number | undefined;
|
|
391
391
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
392
392
|
readonly partial_images?: number | undefined;
|
|
393
393
|
})[] | undefined;
|
|
394
394
|
readonly text?: {
|
|
395
|
-
readonly verbosity?: "
|
|
395
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
396
396
|
} | undefined;
|
|
397
397
|
readonly temperature?: number | undefined;
|
|
398
|
-
readonly tool_choice?: "required" | "
|
|
398
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
399
399
|
readonly type: "function";
|
|
400
400
|
readonly name: string;
|
|
401
401
|
} | {
|
|
402
402
|
readonly type: "allowed_tools";
|
|
403
|
-
readonly mode: "required" | "
|
|
403
|
+
readonly mode: "required" | "auto" | "none";
|
|
404
404
|
readonly tools: readonly {
|
|
405
405
|
readonly type: "function";
|
|
406
406
|
readonly name: string;
|
|
@@ -490,7 +490,7 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
490
490
|
readonly instructions?: string | undefined;
|
|
491
491
|
readonly reasoning?: {
|
|
492
492
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
493
|
-
readonly effort?:
|
|
493
|
+
readonly effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
494
494
|
} | undefined;
|
|
495
495
|
readonly tools?: readonly ({
|
|
496
496
|
readonly type: "function";
|
|
@@ -505,22 +505,22 @@ export declare const transport: import("../route/transport/index.js").Transport<
|
|
|
505
505
|
readonly size?: string | undefined;
|
|
506
506
|
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
507
507
|
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
508
|
-
readonly quality?: "
|
|
508
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
509
509
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
510
510
|
readonly output_compression?: number | undefined;
|
|
511
511
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
512
512
|
readonly partial_images?: number | undefined;
|
|
513
513
|
})[] | undefined;
|
|
514
514
|
readonly text?: {
|
|
515
|
-
readonly verbosity?: "
|
|
515
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
516
516
|
} | undefined;
|
|
517
517
|
readonly temperature?: number | undefined;
|
|
518
|
-
readonly tool_choice?: "required" | "
|
|
518
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
519
519
|
readonly type: "function";
|
|
520
520
|
readonly name: string;
|
|
521
521
|
} | {
|
|
522
522
|
readonly type: "allowed_tools";
|
|
523
|
-
readonly mode: "required" | "
|
|
523
|
+
readonly mode: "required" | "auto" | "none";
|
|
524
524
|
readonly tools: readonly {
|
|
525
525
|
readonly type: "function";
|
|
526
526
|
readonly name: string;
|
|
@@ -610,7 +610,7 @@ export declare const route: Route<{
|
|
|
610
610
|
readonly instructions?: string | undefined;
|
|
611
611
|
readonly reasoning?: {
|
|
612
612
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
613
|
-
readonly effort?:
|
|
613
|
+
readonly effort?: import("./utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
614
614
|
} | undefined;
|
|
615
615
|
readonly tools?: readonly ({
|
|
616
616
|
readonly type: "function";
|
|
@@ -625,22 +625,22 @@ export declare const route: Route<{
|
|
|
625
625
|
readonly size?: string | undefined;
|
|
626
626
|
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
627
627
|
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
628
|
-
readonly quality?: "
|
|
628
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
629
629
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
630
630
|
readonly output_compression?: number | undefined;
|
|
631
631
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
632
632
|
readonly partial_images?: number | undefined;
|
|
633
633
|
})[] | undefined;
|
|
634
634
|
readonly text?: {
|
|
635
|
-
readonly verbosity?: "
|
|
635
|
+
readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
|
|
636
636
|
} | undefined;
|
|
637
637
|
readonly temperature?: number | undefined;
|
|
638
|
-
readonly tool_choice?: "required" | "
|
|
638
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
639
639
|
readonly type: "function";
|
|
640
640
|
readonly name: string;
|
|
641
641
|
} | {
|
|
642
642
|
readonly type: "allowed_tools";
|
|
643
|
-
readonly mode: "required" | "
|
|
643
|
+
readonly mode: "required" | "auto" | "none";
|
|
644
644
|
readonly tools: readonly {
|
|
645
645
|
readonly type: "function";
|
|
646
646
|
readonly name: string;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { LLMRequest } from "../../schema/index.js";
|
|
3
|
+
export declare const ReasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
4
|
+
export type ReasoningEffort = (typeof ReasoningEfforts)[number] | (string & {});
|
|
5
|
+
export declare const ReasoningEffort: Schema.declare<ReasoningEffort, ReasoningEffort>;
|
|
6
|
+
export declare const TextVerbosities: readonly ["low", "medium", "high"];
|
|
7
|
+
export type TextVerbosity = (typeof TextVerbosities)[number] | (string & {});
|
|
8
|
+
export declare const TextVerbosity: Schema.declare<TextVerbosity, TextVerbosity>;
|
|
3
9
|
export declare const ResponseIncludables: readonly ["file_search_call.results", "web_search_call.results", "web_search_call.action.sources", "message.input_image.image_url", "computer_call_output.output.image_url", "code_interpreter_call.outputs", "reasoning.encrypted_content", "message.output_text.logprobs"];
|
|
4
10
|
export type ResponseIncludable = (typeof ResponseIncludables)[number] | (string & {});
|
|
5
11
|
export declare const ServiceTiers: readonly ["auto", "default", "flex", "priority"];
|
|
6
12
|
export type ServiceTier = (typeof ServiceTiers)[number];
|
|
7
13
|
export declare const Truncations: readonly ["auto", "disabled"];
|
|
8
14
|
export type Truncation = (typeof Truncations)[number];
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const TextVerbositySchema: Schema.Literals<readonly ["low", "medium", "high"]>;
|
|
15
|
+
export declare const TextVerbositySchema: Schema.declare<TextVerbosity, TextVerbosity>;
|
|
11
16
|
export declare const ResponseIncludableSchema: Schema.declare<ResponseIncludable, ResponseIncludable>;
|
|
12
17
|
export declare const ServiceTierSchema: Schema.Literals<readonly ["auto", "default", "flex", "priority"]>;
|
|
13
18
|
export declare const TruncationSchema: Schema.Literals<readonly ["auto", "disabled"]>;
|
|
@@ -19,10 +24,10 @@ export type AllowedTools = typeof AllowedTools.Type;
|
|
|
19
24
|
export declare const Options: Schema.Struct<{
|
|
20
25
|
readonly instructions: Schema.optional<Schema.String>;
|
|
21
26
|
readonly store: Schema.optional<Schema.Boolean>;
|
|
22
|
-
readonly reasoningEffort: Schema.optional<Schema.
|
|
27
|
+
readonly reasoningEffort: Schema.optional<Schema.declare<ReasoningEffort, ReasoningEffort>>;
|
|
23
28
|
readonly reasoningSummary: Schema.optional<Schema.Literals<readonly ["auto", "concise", "detailed"]>>;
|
|
24
29
|
readonly include: Schema.optional<Schema.$Array<Schema.declare<ResponseIncludable, ResponseIncludable>>>;
|
|
25
|
-
readonly textVerbosity: Schema.optional<Schema.
|
|
30
|
+
readonly textVerbosity: Schema.optional<Schema.declare<TextVerbosity, TextVerbosity>>;
|
|
26
31
|
readonly serviceTier: Schema.optional<Schema.Literals<readonly ["auto", "default", "flex", "priority"]>>;
|
|
27
32
|
readonly truncation: Schema.optional<Schema.Literals<readonly ["auto", "disabled"]>>;
|
|
28
33
|
readonly allowedTools: Schema.optional<Schema.Struct<{
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Option, Schema } from "effect";
|
|
2
|
-
|
|
2
|
+
export const ReasoningEfforts = ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
3
|
+
export const ReasoningEffort = Schema.declare((value) => typeof value === "string", { title: "ReasoningEffort" });
|
|
4
|
+
export const TextVerbosities = ["low", "medium", "high"];
|
|
5
|
+
export const TextVerbosity = Schema.declare((value) => typeof value === "string", { title: "TextVerbosity" });
|
|
3
6
|
export const ResponseIncludables = [
|
|
4
7
|
"file_search_call.results",
|
|
5
8
|
"web_search_call.results",
|
|
@@ -12,7 +15,6 @@ export const ResponseIncludables = [
|
|
|
12
15
|
];
|
|
13
16
|
export const ServiceTiers = ["auto", "default", "flex", "priority"];
|
|
14
17
|
export const Truncations = ["auto", "disabled"];
|
|
15
|
-
export const ReasoningEffort = Schema.String;
|
|
16
18
|
export const TextVerbositySchema = TextVerbosity;
|
|
17
19
|
export const ResponseIncludableSchema = Schema.declare((value) => typeof value === "string", { title: "ResponseIncludable" });
|
|
18
20
|
export const ServiceTierSchema = Schema.Literals(ServiceTiers);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { OpenResponsesOptions } from "./open-responses-options.js";
|
|
2
2
|
export declare const OpenAIReasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
3
|
-
export type OpenAIReasoningEffort =
|
|
3
|
+
export type OpenAIReasoningEffort = OpenResponsesOptions.ReasoningEffort;
|
|
4
|
+
export declare const OpenAITextVerbosities: readonly ["low", "medium", "high"];
|
|
5
|
+
export type OpenAITextVerbosity = OpenResponsesOptions.TextVerbosity;
|
|
4
6
|
export declare const OpenAIResponseIncludables: readonly ["file_search_call.results", "web_search_call.results", "web_search_call.action.sources", "message.input_image.image_url", "computer_call_output.output.image_url", "code_interpreter_call.outputs", "reasoning.encrypted_content", "message.output_text.logprobs"];
|
|
5
7
|
export type OpenAIResponseIncludable = OpenResponsesOptions.ResponseIncludable;
|
|
6
8
|
export declare const OpenAIServiceTiers: readonly ["auto", "default", "flex", "priority"];
|
|
7
9
|
export type OpenAIServiceTier = OpenResponsesOptions.ServiceTier;
|
|
8
|
-
export declare const OpenAIReasoningEffort: import("effect/Schema").
|
|
9
|
-
export declare const OpenAITextVerbosity: import("effect/Schema").
|
|
10
|
+
export declare const OpenAIReasoningEffort: import("effect/Schema").declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>;
|
|
11
|
+
export declare const OpenAITextVerbosity: import("effect/Schema").declare<OpenResponsesOptions.TextVerbosity, OpenResponsesOptions.TextVerbosity>;
|
|
10
12
|
export declare const OpenAIResponseIncludable: import("effect/Schema").declare<OpenResponsesOptions.ResponseIncludable, OpenResponsesOptions.ResponseIncludable>;
|
|
11
13
|
export declare const OpenAIServiceTier: import("effect/Schema").Literals<readonly ["auto", "default", "flex", "priority"]>;
|
|
12
14
|
export declare const isReasoningEffort: (effort: unknown) => effort is OpenAIReasoningEffort;
|
|
13
|
-
export declare const resolve: (request: import("../../
|
|
15
|
+
export declare const resolve: (request: import("../../index.js").LLMRequest) => OpenResponsesOptions.Resolved;
|
|
14
16
|
export * as OpenAIOptions from "./openai-options.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReasoningEfforts } from "../../schema/index.js";
|
|
2
1
|
import { OpenResponsesOptions } from "./open-responses-options.js";
|
|
3
|
-
export const OpenAIReasoningEfforts = ReasoningEfforts;
|
|
2
|
+
export const OpenAIReasoningEfforts = OpenResponsesOptions.ReasoningEfforts;
|
|
3
|
+
export const OpenAITextVerbosities = OpenResponsesOptions.TextVerbosities;
|
|
4
4
|
// Mirrors OpenAI's `ResponseIncludable` union from the official SDK. Keep this
|
|
5
5
|
// in lockstep with `openai-node/src/resources/responses/responses.ts`.
|
|
6
6
|
export const OpenAIResponseIncludables = OpenResponsesOptions.ResponseIncludables;
|
|
7
7
|
export const OpenAIServiceTiers = OpenResponsesOptions.ServiceTiers;
|
|
8
8
|
export const OpenAIReasoningEffort = OpenResponsesOptions.ReasoningEffort;
|
|
9
|
-
export const OpenAITextVerbosity = OpenResponsesOptions.
|
|
9
|
+
export const OpenAITextVerbosity = OpenResponsesOptions.TextVerbosity;
|
|
10
10
|
export const OpenAIResponseIncludable = OpenResponsesOptions.ResponseIncludableSchema;
|
|
11
11
|
export const OpenAIServiceTier = OpenResponsesOptions.ServiceTierSchema;
|
|
12
12
|
export const isReasoningEffort = (effort) => typeof effort === "string";
|
|
@@ -81,7 +81,6 @@ export declare const routes: (RouteDef<{
|
|
|
81
81
|
} | undefined;
|
|
82
82
|
})[];
|
|
83
83
|
readonly stream: true;
|
|
84
|
-
readonly stop?: readonly string[] | undefined;
|
|
85
84
|
readonly max_completion_tokens?: number | undefined;
|
|
86
85
|
readonly max_tokens?: number | undefined;
|
|
87
86
|
readonly tools?: readonly {
|
|
@@ -98,9 +97,10 @@ export declare const routes: (RouteDef<{
|
|
|
98
97
|
readonly ttl?: string | undefined;
|
|
99
98
|
} | undefined;
|
|
100
99
|
}[] | undefined;
|
|
100
|
+
readonly stop?: readonly string[] | undefined;
|
|
101
101
|
readonly temperature?: number | undefined;
|
|
102
102
|
readonly seed?: number | undefined;
|
|
103
|
-
readonly tool_choice?: "required" | "
|
|
103
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
104
104
|
readonly type: "function";
|
|
105
105
|
readonly function: {
|
|
106
106
|
readonly name: string;
|
|
@@ -112,7 +112,7 @@ export declare const routes: (RouteDef<{
|
|
|
112
112
|
readonly include_usage: boolean;
|
|
113
113
|
} | undefined;
|
|
114
114
|
readonly prompt_cache_key?: string | undefined;
|
|
115
|
-
readonly reasoning_effort?:
|
|
115
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
116
116
|
readonly frequency_penalty?: number | undefined;
|
|
117
117
|
readonly presence_penalty?: number | undefined;
|
|
118
118
|
}, import("../route/transport/http.js").HttpPrepared<string>> | RouteDef<{
|
|
@@ -187,7 +187,7 @@ export declare const routes: (RouteDef<{
|
|
|
187
187
|
readonly instructions?: string | undefined;
|
|
188
188
|
readonly reasoning?: {
|
|
189
189
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
190
|
-
readonly effort?:
|
|
190
|
+
readonly effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
191
191
|
} | undefined;
|
|
192
192
|
readonly tools?: readonly ({
|
|
193
193
|
readonly type: "function";
|
|
@@ -202,22 +202,22 @@ export declare const routes: (RouteDef<{
|
|
|
202
202
|
readonly size?: string | undefined;
|
|
203
203
|
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
204
204
|
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
205
|
-
readonly quality?: "
|
|
205
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
206
206
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
207
207
|
readonly output_compression?: number | undefined;
|
|
208
208
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
209
209
|
readonly partial_images?: number | undefined;
|
|
210
210
|
})[] | undefined;
|
|
211
211
|
readonly text?: {
|
|
212
|
-
readonly verbosity?: "
|
|
212
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
213
213
|
} | undefined;
|
|
214
214
|
readonly temperature?: number | undefined;
|
|
215
|
-
readonly tool_choice?: "required" | "
|
|
215
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
216
216
|
readonly type: "function";
|
|
217
217
|
readonly name: string;
|
|
218
218
|
} | {
|
|
219
219
|
readonly type: "allowed_tools";
|
|
220
|
-
readonly mode: "required" | "
|
|
220
|
+
readonly mode: "required" | "auto" | "none";
|
|
221
221
|
readonly tools: readonly {
|
|
222
222
|
readonly type: "function";
|
|
223
223
|
readonly name: string;
|
|
@@ -159,14 +159,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
159
159
|
}[];
|
|
160
160
|
})[];
|
|
161
161
|
readonly stream: true;
|
|
162
|
-
readonly system?: readonly {
|
|
163
|
-
readonly type: "text";
|
|
164
|
-
readonly text: string;
|
|
165
|
-
readonly cache_control?: {
|
|
166
|
-
readonly type: "ephemeral";
|
|
167
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
168
|
-
} | undefined;
|
|
169
|
-
}[] | undefined;
|
|
170
162
|
readonly tools?: readonly {
|
|
171
163
|
readonly description: string;
|
|
172
164
|
readonly name: string;
|
|
@@ -178,6 +170,14 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
178
170
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
179
171
|
} | undefined;
|
|
180
172
|
}[] | undefined;
|
|
173
|
+
readonly system?: readonly {
|
|
174
|
+
readonly type: "text";
|
|
175
|
+
readonly text: string;
|
|
176
|
+
readonly cache_control?: {
|
|
177
|
+
readonly type: "ephemeral";
|
|
178
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}[] | undefined;
|
|
181
181
|
readonly temperature?: number | undefined;
|
|
182
182
|
readonly thinking?: {
|
|
183
183
|
readonly type: "enabled";
|
|
@@ -189,7 +189,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
189
189
|
readonly type: "disabled";
|
|
190
190
|
} | undefined;
|
|
191
191
|
readonly tool_choice?: {
|
|
192
|
-
readonly type: "
|
|
192
|
+
readonly type: "auto" | "none" | "any";
|
|
193
193
|
} | {
|
|
194
194
|
readonly type: "tool";
|
|
195
195
|
readonly name: string;
|
|
@@ -143,14 +143,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
143
143
|
}[];
|
|
144
144
|
})[];
|
|
145
145
|
readonly stream: true;
|
|
146
|
-
readonly system?: readonly {
|
|
147
|
-
readonly type: "text";
|
|
148
|
-
readonly text: string;
|
|
149
|
-
readonly cache_control?: {
|
|
150
|
-
readonly type: "ephemeral";
|
|
151
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
}[] | undefined;
|
|
154
146
|
readonly tools?: readonly {
|
|
155
147
|
readonly description: string;
|
|
156
148
|
readonly name: string;
|
|
@@ -162,6 +154,14 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
162
154
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
163
155
|
} | undefined;
|
|
164
156
|
}[] | undefined;
|
|
157
|
+
readonly system?: readonly {
|
|
158
|
+
readonly type: "text";
|
|
159
|
+
readonly text: string;
|
|
160
|
+
readonly cache_control?: {
|
|
161
|
+
readonly type: "ephemeral";
|
|
162
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
165
|
readonly temperature?: number | undefined;
|
|
166
166
|
readonly thinking?: {
|
|
167
167
|
readonly type: "enabled";
|
|
@@ -173,7 +173,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
173
173
|
readonly type: "disabled";
|
|
174
174
|
} | undefined;
|
|
175
175
|
readonly tool_choice?: {
|
|
176
|
-
readonly type: "
|
|
176
|
+
readonly type: "auto" | "none" | "any";
|
|
177
177
|
} | {
|
|
178
178
|
readonly type: "tool";
|
|
179
179
|
readonly name: string;
|
|
@@ -84,7 +84,6 @@ export declare const routes: (RouteDef<{
|
|
|
84
84
|
} | undefined;
|
|
85
85
|
})[];
|
|
86
86
|
readonly stream: true;
|
|
87
|
-
readonly stop?: readonly string[] | undefined;
|
|
88
87
|
readonly max_completion_tokens?: number | undefined;
|
|
89
88
|
readonly max_tokens?: number | undefined;
|
|
90
89
|
readonly tools?: readonly {
|
|
@@ -101,9 +100,10 @@ export declare const routes: (RouteDef<{
|
|
|
101
100
|
readonly ttl?: string | undefined;
|
|
102
101
|
} | undefined;
|
|
103
102
|
}[] | undefined;
|
|
103
|
+
readonly stop?: readonly string[] | undefined;
|
|
104
104
|
readonly temperature?: number | undefined;
|
|
105
105
|
readonly seed?: number | undefined;
|
|
106
|
-
readonly tool_choice?: "required" | "
|
|
106
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
107
107
|
readonly type: "function";
|
|
108
108
|
readonly function: {
|
|
109
109
|
readonly name: string;
|
|
@@ -115,7 +115,7 @@ export declare const routes: (RouteDef<{
|
|
|
115
115
|
readonly include_usage: boolean;
|
|
116
116
|
} | undefined;
|
|
117
117
|
readonly prompt_cache_key?: string | undefined;
|
|
118
|
-
readonly reasoning_effort?:
|
|
118
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
119
119
|
readonly frequency_penalty?: number | undefined;
|
|
120
120
|
readonly presence_penalty?: number | undefined;
|
|
121
121
|
}, import("../route/transport/http.js").HttpPrepared<string>> | RouteDef<{
|
|
@@ -190,7 +190,7 @@ export declare const routes: (RouteDef<{
|
|
|
190
190
|
readonly instructions?: string | undefined;
|
|
191
191
|
readonly reasoning?: {
|
|
192
192
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
193
|
-
readonly effort?:
|
|
193
|
+
readonly effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
194
194
|
} | undefined;
|
|
195
195
|
readonly tools?: readonly ({
|
|
196
196
|
readonly type: "function";
|
|
@@ -205,22 +205,22 @@ export declare const routes: (RouteDef<{
|
|
|
205
205
|
readonly size?: string | undefined;
|
|
206
206
|
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
207
207
|
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
208
|
-
readonly quality?: "
|
|
208
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
209
209
|
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
210
210
|
readonly output_compression?: number | undefined;
|
|
211
211
|
readonly input_fidelity?: "low" | "high" | undefined;
|
|
212
212
|
readonly partial_images?: number | undefined;
|
|
213
213
|
})[] | undefined;
|
|
214
214
|
readonly text?: {
|
|
215
|
-
readonly verbosity?: "
|
|
215
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
216
216
|
} | undefined;
|
|
217
217
|
readonly temperature?: number | undefined;
|
|
218
|
-
readonly tool_choice?: "required" | "
|
|
218
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
219
219
|
readonly type: "function";
|
|
220
220
|
readonly name: string;
|
|
221
221
|
} | {
|
|
222
222
|
readonly type: "allowed_tools";
|
|
223
|
-
readonly mode: "required" | "
|
|
223
|
+
readonly mode: "required" | "auto" | "none";
|
|
224
224
|
readonly tools: readonly {
|
|
225
225
|
readonly type: "function";
|
|
226
226
|
readonly name: string;
|
|
@@ -90,7 +90,6 @@ export declare const aiGatewayRoute: import("../route/client.js").Route<{
|
|
|
90
90
|
} | undefined;
|
|
91
91
|
})[];
|
|
92
92
|
readonly stream: true;
|
|
93
|
-
readonly stop?: readonly string[] | undefined;
|
|
94
93
|
readonly max_completion_tokens?: number | undefined;
|
|
95
94
|
readonly max_tokens?: number | undefined;
|
|
96
95
|
readonly tools?: readonly {
|
|
@@ -107,9 +106,10 @@ export declare const aiGatewayRoute: import("../route/client.js").Route<{
|
|
|
107
106
|
readonly ttl?: string | undefined;
|
|
108
107
|
} | undefined;
|
|
109
108
|
}[] | undefined;
|
|
109
|
+
readonly stop?: readonly string[] | undefined;
|
|
110
110
|
readonly temperature?: number | undefined;
|
|
111
111
|
readonly seed?: number | undefined;
|
|
112
|
-
readonly tool_choice?: "required" | "
|
|
112
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
113
113
|
readonly type: "function";
|
|
114
114
|
readonly function: {
|
|
115
115
|
readonly name: string;
|
|
@@ -121,7 +121,7 @@ export declare const aiGatewayRoute: import("../route/client.js").Route<{
|
|
|
121
121
|
readonly include_usage: boolean;
|
|
122
122
|
} | undefined;
|
|
123
123
|
readonly prompt_cache_key?: string | undefined;
|
|
124
|
-
readonly reasoning_effort?:
|
|
124
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
125
125
|
readonly frequency_penalty?: number | undefined;
|
|
126
126
|
readonly presence_penalty?: number | undefined;
|
|
127
127
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
@@ -187,7 +187,6 @@ export declare const workersAIRoute: import("../route/client.js").Route<{
|
|
|
187
187
|
} | undefined;
|
|
188
188
|
})[];
|
|
189
189
|
readonly stream: true;
|
|
190
|
-
readonly stop?: readonly string[] | undefined;
|
|
191
190
|
readonly max_completion_tokens?: number | undefined;
|
|
192
191
|
readonly max_tokens?: number | undefined;
|
|
193
192
|
readonly tools?: readonly {
|
|
@@ -204,9 +203,10 @@ export declare const workersAIRoute: import("../route/client.js").Route<{
|
|
|
204
203
|
readonly ttl?: string | undefined;
|
|
205
204
|
} | undefined;
|
|
206
205
|
}[] | undefined;
|
|
206
|
+
readonly stop?: readonly string[] | undefined;
|
|
207
207
|
readonly temperature?: number | undefined;
|
|
208
208
|
readonly seed?: number | undefined;
|
|
209
|
-
readonly tool_choice?: "required" | "
|
|
209
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
210
210
|
readonly type: "function";
|
|
211
211
|
readonly function: {
|
|
212
212
|
readonly name: string;
|
|
@@ -218,7 +218,7 @@ export declare const workersAIRoute: import("../route/client.js").Route<{
|
|
|
218
218
|
readonly include_usage: boolean;
|
|
219
219
|
} | undefined;
|
|
220
220
|
readonly prompt_cache_key?: string | undefined;
|
|
221
|
-
readonly reasoning_effort?:
|
|
221
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
222
222
|
readonly frequency_penalty?: number | undefined;
|
|
223
223
|
readonly presence_penalty?: number | undefined;
|
|
224
224
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
@@ -284,7 +284,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
284
284
|
} | undefined;
|
|
285
285
|
})[];
|
|
286
286
|
readonly stream: true;
|
|
287
|
-
readonly stop?: readonly string[] | undefined;
|
|
288
287
|
readonly max_completion_tokens?: number | undefined;
|
|
289
288
|
readonly max_tokens?: number | undefined;
|
|
290
289
|
readonly tools?: readonly {
|
|
@@ -301,9 +300,10 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
301
300
|
readonly ttl?: string | undefined;
|
|
302
301
|
} | undefined;
|
|
303
302
|
}[] | undefined;
|
|
303
|
+
readonly stop?: readonly string[] | undefined;
|
|
304
304
|
readonly temperature?: number | undefined;
|
|
305
305
|
readonly seed?: number | undefined;
|
|
306
|
-
readonly tool_choice?: "required" | "
|
|
306
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
307
307
|
readonly type: "function";
|
|
308
308
|
readonly function: {
|
|
309
309
|
readonly name: string;
|
|
@@ -315,7 +315,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
315
315
|
readonly include_usage: boolean;
|
|
316
316
|
} | undefined;
|
|
317
317
|
readonly prompt_cache_key?: string | undefined;
|
|
318
|
-
readonly reasoning_effort?:
|
|
318
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
319
319
|
readonly frequency_penalty?: number | undefined;
|
|
320
320
|
readonly presence_penalty?: number | undefined;
|
|
321
321
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
|
@@ -80,7 +80,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
80
80
|
} | undefined;
|
|
81
81
|
})[];
|
|
82
82
|
readonly stream: true;
|
|
83
|
-
readonly stop?: readonly string[] | undefined;
|
|
84
83
|
readonly max_completion_tokens?: number | undefined;
|
|
85
84
|
readonly max_tokens?: number | undefined;
|
|
86
85
|
readonly tools?: readonly {
|
|
@@ -97,9 +96,10 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
97
96
|
readonly ttl?: string | undefined;
|
|
98
97
|
} | undefined;
|
|
99
98
|
}[] | undefined;
|
|
99
|
+
readonly stop?: readonly string[] | undefined;
|
|
100
100
|
readonly temperature?: number | undefined;
|
|
101
101
|
readonly seed?: number | undefined;
|
|
102
|
-
readonly tool_choice?: "required" | "
|
|
102
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
103
103
|
readonly type: "function";
|
|
104
104
|
readonly function: {
|
|
105
105
|
readonly name: string;
|
|
@@ -111,7 +111,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
111
111
|
readonly include_usage: boolean;
|
|
112
112
|
} | undefined;
|
|
113
113
|
readonly prompt_cache_key?: string | undefined;
|
|
114
|
-
readonly reasoning_effort?:
|
|
114
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
115
115
|
readonly frequency_penalty?: number | undefined;
|
|
116
116
|
readonly presence_penalty?: number | undefined;
|
|
117
117
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|