@tangle-network/sdk-provider-codex 0.4.63 → 0.4.65
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/index.d.mts +5 -0
- package/dist/index.mjs +9 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -182,6 +182,11 @@ declare function resolveCodexConnection(config: CodexConfig, explicitModel?: str
|
|
|
182
182
|
baseUrl?: string;
|
|
183
183
|
model?: string;
|
|
184
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* The Router owns retry and failover. A Router 429 reaches Codex as a streamed
|
|
187
|
+
* `response.failed` with no Retry-After, so its default 5 reconnects re-sent it
|
|
188
|
+
* 6 times in about 9 s; one attempt hands the refusal back to the caller.
|
|
189
|
+
*/
|
|
185
190
|
declare function codexGatewayConfigArgs(baseUrl: string | undefined): string[];
|
|
186
191
|
//#endregion
|
|
187
192
|
//#region src/codex-native-launch.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1099,6 +1099,11 @@ function resolveCodexConnection(config, explicitModel) {
|
|
|
1099
1099
|
model: explicitModel !== void 0 ? normalizeExplicitCodexModel(explicitModel) : authMode === "api-key" ? resolveCodexRouterModel(gatewayModel) : void 0
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
|
+
/**
|
|
1103
|
+
* The Router owns retry and failover. A Router 429 reaches Codex as a streamed
|
|
1104
|
+
* `response.failed` with no Retry-After, so its default 5 reconnects re-sent it
|
|
1105
|
+
* 6 times in about 9 s; one attempt hands the refusal back to the caller.
|
|
1106
|
+
*/
|
|
1102
1107
|
function codexGatewayConfigArgs(baseUrl) {
|
|
1103
1108
|
if (!baseUrl) return [];
|
|
1104
1109
|
return Object.entries({
|
|
@@ -1106,8 +1111,10 @@ function codexGatewayConfigArgs(baseUrl) {
|
|
|
1106
1111
|
"model_providers.tangle.name": "Tangle Router",
|
|
1107
1112
|
"model_providers.tangle.base_url": baseUrl,
|
|
1108
1113
|
"model_providers.tangle.env_key": "OPENAI_API_KEY",
|
|
1109
|
-
"model_providers.tangle.wire_api": "responses"
|
|
1110
|
-
|
|
1114
|
+
"model_providers.tangle.wire_api": "responses",
|
|
1115
|
+
"model_providers.tangle.request_max_retries": 0,
|
|
1116
|
+
"model_providers.tangle.stream_max_retries": 0
|
|
1117
|
+
}).flatMap(([key, value]) => ["-c", `${key}=${typeof value === "number" ? value : tomlString(value)}`]);
|
|
1111
1118
|
}
|
|
1112
1119
|
function tomlString(value) {
|
|
1113
1120
|
return JSON.stringify(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sdk-provider-codex",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@tangle-network/agent-backend-types": "1.3.3",
|
|
19
19
|
"@tangle-network/agent-interface": "^5.10.23",
|
|
20
20
|
"@tangle-network/sdk-cli-runner": "0.3.12",
|
|
21
|
-
"@tangle-network/sdk-provider-cli-base": "0.13.
|
|
21
|
+
"@tangle-network/sdk-provider-cli-base": "0.13.85",
|
|
22
22
|
"@tangle-network/sdk-session-persistence": "0.7.10",
|
|
23
23
|
"zod": "4.6.7"
|
|
24
24
|
},
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"registry": "https://registry.npmjs.org"
|
|
35
35
|
},
|
|
36
36
|
"tangleRelease": {
|
|
37
|
-
"sourceSha": "
|
|
38
|
-
"mergedAt": "2026-11-
|
|
37
|
+
"sourceSha": "4e1842bc9c2ed85c20400c65c5db475e5117aac9",
|
|
38
|
+
"mergedAt": "2026-11-14T22:25:47-08:00"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsdown",
|