@oh-my-pi/pi-agent-core 18.1.6 → 18.1.8
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-agent-core",
|
|
4
|
-
"version": "18.1.
|
|
4
|
+
"version": "18.1.8",
|
|
5
5
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Stencil Labs, Inc.",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@oh-my-pi/pi-ai": "18.1.
|
|
39
|
-
"@oh-my-pi/pi-catalog": "18.1.
|
|
40
|
-
"@oh-my-pi/pi-natives": "18.1.
|
|
41
|
-
"@oh-my-pi/pi-utils": "18.1.
|
|
42
|
-
"@oh-my-pi/pi-wire": "18.1.
|
|
43
|
-
"@oh-my-pi/snapcompact": "18.1.
|
|
38
|
+
"@oh-my-pi/pi-ai": "18.1.8",
|
|
39
|
+
"@oh-my-pi/pi-catalog": "18.1.8",
|
|
40
|
+
"@oh-my-pi/pi-natives": "18.1.8",
|
|
41
|
+
"@oh-my-pi/pi-utils": "18.1.8",
|
|
42
|
+
"@oh-my-pi/pi-wire": "18.1.8",
|
|
43
|
+
"@oh-my-pi/snapcompact": "18.1.8",
|
|
44
44
|
"@opentelemetry/api": "^1.9.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@oh-my-pi/omptype": "18.1.
|
|
47
|
+
"@oh-my-pi/omptype": "18.1.8",
|
|
48
48
|
"@opentelemetry/context-async-hooks": "^2.9.0",
|
|
49
49
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
50
50
|
"@types/bun": "^1.3.14"
|
|
@@ -27,6 +27,7 @@ import { captureOpenAIHttpError } from "@oh-my-pi/pi-ai/utils/openai-http";
|
|
|
27
27
|
import {
|
|
28
28
|
applyCodexResidencyHeader,
|
|
29
29
|
CODEX_BASE_URL,
|
|
30
|
+
codexRoutingHint,
|
|
30
31
|
getCodexAccountId,
|
|
31
32
|
OPENAI_HEADER_VALUES,
|
|
32
33
|
OPENAI_HEADERS,
|
|
@@ -424,6 +425,7 @@ function buildCompactionV2Headers(
|
|
|
424
425
|
headers[OPENAI_HEADERS.BETA] = OPENAI_HEADER_VALUES.BETA_RESPONSES;
|
|
425
426
|
headers[OPENAI_HEADERS.ORIGINATOR] = OPENAI_HEADER_VALUES.ORIGINATOR_CODEX;
|
|
426
427
|
headers[OPENAI_HEADERS.CODEX_BETA_FEATURES] = OPENAI_HEADER_VALUES.REMOTE_COMPACTION_V2;
|
|
428
|
+
headers[OPENAI_HEADERS.ROUTING_HINT] = codexRoutingHint(request.model, undefined);
|
|
427
429
|
if (model.useResponsesLite) {
|
|
428
430
|
headers[OPENAI_HEADERS.RESPONSES_LITE] = "true";
|
|
429
431
|
}
|
package/src/compaction/openai.ts
CHANGED
|
@@ -48,6 +48,7 @@ import { captureOpenAIHttpError } from "@oh-my-pi/pi-ai/utils/openai-http";
|
|
|
48
48
|
import {
|
|
49
49
|
applyCodexResidencyHeader,
|
|
50
50
|
CODEX_BASE_URL,
|
|
51
|
+
codexRoutingHint,
|
|
51
52
|
getCodexAccountId,
|
|
52
53
|
OPENAI_HEADER_VALUES,
|
|
53
54
|
OPENAI_HEADERS,
|
|
@@ -824,6 +825,8 @@ export async function requestOpenAiRemoteCompaction(
|
|
|
824
825
|
}
|
|
825
826
|
headers[OPENAI_HEADERS.BETA] = OPENAI_HEADER_VALUES.BETA_RESPONSES;
|
|
826
827
|
headers[OPENAI_HEADERS.ORIGINATOR] = OPENAI_HEADER_VALUES.ORIGINATOR_CODEX;
|
|
828
|
+
// This compaction request sends no `service_tier`, so the hint is model-only.
|
|
829
|
+
headers[OPENAI_HEADERS.ROUTING_HINT] = codexRoutingHint(request.model, undefined);
|
|
827
830
|
Object.assign(
|
|
828
831
|
headers,
|
|
829
832
|
createOpenAICodexCompatibilityMetadata({
|