@opencode-ai/ai 0.0.0-dev-18276 → 0.0.0-dev-18282
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Route, type RouteDefaultsInput } from "../route/client.js";
|
|
2
2
|
import type { ProviderPackage } from "../provider-package.js";
|
|
3
3
|
import { type Credentials } from "../protocols/utils/bedrock-auth.js";
|
|
4
4
|
import { type ModelID } from "../schema/index.js";
|
|
@@ -19,7 +19,7 @@ export interface Settings extends ProviderPackage.Settings {
|
|
|
19
19
|
readonly region?: string;
|
|
20
20
|
readonly providerOptions?: OpenAIProviderOptionsInput;
|
|
21
21
|
}
|
|
22
|
-
export declare const routes: (
|
|
22
|
+
export declare const routes: (Route<{
|
|
23
23
|
readonly model: string;
|
|
24
24
|
readonly messages: readonly ({
|
|
25
25
|
readonly role: "system";
|
|
@@ -117,7 +117,7 @@ export declare const routes: (RouteDef<{
|
|
|
117
117
|
readonly tool_stream?: boolean | undefined;
|
|
118
118
|
readonly frequency_penalty?: number | undefined;
|
|
119
119
|
readonly presence_penalty?: number | undefined;
|
|
120
|
-
}, import("../route/transport/http.js").HttpPrepared<string>> |
|
|
120
|
+
}, import("../route/transport/http.js").HttpPrepared<string>> | Route<{
|
|
121
121
|
readonly input: readonly ({
|
|
122
122
|
readonly [x: string]: unknown;
|
|
123
123
|
readonly id: string;
|
|
@@ -307,7 +307,7 @@ export declare const routes: (RouteDef<{
|
|
|
307
307
|
readonly max_output_tokens?: number | undefined;
|
|
308
308
|
readonly max_tool_calls?: number | undefined;
|
|
309
309
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
310
|
-
}, import("../
|
|
310
|
+
}, import("../route/transport/http.js").HttpPrepared<string>>)[];
|
|
311
311
|
export declare const configure: (input?: Config) => {
|
|
312
312
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
313
313
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput>;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { Auth } from "../route/auth.js";
|
|
2
|
+
import { Route } from "../route/client.js";
|
|
2
3
|
import { OpenAIChat } from "../protocols/openai-chat.js";
|
|
3
4
|
import { OpenAIResponses } from "../protocols/openai-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";
|
|
7
8
|
export const id = ProviderID.make("amazon-bedrock");
|
|
8
|
-
const responsesRoute =
|
|
9
|
+
const responsesRoute = Route.make({
|
|
9
10
|
id: "bedrock-mantle-responses",
|
|
10
11
|
provider: id,
|
|
12
|
+
providerMetadataKey: OpenAIResponses.route.providerMetadataKey,
|
|
13
|
+
protocol: OpenAIResponses.protocol,
|
|
14
|
+
endpoint: OpenAIResponses.route.endpoint,
|
|
15
|
+
auth: OpenAIResponses.route.auth,
|
|
16
|
+
transport: OpenAIResponses.httpTransport,
|
|
17
|
+
defaults: OpenAIResponses.route.defaults,
|
|
11
18
|
});
|
|
12
19
|
const chatRoute = OpenAIChat.route.with({
|
|
13
20
|
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-18282",
|
|
4
4
|
"name": "@opencode-ai/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.111",
|
|
33
|
-
"@opencode-ai/http-recorder": "0.0.0-dev-
|
|
33
|
+
"@opencode-ai/http-recorder": "0.0.0-dev-18282",
|
|
34
34
|
"@tsconfig/bun": "1.0.9",
|
|
35
35
|
"@types/bun": "1.3.13",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@smithy/eventstream-codec": "4.2.14",
|
|
41
41
|
"@smithy/util-utf8": "4.2.2",
|
|
42
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
42
|
+
"@opencode-ai/schema": "0.0.0-dev-18282",
|
|
43
43
|
"aws4fetch": "1.0.20",
|
|
44
44
|
"effect": "4.0.0-rc.111",
|
|
45
45
|
"google-auth-library": "10.5.0"
|