@opencode/ai 0.0.0-dev-187 → 0.0.0-dev-192
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.
|
@@ -12,6 +12,12 @@ export type Config = Omit<RouteDefaultsInput, "providerOptions"> & {
|
|
|
12
12
|
readonly apiKey?: string;
|
|
13
13
|
/** `sigv4` ignores `apiKey` fallbacks from the environment; `bearer` requires a token. */
|
|
14
14
|
readonly auth?: "bearer" | "sigv4";
|
|
15
|
+
/**
|
|
16
|
+
* Mantle serves each model under one path prefix and rejects it on the others. Responses and Chat default to
|
|
17
|
+
* `https://bedrock-mantle.<region>.api.aws/v1`, which serves open-weight models such as `openai.gpt-oss-120b`.
|
|
18
|
+
* Others, including GPT models such as `openai.gpt-5.4`, need `.../openai/v1`; each AWS model card lists the base
|
|
19
|
+
* URL under Programmatic Access. Messages defaults to `.../anthropic/v1`.
|
|
20
|
+
*/
|
|
15
21
|
readonly baseURL?: string;
|
|
16
22
|
/** Static SigV4 credentials. When omitted the AWS default credential chain resolves them per request. */
|
|
17
23
|
readonly credentials?: Credentials;
|
|
@@ -23,6 +29,7 @@ export type Config = Omit<RouteDefaultsInput, "providerOptions"> & {
|
|
|
23
29
|
export type Settings<Options = OpenAIProviderOptionsInput> = ProviderPackage.Settings & Options & {
|
|
24
30
|
readonly apiKey?: string;
|
|
25
31
|
readonly auth?: "bearer" | "sigv4";
|
|
32
|
+
/** See {@link Config.baseURL}: GPT models such as `openai.gpt-5.4` need `https://bedrock-mantle.<region>.api.aws/openai/v1`. */
|
|
26
33
|
readonly baseURL?: string;
|
|
27
34
|
readonly credentials?: Credentials;
|
|
28
35
|
readonly profile?: string;
|
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-192",
|
|
4
4
|
"name": "@opencode/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
"devDependencies": {
|
|
513
513
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
514
514
|
"@effect/platform-node": "4.0.1",
|
|
515
|
-
"@opencode/http-recorder": "0.0.0-dev-
|
|
515
|
+
"@opencode/http-recorder": "0.0.0-dev-192",
|
|
516
516
|
"@tsconfig/bun": "1.0.9",
|
|
517
517
|
"@types/bun": "1.4.3",
|
|
518
518
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"@aws-sdk/credential-providers": "3.1057.0",
|
|
523
523
|
"@smithy/eventstream-codec": "4.2.14",
|
|
524
524
|
"@smithy/util-utf8": "4.2.2",
|
|
525
|
-
"@opencode/schema": "0.0.0-dev-
|
|
525
|
+
"@opencode/schema": "0.0.0-dev-192",
|
|
526
526
|
"aws4fetch": "1.0.20",
|
|
527
527
|
"effect": "4.0.1",
|
|
528
528
|
"google-auth-library": "10.5.0"
|