@openclaw/ai 2026.10.3 → 2026.10.4
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/{anthropic-C4qygbtf.mjs → anthropic-DloU96D6.mjs} +2 -2
- package/dist/{anthropic-stream-reducer-CWyWE21W.mjs → anthropic-stream-reducer-Djl4yqrc.mjs} +2 -3
- package/dist/{assistant-text-phase-DVZOxbuR.mjs → assistant-text-phase-DzvV7Oso.mjs} +1 -1
- package/dist/{azure-openai-responses-DO-Fv8ha.mjs → azure-openai-responses-CAyTrcy6.mjs} +1 -2
- package/dist/internal/anthropic.mjs +2 -2
- package/dist/internal/openai.mjs +5 -7
- package/dist/{openai-chatgpt-responses-Cq3Igfi3.mjs → openai-chatgpt-responses-vk4XdUjX.mjs} +3 -5
- package/dist/{openai-completions-BxQw4S-A.mjs → openai-completions-XvUwdvJc.mjs} +1 -1
- package/dist/{openai-completions-transport-D_ZhLzh_.mjs → openai-completions-transport-QYABn8Uz.mjs} +1170 -13
- package/dist/{openai-responses-BhAZFsL9.mjs → openai-responses-DNWY56mK.mjs} +2 -3
- package/dist/{openai-responses-prompt-observer-internal-CefUzh8M.mjs → openai-responses-request-lifecycle-Dskvtz_Z.mjs} +36 -1
- package/dist/{openai-responses-shared-CKNmC3vC.mjs → openai-responses-shared-BMx2NAS-.mjs} +805 -67
- package/dist/{provider-transport-turn-state-BX6TfCyW.mjs → provider-transport-turn-state-1T3vwTvn.mjs} +1 -1
- package/dist/providers.mjs +5 -5
- package/dist/{text-signature-D_vRrx-z.mjs → text-signature-CbqxIB8B.mjs} +25 -2
- package/dist/transports.mjs +11 -1148
- package/package.json +1 -1
- package/dist/openai-responses-request-lifecycle-Fsag-IGZ.mjs +0 -36
- package/dist/openai-transport-params-D7JMUPjf.mjs +0 -735
- package/dist/openai-web-search-tools-Cfu0uLyN.mjs +0 -14
- package/dist/provider-replay-context-CO_Eplnc.mjs +0 -25
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { o as isRecord } from "./record-coerce-CNDovvft.mjs";
|
|
2
|
-
//#region packages/ai/src/providers/openai-web-search-tools.ts
|
|
3
|
-
function hasResponsesWebSearchTool(tools) {
|
|
4
|
-
if (!Array.isArray(tools)) return false;
|
|
5
|
-
return tools.some((tool) => {
|
|
6
|
-
if (!isRecord(tool)) return false;
|
|
7
|
-
if (tool.type === "web_search") return true;
|
|
8
|
-
if (tool.type === "function" && tool.name === "web_search") return true;
|
|
9
|
-
const fn = tool.function;
|
|
10
|
-
return isRecord(fn) && fn.name === "web_search";
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { hasResponsesWebSearchTool as t };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { o as isRecord } from "./record-coerce-CNDovvft.mjs";
|
|
2
|
-
import { A as shortHash } from "./transport-stream-shared-CCR7hSW0.mjs";
|
|
3
|
-
//#region packages/ai/src/transports/provider-replay-context.ts
|
|
4
|
-
function isProviderReplayContext(value) {
|
|
5
|
-
return isRecord(value) && typeof value.provider === "string" && typeof value.api === "string" && typeof value.model === "string" && (value.baseUrlHash === void 0 || typeof value.baseUrlHash === "string") && (value.sessionHash === void 0 || typeof value.sessionHash === "string") && (value.authProfileHash === void 0 || typeof value.authProfileHash === "string");
|
|
6
|
-
}
|
|
7
|
-
function hashReplayContextValue(value) {
|
|
8
|
-
const normalized = value?.trim();
|
|
9
|
-
return normalized ? shortHash(normalized) : void 0;
|
|
10
|
-
}
|
|
11
|
-
function buildProviderReplayContext(model, options) {
|
|
12
|
-
return {
|
|
13
|
-
provider: model.provider,
|
|
14
|
-
api: model.api,
|
|
15
|
-
model: model.id,
|
|
16
|
-
baseUrlHash: hashReplayContextValue(model.baseUrl),
|
|
17
|
-
sessionHash: hashReplayContextValue(options?.sessionId),
|
|
18
|
-
authProfileHash: hashReplayContextValue(options?.authProfileId)
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function providerReplayContextMatches(state, context) {
|
|
22
|
-
return state.provider === context.provider && state.api === context.api && state.model === context.model && state.baseUrlHash === context.baseUrlHash && state.sessionHash === context.sessionHash && state.authProfileHash === context.authProfileHash;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { isProviderReplayContext as n, providerReplayContextMatches as r, buildProviderReplayContext as t };
|