@opencode/ai 0.0.0-dev-19424 → 0.0.0-dev-19427
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.
|
@@ -237,34 +237,6 @@ export declare const routes: (Route<{
|
|
|
237
237
|
readonly type: "input_video";
|
|
238
238
|
readonly video_url: string;
|
|
239
239
|
})[];
|
|
240
|
-
} | {
|
|
241
|
-
readonly [x: string]: unknown;
|
|
242
|
-
readonly id: string;
|
|
243
|
-
readonly type: "computer_call";
|
|
244
|
-
readonly status?: string | undefined;
|
|
245
|
-
readonly action?: {
|
|
246
|
-
readonly [x: string]: unknown;
|
|
247
|
-
} | null | undefined;
|
|
248
|
-
readonly call_id?: string | undefined;
|
|
249
|
-
readonly pending_safety_checks?: readonly {
|
|
250
|
-
readonly [x: string]: unknown;
|
|
251
|
-
}[] | undefined;
|
|
252
|
-
} | {
|
|
253
|
-
readonly [x: string]: unknown;
|
|
254
|
-
readonly id: string;
|
|
255
|
-
readonly type: "web_search_preview_call";
|
|
256
|
-
readonly status?: string | undefined;
|
|
257
|
-
readonly action?: {
|
|
258
|
-
readonly [x: string]: unknown;
|
|
259
|
-
} | null | undefined;
|
|
260
|
-
} | {
|
|
261
|
-
readonly [x: string]: unknown;
|
|
262
|
-
readonly id: string;
|
|
263
|
-
readonly type: "image_generation_call";
|
|
264
|
-
readonly status?: string | undefined;
|
|
265
|
-
readonly result?: string | null | undefined;
|
|
266
|
-
readonly revised_prompt?: string | null | undefined;
|
|
267
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
268
240
|
})[];
|
|
269
241
|
readonly model: string;
|
|
270
242
|
readonly stream: true;
|
|
@@ -276,7 +248,7 @@ export declare const routes: (Route<{
|
|
|
276
248
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
277
249
|
readonly effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
278
250
|
} | undefined;
|
|
279
|
-
readonly tools?: readonly
|
|
251
|
+
readonly tools?: readonly {
|
|
280
252
|
readonly type: "function";
|
|
281
253
|
readonly description: string;
|
|
282
254
|
readonly name: string;
|
|
@@ -284,39 +256,12 @@ export declare const routes: (Route<{
|
|
|
284
256
|
readonly [x: string]: unknown;
|
|
285
257
|
};
|
|
286
258
|
readonly strict?: boolean | undefined;
|
|
287
|
-
} |
|
|
288
|
-
readonly type: "image_generation";
|
|
289
|
-
readonly size?: string | undefined;
|
|
290
|
-
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
291
|
-
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
292
|
-
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
293
|
-
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
294
|
-
readonly output_compression?: number | undefined;
|
|
295
|
-
readonly input_fidelity?: "low" | "high" | undefined;
|
|
296
|
-
readonly partial_images?: number | undefined;
|
|
297
|
-
} | {
|
|
298
|
-
readonly type: "namespace";
|
|
299
|
-
readonly name: string;
|
|
300
|
-
readonly description: string;
|
|
301
|
-
readonly tools: readonly {
|
|
302
|
-
readonly type: "function";
|
|
303
|
-
readonly description: string;
|
|
304
|
-
readonly name: string;
|
|
305
|
-
readonly parameters: {
|
|
306
|
-
readonly [x: string]: unknown;
|
|
307
|
-
};
|
|
308
|
-
readonly strict?: boolean | undefined;
|
|
309
|
-
}[];
|
|
310
|
-
})[] | undefined;
|
|
259
|
+
}[] | undefined;
|
|
311
260
|
readonly text?: {
|
|
312
261
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
313
262
|
} | undefined;
|
|
314
263
|
readonly temperature?: number | undefined;
|
|
315
264
|
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
316
|
-
readonly context_management?: readonly {
|
|
317
|
-
readonly type: "compaction";
|
|
318
|
-
readonly compact_threshold?: number | undefined;
|
|
319
|
-
}[] | undefined;
|
|
320
265
|
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
321
266
|
readonly type: "function";
|
|
322
267
|
readonly name: string;
|
|
@@ -327,8 +272,6 @@ export declare const routes: (Route<{
|
|
|
327
272
|
readonly type: "function";
|
|
328
273
|
readonly name: string;
|
|
329
274
|
}[];
|
|
330
|
-
} | {
|
|
331
|
-
readonly type: "image_generation";
|
|
332
275
|
} | undefined;
|
|
333
276
|
readonly top_p?: number | undefined;
|
|
334
277
|
readonly frequency_penalty?: number | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Route } from "../route/client.js";
|
|
2
|
+
import { Endpoint } from "../route/endpoint.js";
|
|
2
3
|
import { OpenAIChat } from "../protocols/openai-chat.js";
|
|
3
|
-
import {
|
|
4
|
+
import { OpenResponses } from "../protocols/open-responses.js";
|
|
4
5
|
import { BedrockAuth } from "../protocols/utils/bedrock-auth.js";
|
|
5
6
|
import { ProviderID } from "../schema/index.js";
|
|
6
7
|
import { withOpenAIOptions } from "./openai-options.js";
|
|
@@ -9,11 +10,10 @@ const responsesRoute = Route.make({
|
|
|
9
10
|
id: "bedrock-mantle-responses",
|
|
10
11
|
provider: id,
|
|
11
12
|
providerMetadataKey: "mantle",
|
|
12
|
-
protocol:
|
|
13
|
-
endpoint:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
defaults: OpenAIResponses.route.defaults,
|
|
13
|
+
protocol: OpenResponses.protocol,
|
|
14
|
+
endpoint: Endpoint.path(OpenResponses.PATH),
|
|
15
|
+
transport: OpenResponses.httpTransport,
|
|
16
|
+
defaults: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
|
|
17
17
|
});
|
|
18
18
|
const chatRoute = OpenAIChat.route.with({
|
|
19
19
|
id: "bedrock-mantle-chat",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-19427",
|
|
4
4
|
"name": "@opencode/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
32
32
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
33
|
-
"@opencode/http-recorder": "0.0.0-dev-
|
|
33
|
+
"@opencode/http-recorder": "0.0.0-dev-19427",
|
|
34
34
|
"@tsconfig/bun": "1.0.9",
|
|
35
35
|
"@types/bun": "1.4.0",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@aws-sdk/credential-providers": "3.1057.0",
|
|
41
41
|
"@smithy/eventstream-codec": "4.2.14",
|
|
42
42
|
"@smithy/util-utf8": "4.2.2",
|
|
43
|
-
"@opencode/schema": "0.0.0-dev-
|
|
43
|
+
"@opencode/schema": "0.0.0-dev-19427",
|
|
44
44
|
"aws4fetch": "1.0.20",
|
|
45
45
|
"effect": "4.0.0-rc.112",
|
|
46
46
|
"google-auth-library": "10.5.0"
|