@opencode-ai/ai 0.0.0-beta-18045 → 0.0.0-beta-18135
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 +259 -17
- package/dist/protocols/anthropic-messages.js +337 -24
- package/dist/protocols/gemini.d.ts +4 -31
- package/dist/protocols/gemini.js +23 -4
- package/dist/protocols/open-responses.d.ts +8 -4
- package/dist/protocols/open-responses.js +73 -38
- package/dist/protocols/openai-chat.d.ts +25 -11
- package/dist/protocols/openai-chat.js +124 -8
- package/dist/protocols/openai-compatible-chat.d.ts +3 -1
- package/dist/protocols/openai-compatible-responses.d.ts +1 -1
- package/dist/protocols/openai-responses.d.ts +5 -5
- package/dist/protocols/openai-responses.js +21 -5
- package/dist/protocols/utils/bedrock-media.d.ts +1 -0
- package/dist/protocols/xai-responses.d.ts +1 -1
- package/dist/protocols/xai-responses.js +2 -10
- package/dist/providers/amazon-bedrock-mantle.d.ts +4 -2
- package/dist/providers/anthropic-compatible.d.ts +75 -4
- package/dist/providers/anthropic.d.ts +75 -4
- package/dist/providers/azure.d.ts +4 -2
- package/dist/providers/cloudflare.d.ts +9 -3
- package/dist/providers/google-vertex-chat.d.ts +3 -1
- package/dist/providers/google-vertex-messages.d.ts +75 -4
- package/dist/providers/google-vertex-responses.d.ts +1 -1
- 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 +1 -1
- package/dist/providers/openai-compatible.d.ts +3 -1
- package/dist/providers/openai.d.ts +4 -2
- package/dist/providers/openrouter.d.ts +11 -3
- package/dist/providers/xai.d.ts +3 -1
- package/dist/schema/messages.d.ts +4 -0
- package/dist/schema/messages.js +2 -0
- package/dist/schema/options.d.ts +5 -0
- package/dist/schema/options.js +5 -0
- package/package.json +3 -3
|
@@ -25,22 +25,46 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
25
25
|
readonly type: "base64";
|
|
26
26
|
readonly media_type: string;
|
|
27
27
|
readonly data: string;
|
|
28
|
+
} | {
|
|
29
|
+
readonly type: "url";
|
|
30
|
+
readonly url: string;
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "file";
|
|
33
|
+
readonly file_id: string;
|
|
28
34
|
};
|
|
29
35
|
readonly cache_control?: {
|
|
30
36
|
readonly type: "ephemeral";
|
|
31
37
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
32
38
|
} | undefined;
|
|
39
|
+
readonly transformations?: {
|
|
40
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
41
|
+
} | undefined;
|
|
33
42
|
} | {
|
|
34
43
|
readonly type: "document";
|
|
35
44
|
readonly source: {
|
|
36
45
|
readonly type: "base64";
|
|
37
46
|
readonly media_type: "application/pdf";
|
|
38
47
|
readonly data: string;
|
|
48
|
+
} | {
|
|
49
|
+
readonly type: "text";
|
|
50
|
+
readonly media_type: "text/plain";
|
|
51
|
+
readonly data: string;
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "url";
|
|
54
|
+
readonly url: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "file";
|
|
57
|
+
readonly file_id: string;
|
|
39
58
|
};
|
|
59
|
+
readonly title?: string | undefined;
|
|
60
|
+
readonly context?: string | undefined;
|
|
40
61
|
readonly cache_control?: {
|
|
41
62
|
readonly type: "ephemeral";
|
|
42
63
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
43
64
|
} | undefined;
|
|
65
|
+
readonly citations?: {
|
|
66
|
+
readonly enabled: boolean;
|
|
67
|
+
} | undefined;
|
|
44
68
|
} | {
|
|
45
69
|
readonly type: "tool_result";
|
|
46
70
|
readonly content: string | readonly ({
|
|
@@ -56,22 +80,46 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
56
80
|
readonly type: "base64";
|
|
57
81
|
readonly media_type: string;
|
|
58
82
|
readonly data: string;
|
|
83
|
+
} | {
|
|
84
|
+
readonly type: "url";
|
|
85
|
+
readonly url: string;
|
|
86
|
+
} | {
|
|
87
|
+
readonly type: "file";
|
|
88
|
+
readonly file_id: string;
|
|
59
89
|
};
|
|
60
90
|
readonly cache_control?: {
|
|
61
91
|
readonly type: "ephemeral";
|
|
62
92
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
63
93
|
} | undefined;
|
|
94
|
+
readonly transformations?: {
|
|
95
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
96
|
+
} | undefined;
|
|
64
97
|
} | {
|
|
65
98
|
readonly type: "document";
|
|
66
99
|
readonly source: {
|
|
67
100
|
readonly type: "base64";
|
|
68
101
|
readonly media_type: "application/pdf";
|
|
69
102
|
readonly data: string;
|
|
103
|
+
} | {
|
|
104
|
+
readonly type: "text";
|
|
105
|
+
readonly media_type: "text/plain";
|
|
106
|
+
readonly data: string;
|
|
107
|
+
} | {
|
|
108
|
+
readonly type: "url";
|
|
109
|
+
readonly url: string;
|
|
110
|
+
} | {
|
|
111
|
+
readonly type: "file";
|
|
112
|
+
readonly file_id: string;
|
|
70
113
|
};
|
|
114
|
+
readonly title?: string | undefined;
|
|
115
|
+
readonly context?: string | undefined;
|
|
71
116
|
readonly cache_control?: {
|
|
72
117
|
readonly type: "ephemeral";
|
|
73
118
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
74
119
|
} | undefined;
|
|
120
|
+
readonly citations?: {
|
|
121
|
+
readonly enabled: boolean;
|
|
122
|
+
} | undefined;
|
|
75
123
|
})[];
|
|
76
124
|
readonly tool_use_id: string;
|
|
77
125
|
readonly cache_control?: {
|
|
@@ -118,11 +166,11 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
118
166
|
} | {
|
|
119
167
|
readonly type: "thinking";
|
|
120
168
|
readonly thinking: string;
|
|
169
|
+
readonly signature: string;
|
|
121
170
|
readonly cache_control?: {
|
|
122
171
|
readonly type: "ephemeral";
|
|
123
172
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
124
173
|
} | undefined;
|
|
125
|
-
readonly signature?: string | undefined;
|
|
126
174
|
} | {
|
|
127
175
|
readonly data: string;
|
|
128
176
|
readonly type: "redacted_thinking";
|
|
@@ -143,6 +191,9 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
143
191
|
}[];
|
|
144
192
|
})[];
|
|
145
193
|
readonly stream: true;
|
|
194
|
+
readonly metadata?: {
|
|
195
|
+
readonly user_id?: string | null | undefined;
|
|
196
|
+
} | undefined;
|
|
146
197
|
readonly tools?: readonly {
|
|
147
198
|
readonly description: string;
|
|
148
199
|
readonly name: string;
|
|
@@ -173,18 +224,38 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
173
224
|
} | {
|
|
174
225
|
readonly type: "disabled";
|
|
175
226
|
} | undefined;
|
|
227
|
+
readonly service_tier?: "auto" | "standard_only" | undefined;
|
|
228
|
+
readonly container?: string | {
|
|
229
|
+
readonly id?: string | null | undefined;
|
|
230
|
+
readonly skills?: readonly {
|
|
231
|
+
readonly [x: string]: unknown;
|
|
232
|
+
}[] | null | undefined;
|
|
233
|
+
} | null | undefined;
|
|
234
|
+
readonly inference_geo?: string | null | undefined;
|
|
235
|
+
readonly cache_control?: {
|
|
236
|
+
readonly type: "ephemeral";
|
|
237
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
readonly output_config?: {
|
|
240
|
+
readonly format?: {
|
|
241
|
+
readonly type: "json_schema";
|
|
242
|
+
readonly schema: {
|
|
243
|
+
readonly [x: string]: unknown;
|
|
244
|
+
};
|
|
245
|
+
} | null | undefined;
|
|
246
|
+
readonly effort?: string | undefined;
|
|
247
|
+
} | undefined;
|
|
176
248
|
readonly tool_choice?: {
|
|
177
249
|
readonly type: "auto" | "none" | "any";
|
|
250
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
178
251
|
} | {
|
|
179
252
|
readonly type: "tool";
|
|
180
253
|
readonly name: string;
|
|
254
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
181
255
|
} | undefined;
|
|
182
256
|
readonly top_p?: number | undefined;
|
|
183
257
|
readonly top_k?: number | undefined;
|
|
184
258
|
readonly stop_sequences?: readonly string[] | undefined;
|
|
185
|
-
readonly output_config?: {
|
|
186
|
-
readonly effort?: string | undefined;
|
|
187
|
-
} | undefined;
|
|
188
259
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
|
189
260
|
export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
|
|
190
261
|
readonly baseURL?: string;
|
|
@@ -88,11 +88,12 @@ export declare const routes: (RouteDef<{
|
|
|
88
88
|
readonly max_tokens?: number | undefined;
|
|
89
89
|
readonly tools?: readonly {
|
|
90
90
|
readonly function: {
|
|
91
|
-
readonly name: string;
|
|
92
91
|
readonly description: string;
|
|
92
|
+
readonly name: string;
|
|
93
93
|
readonly parameters: {
|
|
94
94
|
readonly [x: string]: unknown;
|
|
95
95
|
};
|
|
96
|
+
readonly strict?: boolean | undefined;
|
|
96
97
|
};
|
|
97
98
|
readonly type: "function";
|
|
98
99
|
readonly cache_control?: {
|
|
@@ -116,6 +117,7 @@ export declare const routes: (RouteDef<{
|
|
|
116
117
|
} | undefined;
|
|
117
118
|
readonly prompt_cache_key?: string | undefined;
|
|
118
119
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
120
|
+
readonly tool_stream?: boolean | undefined;
|
|
119
121
|
readonly frequency_penalty?: number | undefined;
|
|
120
122
|
readonly presence_penalty?: number | undefined;
|
|
121
123
|
}, import("../route/transport/http.js").HttpPrepared<string>> | RouteDef<{
|
|
@@ -217,6 +219,7 @@ export declare const routes: (RouteDef<{
|
|
|
217
219
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
218
220
|
} | undefined;
|
|
219
221
|
readonly temperature?: number | undefined;
|
|
222
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
220
223
|
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
221
224
|
readonly type: "function";
|
|
222
225
|
readonly name: string;
|
|
@@ -242,7 +245,6 @@ export declare const routes: (RouteDef<{
|
|
|
242
245
|
readonly presence_penalty?: number | undefined;
|
|
243
246
|
readonly safety_identifier?: string | undefined;
|
|
244
247
|
readonly top_logprobs?: number | undefined;
|
|
245
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
246
248
|
readonly max_output_tokens?: number | undefined;
|
|
247
249
|
readonly max_tool_calls?: number | undefined;
|
|
248
250
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
@@ -94,11 +94,12 @@ export declare const aiGatewayRoute: import("../route/client.js").Route<{
|
|
|
94
94
|
readonly max_tokens?: number | undefined;
|
|
95
95
|
readonly tools?: readonly {
|
|
96
96
|
readonly function: {
|
|
97
|
-
readonly name: string;
|
|
98
97
|
readonly description: string;
|
|
98
|
+
readonly name: string;
|
|
99
99
|
readonly parameters: {
|
|
100
100
|
readonly [x: string]: unknown;
|
|
101
101
|
};
|
|
102
|
+
readonly strict?: boolean | undefined;
|
|
102
103
|
};
|
|
103
104
|
readonly type: "function";
|
|
104
105
|
readonly cache_control?: {
|
|
@@ -122,6 +123,7 @@ export declare const aiGatewayRoute: import("../route/client.js").Route<{
|
|
|
122
123
|
} | undefined;
|
|
123
124
|
readonly prompt_cache_key?: string | undefined;
|
|
124
125
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
126
|
+
readonly tool_stream?: boolean | undefined;
|
|
125
127
|
readonly frequency_penalty?: number | undefined;
|
|
126
128
|
readonly presence_penalty?: number | undefined;
|
|
127
129
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
@@ -191,11 +193,12 @@ export declare const workersAIRoute: import("../route/client.js").Route<{
|
|
|
191
193
|
readonly max_tokens?: number | undefined;
|
|
192
194
|
readonly tools?: readonly {
|
|
193
195
|
readonly function: {
|
|
194
|
-
readonly name: string;
|
|
195
196
|
readonly description: string;
|
|
197
|
+
readonly name: string;
|
|
196
198
|
readonly parameters: {
|
|
197
199
|
readonly [x: string]: unknown;
|
|
198
200
|
};
|
|
201
|
+
readonly strict?: boolean | undefined;
|
|
199
202
|
};
|
|
200
203
|
readonly type: "function";
|
|
201
204
|
readonly cache_control?: {
|
|
@@ -219,6 +222,7 @@ export declare const workersAIRoute: import("../route/client.js").Route<{
|
|
|
219
222
|
} | undefined;
|
|
220
223
|
readonly prompt_cache_key?: string | undefined;
|
|
221
224
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
225
|
+
readonly tool_stream?: boolean | undefined;
|
|
222
226
|
readonly frequency_penalty?: number | undefined;
|
|
223
227
|
readonly presence_penalty?: number | undefined;
|
|
224
228
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
@@ -288,11 +292,12 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
288
292
|
readonly max_tokens?: number | undefined;
|
|
289
293
|
readonly tools?: readonly {
|
|
290
294
|
readonly function: {
|
|
291
|
-
readonly name: string;
|
|
292
295
|
readonly description: string;
|
|
296
|
+
readonly name: string;
|
|
293
297
|
readonly parameters: {
|
|
294
298
|
readonly [x: string]: unknown;
|
|
295
299
|
};
|
|
300
|
+
readonly strict?: boolean | undefined;
|
|
296
301
|
};
|
|
297
302
|
readonly type: "function";
|
|
298
303
|
readonly cache_control?: {
|
|
@@ -316,6 +321,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
316
321
|
} | undefined;
|
|
317
322
|
readonly prompt_cache_key?: string | undefined;
|
|
318
323
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
324
|
+
readonly tool_stream?: boolean | undefined;
|
|
319
325
|
readonly frequency_penalty?: number | undefined;
|
|
320
326
|
readonly presence_penalty?: number | undefined;
|
|
321
327
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
|
@@ -84,11 +84,12 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
84
84
|
readonly max_tokens?: number | undefined;
|
|
85
85
|
readonly tools?: readonly {
|
|
86
86
|
readonly function: {
|
|
87
|
-
readonly name: string;
|
|
88
87
|
readonly description: string;
|
|
88
|
+
readonly name: string;
|
|
89
89
|
readonly parameters: {
|
|
90
90
|
readonly [x: string]: unknown;
|
|
91
91
|
};
|
|
92
|
+
readonly strict?: boolean | undefined;
|
|
92
93
|
};
|
|
93
94
|
readonly type: "function";
|
|
94
95
|
readonly cache_control?: {
|
|
@@ -112,6 +113,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
112
113
|
} | undefined;
|
|
113
114
|
readonly prompt_cache_key?: string | undefined;
|
|
114
115
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
116
|
+
readonly tool_stream?: boolean | undefined;
|
|
115
117
|
readonly frequency_penalty?: number | undefined;
|
|
116
118
|
readonly presence_penalty?: number | undefined;
|
|
117
119
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
|
@@ -23,6 +23,9 @@ export interface Settings extends ProviderPackage.Settings {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const routes: Route<{
|
|
25
25
|
anthropic_version: "vertex-2023-10-16";
|
|
26
|
+
metadata?: {
|
|
27
|
+
readonly user_id?: string | null | undefined;
|
|
28
|
+
} | undefined;
|
|
26
29
|
max_tokens: number;
|
|
27
30
|
tools?: readonly {
|
|
28
31
|
readonly description: string;
|
|
@@ -58,22 +61,46 @@ export declare const routes: Route<{
|
|
|
58
61
|
readonly type: "base64";
|
|
59
62
|
readonly media_type: string;
|
|
60
63
|
readonly data: string;
|
|
64
|
+
} | {
|
|
65
|
+
readonly type: "url";
|
|
66
|
+
readonly url: string;
|
|
67
|
+
} | {
|
|
68
|
+
readonly type: "file";
|
|
69
|
+
readonly file_id: string;
|
|
61
70
|
};
|
|
62
71
|
readonly cache_control?: {
|
|
63
72
|
readonly type: "ephemeral";
|
|
64
73
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
65
74
|
} | undefined;
|
|
75
|
+
readonly transformations?: {
|
|
76
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
77
|
+
} | undefined;
|
|
66
78
|
} | {
|
|
67
79
|
readonly type: "document";
|
|
68
80
|
readonly source: {
|
|
69
81
|
readonly type: "base64";
|
|
70
82
|
readonly media_type: "application/pdf";
|
|
71
83
|
readonly data: string;
|
|
84
|
+
} | {
|
|
85
|
+
readonly type: "text";
|
|
86
|
+
readonly media_type: "text/plain";
|
|
87
|
+
readonly data: string;
|
|
88
|
+
} | {
|
|
89
|
+
readonly type: "url";
|
|
90
|
+
readonly url: string;
|
|
91
|
+
} | {
|
|
92
|
+
readonly type: "file";
|
|
93
|
+
readonly file_id: string;
|
|
72
94
|
};
|
|
95
|
+
readonly title?: string | undefined;
|
|
96
|
+
readonly context?: string | undefined;
|
|
73
97
|
readonly cache_control?: {
|
|
74
98
|
readonly type: "ephemeral";
|
|
75
99
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
76
100
|
} | undefined;
|
|
101
|
+
readonly citations?: {
|
|
102
|
+
readonly enabled: boolean;
|
|
103
|
+
} | undefined;
|
|
77
104
|
} | {
|
|
78
105
|
readonly type: "tool_result";
|
|
79
106
|
readonly content: string | readonly ({
|
|
@@ -89,22 +116,46 @@ export declare const routes: Route<{
|
|
|
89
116
|
readonly type: "base64";
|
|
90
117
|
readonly media_type: string;
|
|
91
118
|
readonly data: string;
|
|
119
|
+
} | {
|
|
120
|
+
readonly type: "url";
|
|
121
|
+
readonly url: string;
|
|
122
|
+
} | {
|
|
123
|
+
readonly type: "file";
|
|
124
|
+
readonly file_id: string;
|
|
92
125
|
};
|
|
93
126
|
readonly cache_control?: {
|
|
94
127
|
readonly type: "ephemeral";
|
|
95
128
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
96
129
|
} | undefined;
|
|
130
|
+
readonly transformations?: {
|
|
131
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
132
|
+
} | undefined;
|
|
97
133
|
} | {
|
|
98
134
|
readonly type: "document";
|
|
99
135
|
readonly source: {
|
|
100
136
|
readonly type: "base64";
|
|
101
137
|
readonly media_type: "application/pdf";
|
|
102
138
|
readonly data: string;
|
|
139
|
+
} | {
|
|
140
|
+
readonly type: "text";
|
|
141
|
+
readonly media_type: "text/plain";
|
|
142
|
+
readonly data: string;
|
|
143
|
+
} | {
|
|
144
|
+
readonly type: "url";
|
|
145
|
+
readonly url: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly type: "file";
|
|
148
|
+
readonly file_id: string;
|
|
103
149
|
};
|
|
150
|
+
readonly title?: string | undefined;
|
|
151
|
+
readonly context?: string | undefined;
|
|
104
152
|
readonly cache_control?: {
|
|
105
153
|
readonly type: "ephemeral";
|
|
106
154
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
107
155
|
} | undefined;
|
|
156
|
+
readonly citations?: {
|
|
157
|
+
readonly enabled: boolean;
|
|
158
|
+
} | undefined;
|
|
108
159
|
})[];
|
|
109
160
|
readonly tool_use_id: string;
|
|
110
161
|
readonly cache_control?: {
|
|
@@ -151,11 +202,11 @@ export declare const routes: Route<{
|
|
|
151
202
|
} | {
|
|
152
203
|
readonly type: "thinking";
|
|
153
204
|
readonly thinking: string;
|
|
205
|
+
readonly signature: string;
|
|
154
206
|
readonly cache_control?: {
|
|
155
207
|
readonly type: "ephemeral";
|
|
156
208
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
157
209
|
} | undefined;
|
|
158
|
-
readonly signature?: string | undefined;
|
|
159
210
|
} | {
|
|
160
211
|
readonly data: string;
|
|
161
212
|
readonly type: "redacted_thinking";
|
|
@@ -187,18 +238,38 @@ export declare const routes: Route<{
|
|
|
187
238
|
} | {
|
|
188
239
|
readonly type: "disabled";
|
|
189
240
|
} | undefined;
|
|
241
|
+
service_tier?: "auto" | "standard_only" | undefined;
|
|
242
|
+
container?: string | {
|
|
243
|
+
readonly id?: string | null | undefined;
|
|
244
|
+
readonly skills?: readonly {
|
|
245
|
+
readonly [x: string]: unknown;
|
|
246
|
+
}[] | null | undefined;
|
|
247
|
+
} | null | undefined;
|
|
248
|
+
inference_geo?: string | null | undefined;
|
|
249
|
+
cache_control?: {
|
|
250
|
+
readonly type: "ephemeral";
|
|
251
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
output_config?: {
|
|
254
|
+
readonly format?: {
|
|
255
|
+
readonly type: "json_schema";
|
|
256
|
+
readonly schema: {
|
|
257
|
+
readonly [x: string]: unknown;
|
|
258
|
+
};
|
|
259
|
+
} | null | undefined;
|
|
260
|
+
readonly effort?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
190
262
|
tool_choice?: {
|
|
191
263
|
readonly type: "auto" | "none" | "any";
|
|
264
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
192
265
|
} | {
|
|
193
266
|
readonly type: "tool";
|
|
194
267
|
readonly name: string;
|
|
268
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
195
269
|
} | undefined;
|
|
196
270
|
top_p?: number | undefined;
|
|
197
271
|
top_k?: number | undefined;
|
|
198
272
|
stop_sequences?: readonly string[] | undefined;
|
|
199
|
-
output_config?: {
|
|
200
|
-
readonly effort?: string | undefined;
|
|
201
|
-
} | undefined;
|
|
202
273
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
|
203
274
|
export declare const configure: (input?: Config) => {
|
|
204
275
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -107,6 +107,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
107
107
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
108
108
|
} | undefined;
|
|
109
109
|
readonly temperature?: number | undefined;
|
|
110
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
110
111
|
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
111
112
|
readonly type: "function";
|
|
112
113
|
readonly name: string;
|
|
@@ -130,7 +131,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
130
131
|
readonly presence_penalty?: number | undefined;
|
|
131
132
|
readonly safety_identifier?: string | undefined;
|
|
132
133
|
readonly top_logprobs?: number | undefined;
|
|
133
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
134
134
|
readonly max_output_tokens?: number | undefined;
|
|
135
135
|
readonly max_tool_calls?: number | undefined;
|
|
136
136
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
@@ -68,6 +68,7 @@ export declare const routes: Route<{
|
|
|
68
68
|
} | undefined;
|
|
69
69
|
}[];
|
|
70
70
|
}[] | undefined;
|
|
71
|
+
readonly serviceTier?: string | undefined;
|
|
71
72
|
readonly toolConfig?: {
|
|
72
73
|
readonly functionCallingConfig: {
|
|
73
74
|
readonly mode: "AUTO" | "NONE" | "ANY";
|
|
@@ -79,7 +80,6 @@ export declare const routes: Route<{
|
|
|
79
80
|
readonly category: string;
|
|
80
81
|
readonly threshold: string;
|
|
81
82
|
}[] | undefined;
|
|
82
|
-
readonly serviceTier?: string | undefined;
|
|
83
83
|
readonly labels?: {
|
|
84
84
|
readonly [x: string]: string;
|
|
85
85
|
} | undefined;
|
|
@@ -49,6 +49,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
49
49
|
} | undefined;
|
|
50
50
|
}[];
|
|
51
51
|
}[] | undefined;
|
|
52
|
+
readonly serviceTier?: string | undefined;
|
|
52
53
|
readonly toolConfig?: {
|
|
53
54
|
readonly functionCallingConfig: {
|
|
54
55
|
readonly mode: "AUTO" | "NONE" | "ANY";
|
|
@@ -60,7 +61,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
60
61
|
readonly category: string;
|
|
61
62
|
readonly threshold: string;
|
|
62
63
|
}[] | undefined;
|
|
63
|
-
readonly serviceTier?: string | undefined;
|
|
64
64
|
readonly labels?: {
|
|
65
65
|
readonly [x: string]: string;
|
|
66
66
|
} | undefined;
|
|
@@ -105,6 +105,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
105
105
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
106
106
|
} | undefined;
|
|
107
107
|
readonly temperature?: number | undefined;
|
|
108
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
108
109
|
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
109
110
|
readonly type: "function";
|
|
110
111
|
readonly name: string;
|
|
@@ -128,7 +129,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
128
129
|
readonly presence_penalty?: number | undefined;
|
|
129
130
|
readonly safety_identifier?: string | undefined;
|
|
130
131
|
readonly top_logprobs?: number | undefined;
|
|
131
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
132
132
|
readonly max_output_tokens?: number | undefined;
|
|
133
133
|
readonly max_tool_calls?: number | undefined;
|
|
134
134
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
@@ -85,11 +85,12 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
85
85
|
readonly max_tokens?: number | undefined;
|
|
86
86
|
readonly tools?: readonly {
|
|
87
87
|
readonly function: {
|
|
88
|
-
readonly name: string;
|
|
89
88
|
readonly description: string;
|
|
89
|
+
readonly name: string;
|
|
90
90
|
readonly parameters: {
|
|
91
91
|
readonly [x: string]: unknown;
|
|
92
92
|
};
|
|
93
|
+
readonly strict?: boolean | undefined;
|
|
93
94
|
};
|
|
94
95
|
readonly type: "function";
|
|
95
96
|
readonly cache_control?: {
|
|
@@ -113,6 +114,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
113
114
|
} | undefined;
|
|
114
115
|
readonly prompt_cache_key?: string | undefined;
|
|
115
116
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
117
|
+
readonly tool_stream?: boolean | undefined;
|
|
116
118
|
readonly frequency_penalty?: number | undefined;
|
|
117
119
|
readonly presence_penalty?: number | undefined;
|
|
118
120
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
|
@@ -73,11 +73,12 @@ export declare const routes: (Route<{
|
|
|
73
73
|
readonly max_tokens?: number | undefined;
|
|
74
74
|
readonly tools?: readonly {
|
|
75
75
|
readonly function: {
|
|
76
|
-
readonly name: string;
|
|
77
76
|
readonly description: string;
|
|
77
|
+
readonly name: string;
|
|
78
78
|
readonly parameters: {
|
|
79
79
|
readonly [x: string]: unknown;
|
|
80
80
|
};
|
|
81
|
+
readonly strict?: boolean | undefined;
|
|
81
82
|
};
|
|
82
83
|
readonly type: "function";
|
|
83
84
|
readonly cache_control?: {
|
|
@@ -101,6 +102,7 @@ export declare const routes: (Route<{
|
|
|
101
102
|
} | undefined;
|
|
102
103
|
readonly prompt_cache_key?: string | undefined;
|
|
103
104
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
105
|
+
readonly tool_stream?: boolean | undefined;
|
|
104
106
|
readonly frequency_penalty?: number | undefined;
|
|
105
107
|
readonly presence_penalty?: number | undefined;
|
|
106
108
|
}, import("../route/transport/http.js").HttpPrepared<string>> | Route<{
|
|
@@ -202,6 +204,7 @@ export declare const routes: (Route<{
|
|
|
202
204
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
203
205
|
} | undefined;
|
|
204
206
|
readonly temperature?: number | undefined;
|
|
207
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
205
208
|
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
206
209
|
readonly type: "function";
|
|
207
210
|
readonly name: string;
|
|
@@ -227,7 +230,6 @@ export declare const routes: (Route<{
|
|
|
227
230
|
readonly presence_penalty?: number | undefined;
|
|
228
231
|
readonly safety_identifier?: string | undefined;
|
|
229
232
|
readonly top_logprobs?: number | undefined;
|
|
230
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
231
233
|
readonly max_output_tokens?: number | undefined;
|
|
232
234
|
readonly max_tool_calls?: number | undefined;
|
|
233
235
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
@@ -152,6 +152,7 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
|
|
|
152
152
|
readonly name: Schema.String;
|
|
153
153
|
readonly description: Schema.String;
|
|
154
154
|
readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
155
|
+
readonly strict: Schema.optional<Schema.Boolean>;
|
|
155
156
|
}>;
|
|
156
157
|
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
157
158
|
readonly type: Schema.Literal<"ephemeral">;
|
|
@@ -171,6 +172,7 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
|
|
|
171
172
|
store: Schema.optional<Schema.Boolean>;
|
|
172
173
|
prompt_cache_key: Schema.optional<Schema.String>;
|
|
173
174
|
reasoning_effort: Schema.optional<Schema.declare<import("../protocols/utils/open-responses-options.js").ReasoningEffort, import("../protocols/utils/open-responses-options.js").ReasoningEffort>>;
|
|
175
|
+
tool_stream: Schema.optional<Schema.Boolean>;
|
|
174
176
|
max_completion_tokens: Schema.optional<Schema.Number>;
|
|
175
177
|
max_tokens: Schema.optional<Schema.Number>;
|
|
176
178
|
temperature: Schema.optional<Schema.Number>;
|
|
@@ -248,11 +250,12 @@ export declare const protocol: Protocol<{
|
|
|
248
250
|
readonly max_tokens?: number | undefined;
|
|
249
251
|
readonly tools?: readonly {
|
|
250
252
|
readonly function: {
|
|
251
|
-
readonly name: string;
|
|
252
253
|
readonly description: string;
|
|
254
|
+
readonly name: string;
|
|
253
255
|
readonly parameters: {
|
|
254
256
|
readonly [x: string]: unknown;
|
|
255
257
|
};
|
|
258
|
+
readonly strict?: boolean | undefined;
|
|
256
259
|
};
|
|
257
260
|
readonly type: "function";
|
|
258
261
|
readonly cache_control?: {
|
|
@@ -276,6 +279,7 @@ export declare const protocol: Protocol<{
|
|
|
276
279
|
} | undefined;
|
|
277
280
|
readonly prompt_cache_key?: string | undefined;
|
|
278
281
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
282
|
+
readonly tool_stream?: boolean | undefined;
|
|
279
283
|
readonly frequency_penalty?: number | undefined;
|
|
280
284
|
readonly presence_penalty?: number | undefined;
|
|
281
285
|
}, string, {
|
|
@@ -411,11 +415,12 @@ export declare const route: Route<{
|
|
|
411
415
|
readonly max_tokens?: number | undefined;
|
|
412
416
|
readonly tools?: readonly {
|
|
413
417
|
readonly function: {
|
|
414
|
-
readonly name: string;
|
|
415
418
|
readonly description: string;
|
|
419
|
+
readonly name: string;
|
|
416
420
|
readonly parameters: {
|
|
417
421
|
readonly [x: string]: unknown;
|
|
418
422
|
};
|
|
423
|
+
readonly strict?: boolean | undefined;
|
|
419
424
|
};
|
|
420
425
|
readonly type: "function";
|
|
421
426
|
readonly cache_control?: {
|
|
@@ -439,6 +444,7 @@ export declare const route: Route<{
|
|
|
439
444
|
} | undefined;
|
|
440
445
|
readonly prompt_cache_key?: string | undefined;
|
|
441
446
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
447
|
+
readonly tool_stream?: boolean | undefined;
|
|
442
448
|
readonly frequency_penalty?: number | undefined;
|
|
443
449
|
readonly presence_penalty?: number | undefined;
|
|
444
450
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
@@ -509,11 +515,12 @@ export declare const routes: Route<{
|
|
|
509
515
|
readonly max_tokens?: number | undefined;
|
|
510
516
|
readonly tools?: readonly {
|
|
511
517
|
readonly function: {
|
|
512
|
-
readonly name: string;
|
|
513
518
|
readonly description: string;
|
|
519
|
+
readonly name: string;
|
|
514
520
|
readonly parameters: {
|
|
515
521
|
readonly [x: string]: unknown;
|
|
516
522
|
};
|
|
523
|
+
readonly strict?: boolean | undefined;
|
|
517
524
|
};
|
|
518
525
|
readonly type: "function";
|
|
519
526
|
readonly cache_control?: {
|
|
@@ -537,6 +544,7 @@ export declare const routes: Route<{
|
|
|
537
544
|
} | undefined;
|
|
538
545
|
readonly prompt_cache_key?: string | undefined;
|
|
539
546
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
547
|
+
readonly tool_stream?: boolean | undefined;
|
|
540
548
|
readonly frequency_penalty?: number | undefined;
|
|
541
549
|
readonly presence_penalty?: number | undefined;
|
|
542
550
|
}, import("../route/transport/http.js").HttpPrepared<string>>[];
|
package/dist/providers/xai.d.ts
CHANGED
|
@@ -81,11 +81,12 @@ export declare const routes: (Route<{
|
|
|
81
81
|
readonly max_tokens?: number | undefined;
|
|
82
82
|
readonly tools?: readonly {
|
|
83
83
|
readonly function: {
|
|
84
|
-
readonly name: string;
|
|
85
84
|
readonly description: string;
|
|
85
|
+
readonly name: string;
|
|
86
86
|
readonly parameters: {
|
|
87
87
|
readonly [x: string]: unknown;
|
|
88
88
|
};
|
|
89
|
+
readonly strict?: boolean | undefined;
|
|
89
90
|
};
|
|
90
91
|
readonly type: "function";
|
|
91
92
|
readonly cache_control?: {
|
|
@@ -109,6 +110,7 @@ export declare const routes: (Route<{
|
|
|
109
110
|
} | undefined;
|
|
110
111
|
readonly prompt_cache_key?: string | undefined;
|
|
111
112
|
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
113
|
+
readonly tool_stream?: boolean | undefined;
|
|
112
114
|
readonly frequency_penalty?: number | undefined;
|
|
113
115
|
readonly presence_penalty?: number | undefined;
|
|
114
116
|
}, import("../route/transport/http.js").HttpPrepared<string>> | Route<unknown, import("../protocols/open-responses-channel.js").Prepared>)[];
|