@openclaw/ai 2026.7.2-beta.4 → 2026.7.2-beta.6
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-CrUDIBpM.mjs → anthropic-CH4UUnZr.mjs} +26 -441
- package/dist/{anthropic-BoTnz8cv.d.mts → anthropic-SrGtwsJu.d.mts} +27 -1
- package/dist/anthropic-usage-DWU-x8MI.mjs +459 -0
- package/dist/{api-registry-BMphkFf1.d.mts → api-registry-DlMgPR39.d.mts} +1 -1
- package/dist/{azure-openai-responses-CbrpVeEv.mjs → azure-openai-responses-CImcwB83.mjs} +4 -4
- package/dist/cache-retention-0x979a5V.mjs +12 -0
- package/dist/deferred-event-buffer-DAvyP7qA.mjs +19 -0
- package/dist/error-coercion-DgxlWC0n.mjs +15 -0
- package/dist/{event-stream-Douf9dob.d.mts → event-stream-YjaPW20U.d.mts} +1 -1
- package/dist/event-stream.d.mts +1 -1
- package/dist/{github-copilot-headers-BsH5cqGj.mjs → github-copilot-headers-NCJtz9i0.mjs} +1 -12
- package/dist/{google-Cs62KA7t.mjs → google-CtSg0iTS.mjs} +3 -3
- package/dist/{google-shared-CMLI-tCZ.mjs → google-shared-DNBz5rcD.mjs} +7 -4
- package/dist/{google-vertex-B4SD3U0f.mjs → google-vertex-31f1uS9L.mjs} +3 -3
- package/dist/{host-WvWBo4h8.d.mts → host-B9GUmcra.d.mts} +2 -2
- package/dist/host-Dog2WQiR.mjs +369 -0
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +3 -3
- package/dist/internal/anthropic.d.mts +16 -62
- package/dist/internal/anthropic.mjs +5 -4
- package/dist/internal/openai.d.mts +260 -2
- package/dist/internal/openai.mjs +7 -5
- package/dist/internal/runtime.d.mts +8 -32
- package/dist/internal/runtime.mjs +7 -6
- package/dist/internal/shared.d.mts +14 -9
- package/dist/internal/shared.mjs +6 -2
- package/dist/{llm-request-activity-CehVkZP-.mjs → llm-request-activity-BjtkplhG.mjs} +1 -19
- package/dist/{mistral-D5Ps7Led.mjs → mistral-CWmpvWYh.mjs} +7 -4
- package/dist/number-coercion-DvG7SNMg.mjs +129 -0
- package/dist/{openai-chatgpt-responses-h0o5yV8Y.mjs → openai-chatgpt-responses-B84Ibtrd.mjs} +33 -29
- package/dist/{openai-completions-exO8NFQf.mjs → openai-completions-DsOxhOD1.mjs} +28 -482
- package/dist/openai-completions-compat-DBWjXoMZ.d.mts +43 -0
- package/dist/openai-prompt-cache-2uo_1OR1.d.mts +7 -0
- package/dist/openai-prompt-cache-mZTCdRPo.mjs +12 -0
- package/dist/openai-reasoning-compat-YgeLncHw.mjs +396 -0
- package/dist/{openai-responses-BHpmtUKo.mjs → openai-responses-BT7A3sLu.mjs} +7 -5
- package/dist/openai-responses-shared-pXl6Wd8S.mjs +392 -0
- package/dist/{openai-responses-shared-CzCurmY1.mjs → openai-responses-stream-internal-Cw5txaGW.mjs} +1609 -1037
- package/dist/{openai-tool-projection-ITOU9bG1.mjs → openai-tool-projection-OhX64DoP.mjs} +26 -11
- package/dist/prompt-cache-stability-Cwcjv_fx.d.mts +13 -0
- package/dist/{provider-error-C4VvV_3t.mjs → provider-error-CAEvRjry.mjs} +8 -2
- package/dist/provider-options-D8bB3z9b.d.mts +144 -0
- package/dist/providers.d.mts +3 -2
- package/dist/providers.mjs +10 -9
- package/dist/reasoning-tag-text-partitioner-CGDyLWUR.mjs +12209 -0
- package/dist/simple-options-9lhRrN73.mjs +50 -0
- package/dist/{src-CXno1H5g.mjs → src-QkygScBs.mjs} +23 -4
- package/dist/stream-first-event-timeout-BBys9hSb.mjs +86 -0
- package/dist/stream-first-event-timeout-DvDeSucC.d.mts +29 -0
- package/dist/tls-certificate-errors-DXSpluKI.mjs +93 -0
- package/dist/tool-result-text-CTpIRbYd.mjs +225 -0
- package/dist/transform-messages-C8mBqZxF.mjs +2 -0
- package/dist/transport-stream-shared-D81p90xq.mjs +297 -0
- package/dist/transports.d.mts +115 -132
- package/dist/transports.mjs +400 -1991
- package/dist/{types-AFwwWium.d.mts → types-bzp5k29J.d.mts} +7 -0
- package/dist/types.d.mts +5 -5
- package/dist/types.mjs +2 -2
- package/dist/{validation-sxvxC8J-.d.mts → validation-B-j7cOYp.d.mts} +1 -1
- package/dist/validation.d.mts +1 -1
- package/package.json +4 -5
- package/dist/host-XYGZcgO8.mjs +0 -98
- package/dist/model-utils-1GiZ2_rr.mjs +0 -64
- package/dist/openai-CoGicoDt.d.mts +0 -332
- package/dist/reasoning-tag-text-partitioner-BlVe67g6.mjs +0 -400
- package/dist/stream-first-event-timeout-DP4xEyBY.mjs +0 -150
- package/dist/system-prompt-cache-boundary-CbHeV4_l.mjs +0 -526
- package/npm-shrinkwrap.json +0 -638
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as isRecord, n as getAiTransportHost } from "./host-Dog2WQiR.mjs";
|
|
2
2
|
import { t as projectRuntimeToolInputSchema } from "./tool-schema-json-projection-BwNu3nDi.mjs";
|
|
3
|
-
//#region packages/ai/src/
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
3
|
+
//#region packages/ai/src/transports/host-policy.ts
|
|
4
|
+
function buildGuardedModelFetch(model, timeoutMs, options) {
|
|
5
|
+
const host = getAiTransportHost();
|
|
6
|
+
if (options !== void 0) return host.buildModelFetch(model, timeoutMs, options) ?? globalThis.fetch;
|
|
7
|
+
if (timeoutMs !== void 0) return host.buildModelFetch(model, timeoutMs) ?? globalThis.fetch;
|
|
8
|
+
return host.buildModelFetch(model) ?? globalThis.fetch;
|
|
9
|
+
}
|
|
10
|
+
function resolveProviderEndpoint(baseUrl) {
|
|
11
|
+
return { endpointClass: getAiTransportHost().resolveProviderEndpointClass(baseUrl) };
|
|
12
|
+
}
|
|
13
|
+
function resolveProviderRequestCapabilities(input) {
|
|
14
|
+
return getAiTransportHost().resolveProviderRequestCapabilities(input);
|
|
15
|
+
}
|
|
16
|
+
function resolveProviderRequestPolicyConfig(input) {
|
|
17
|
+
return { headers: getAiTransportHost().resolveProviderRequestHeaders(input) };
|
|
18
|
+
}
|
|
19
|
+
function resolveModelRequestTimeoutMs(model, timeoutMs) {
|
|
20
|
+
return timeoutMs ?? getAiTransportHost().resolveModelRequestTimeoutMs(model);
|
|
21
|
+
}
|
|
22
|
+
function resolveOpenAIStrictToolSetting(model, options) {
|
|
23
|
+
return getAiTransportHost().resolveOpenAIStrictToolSetting(model, options);
|
|
24
|
+
}
|
|
25
|
+
function transformTransportMessages(messages, model, normalizeToolCallId, options) {
|
|
26
|
+
return getAiTransportHost().transformTransportMessages(messages, model, normalizeToolCallId, options);
|
|
12
27
|
}
|
|
13
28
|
//#endregion
|
|
14
29
|
//#region packages/ai/src/providers/openai-tool-projection.ts
|
|
@@ -197,4 +212,4 @@ function reconcileOpenAICompletionsToolChoice(choice, projection) {
|
|
|
197
212
|
};
|
|
198
213
|
}
|
|
199
214
|
//#endregion
|
|
200
|
-
export {
|
|
215
|
+
export { resolveModelRequestTimeoutMs as a, resolveProviderRequestCapabilities as c, buildGuardedModelFetch as i, resolveProviderRequestPolicyConfig as l, reconcileOpenAICompletionsToolChoice as n, resolveOpenAIStrictToolSetting as o, reconcileOpenAIResponsesToolChoice as r, resolveProviderEndpoint as s, projectOpenAITools as t, transformTransportMessages as u };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region packages/ai/src/utils/prompt-cache-stability.d.ts
|
|
2
|
+
/** Canonicalizes provider tool order without relying on host locale settings. */
|
|
3
|
+
declare function sortPromptCacheToolsByName<T extends {
|
|
4
|
+
readonly name?: string;
|
|
5
|
+
readonly wireName?: string;
|
|
6
|
+
readonly description?: string;
|
|
7
|
+
}>(tools: readonly T[]): T[];
|
|
8
|
+
/** Normalize structured prompt text before hashing or snapshot comparison. */
|
|
9
|
+
declare function normalizeStructuredPromptSection(text: string): string;
|
|
10
|
+
/** Normalize, de-dupe, and sort capability ids for stable prompt payloads. */
|
|
11
|
+
declare function normalizePromptCapabilityIds(capabilities: ReadonlyArray<string>): string[];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { normalizeStructuredPromptSection as n, sortPromptCacheToolsByName as r, normalizePromptCapabilityIds as t };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as truncateUtf16Safe } from "./tool-result-text-CTpIRbYd.mjs";
|
|
2
2
|
//#region packages/ai/src/utils/provider-error.ts
|
|
3
3
|
const MAX_ERROR_BODY_LENGTH = 4e3;
|
|
4
4
|
function stringify(value) {
|
|
5
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
5
6
|
try {
|
|
6
|
-
return JSON.stringify(value)
|
|
7
|
+
return JSON.stringify(value, (_key, candidate) => {
|
|
8
|
+
if (typeof candidate !== "object" || candidate === null) return candidate;
|
|
9
|
+
if (seen.has(candidate)) return "[Circular]";
|
|
10
|
+
seen.add(candidate);
|
|
11
|
+
return candidate;
|
|
12
|
+
}) ?? String(value);
|
|
7
13
|
} catch {
|
|
8
14
|
return String(value);
|
|
9
15
|
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z as StreamOptions } from "./types-bzp5k29J.mjs";
|
|
2
|
+
import OpenAI from "openai";
|
|
3
|
+
import Anthropic from "@anthropic-ai/sdk";
|
|
4
|
+
import { ResponseCreateParamsStreaming } from "openai/resources/responses/responses.js";
|
|
5
|
+
|
|
6
|
+
//#region packages/ai/src/providers/openai-reasoning-effort.d.ts
|
|
7
|
+
type OpenAIReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
8
|
+
type OpenAIApiReasoningEffort = OpenAIReasoningEffort | (string & {});
|
|
9
|
+
type OpenAIReasoningModel = {
|
|
10
|
+
provider?: unknown;
|
|
11
|
+
id?: unknown;
|
|
12
|
+
name?: unknown;
|
|
13
|
+
api?: unknown;
|
|
14
|
+
baseUrl?: unknown;
|
|
15
|
+
compat?: unknown;
|
|
16
|
+
};
|
|
17
|
+
/** Return whether a model is the GPT-5.4 mini family. */
|
|
18
|
+
declare function isOpenAIGpt54MiniModel(model: OpenAIReasoningModel): boolean;
|
|
19
|
+
/** Return whether a model is the GPT-5.5 family. */
|
|
20
|
+
declare function isOpenAIGpt55Model(model: OpenAIReasoningModel): boolean;
|
|
21
|
+
/** Return whether a model is the GPT-5.6 family. */
|
|
22
|
+
declare function isOpenAIGpt56Model(model: OpenAIReasoningModel): boolean;
|
|
23
|
+
/** Normalize user-facing reasoning effort names to API effort names. */
|
|
24
|
+
declare function normalizeOpenAIReasoningEffort(effort: string): string;
|
|
25
|
+
/** Resolve the reasoning efforts accepted by a specific OpenAI-compatible model. */
|
|
26
|
+
declare function resolveOpenAISupportedReasoningEfforts(model: OpenAIReasoningModel): readonly OpenAIApiReasoningEffort[];
|
|
27
|
+
/**
|
|
28
|
+
* Return whether a model accepts the temperature parameter. The GPT-5.6
|
|
29
|
+
* family rejects it with a 400; catalog compat can override per model.
|
|
30
|
+
*/
|
|
31
|
+
declare function supportsOpenAITemperature(model: OpenAIReasoningModel): boolean;
|
|
32
|
+
/** Return whether a model accepts a requested reasoning effort. */
|
|
33
|
+
declare function supportsOpenAIReasoningEffort(model: OpenAIReasoningModel, effort: string): boolean;
|
|
34
|
+
/** Resolve a requested reasoning effort to the closest value supported by the model. */
|
|
35
|
+
declare function resolveOpenAIReasoningEffortForModel(params: {
|
|
36
|
+
model: OpenAIReasoningModel;
|
|
37
|
+
effort: string;
|
|
38
|
+
fallbackMap?: Record<string, string>;
|
|
39
|
+
}): OpenAIApiReasoningEffort | undefined;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region packages/ai/src/providers/openai-tool-projection.d.ts
|
|
42
|
+
type OpenAIToolDescriptor = {
|
|
43
|
+
readonly name?: unknown;
|
|
44
|
+
readonly description?: unknown;
|
|
45
|
+
readonly parameters: unknown;
|
|
46
|
+
};
|
|
47
|
+
type OpenAIProjectedTool = {
|
|
48
|
+
readonly toolIndex: number;
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly description?: string;
|
|
51
|
+
readonly parameters: Record<string, unknown>;
|
|
52
|
+
};
|
|
53
|
+
type OpenAIToolProjectionDiagnostic = {
|
|
54
|
+
readonly toolIndex: number;
|
|
55
|
+
readonly toolName?: string;
|
|
56
|
+
readonly violations: readonly string[];
|
|
57
|
+
};
|
|
58
|
+
type OpenAIToolProjection = {
|
|
59
|
+
readonly inputToolCount: number;
|
|
60
|
+
readonly tools: readonly OpenAIProjectedTool[];
|
|
61
|
+
readonly diagnostics: readonly OpenAIToolProjectionDiagnostic[];
|
|
62
|
+
};
|
|
63
|
+
type OpenAIResponsesToolChoice = ResponseCreateParamsStreaming["tool_choice"];
|
|
64
|
+
type OpenAICompletionsSdkToolChoice = OpenAI.Chat.Completions.ChatCompletionCreateParamsStreaming["tool_choice"];
|
|
65
|
+
type OpenAICompletionsToolChoice = Exclude<OpenAICompletionsSdkToolChoice, {
|
|
66
|
+
type: "custom";
|
|
67
|
+
}>;
|
|
68
|
+
/** Snapshots direct/custom tool descriptors before OpenAI payload construction. */
|
|
69
|
+
declare function projectOpenAITools(tools: readonly OpenAIToolDescriptor[]): OpenAIToolProjection;
|
|
70
|
+
/** Keeps Responses tool choices aligned with surviving function schemas. */
|
|
71
|
+
declare function reconcileOpenAIResponsesToolChoice(choice: OpenAIResponsesToolChoice, projection: OpenAIToolProjection): OpenAIResponsesToolChoice | undefined;
|
|
72
|
+
/** Keeps Chat Completions tool choices aligned with surviving function schemas. */
|
|
73
|
+
declare function reconcileOpenAICompletionsToolChoice(choice: OpenAICompletionsSdkToolChoice, projection: OpenAIToolProjection): OpenAICompletionsSdkToolChoice | undefined;
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region packages/ai/src/provider-options.d.ts
|
|
76
|
+
type AnthropicEffort = "low" | "medium" | "high" | "xhigh" | "max";
|
|
77
|
+
type AnthropicThinkingDisplay = "summarized" | "omitted";
|
|
78
|
+
/** Provider options shared by the Anthropic provider and canonical transport. */
|
|
79
|
+
interface AnthropicOptions extends StreamOptions {
|
|
80
|
+
/**
|
|
81
|
+
* Enable extended thinking.
|
|
82
|
+
* For Opus 4.6+ and Sonnet 4.6: uses adaptive thinking (model decides when/how much to think).
|
|
83
|
+
* For older models: uses budget-based thinking with thinkingBudgetTokens.
|
|
84
|
+
*/
|
|
85
|
+
thinkingEnabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Token budget for extended thinking (older models only).
|
|
88
|
+
* Ignored for Opus 4.6+ and Sonnet 4.6, which use adaptive thinking.
|
|
89
|
+
*/
|
|
90
|
+
thinkingBudgetTokens?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Effort level for adaptive thinking (Opus 4.6+ and Sonnet 4.6).
|
|
93
|
+
* Controls how much thinking Claude allocates:
|
|
94
|
+
* - "max": Always thinks with no constraints (Opus 4.6 only)
|
|
95
|
+
* - "xhigh": Highest reasoning level (Opus 4.7+)
|
|
96
|
+
* - "high": Always thinks, deep reasoning (default)
|
|
97
|
+
* - "medium": Moderate thinking, may skip for simple queries
|
|
98
|
+
* - "low": Minimal thinking, skips for simple tasks
|
|
99
|
+
* Ignored for older models.
|
|
100
|
+
*/
|
|
101
|
+
effort?: AnthropicEffort;
|
|
102
|
+
/**
|
|
103
|
+
* Controls how thinking content is returned in API responses.
|
|
104
|
+
* - "summarized": Thinking blocks contain summarized thinking text (default here).
|
|
105
|
+
* - "omitted": Thinking blocks return an empty thinking field; the encrypted
|
|
106
|
+
* signature still travels back for multi-turn continuity. Use for faster
|
|
107
|
+
* time-to-first-text-token when your UI does not surface thinking.
|
|
108
|
+
*
|
|
109
|
+
* Note: Anthropic's API default for Claude Opus 4.7+ and Claude Mythos Preview
|
|
110
|
+
* is "omitted". We default to "summarized" here to keep behavior consistent
|
|
111
|
+
* with older Claude 4 models. Set this explicitly to "omitted" to opt in.
|
|
112
|
+
*/
|
|
113
|
+
thinkingDisplay?: AnthropicThinkingDisplay;
|
|
114
|
+
interleavedThinking?: boolean;
|
|
115
|
+
toolChoice?: "auto" | "any" | "none" | {
|
|
116
|
+
type: "tool";
|
|
117
|
+
name: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Pre-built Anthropic client instance. When provided, skips internal client
|
|
121
|
+
* construction entirely. Use this to inject alternative SDK clients such as
|
|
122
|
+
* `AnthropicVertex` that shares the same messaging API.
|
|
123
|
+
*/
|
|
124
|
+
client?: Anthropic;
|
|
125
|
+
}
|
|
126
|
+
/** Options shared by the OpenAI Responses and Completions transports. */
|
|
127
|
+
type BaseOpenAIStreamOptions = StreamOptions & {
|
|
128
|
+
topP?: number;
|
|
129
|
+
authProfileId?: string;
|
|
130
|
+
firstEventTimeoutMs?: number;
|
|
131
|
+
onFirstEventTimeout?: (reason: Error) => void;
|
|
132
|
+
openclawCodeModeToolSurface?: boolean;
|
|
133
|
+
frequencyPenalty?: number;
|
|
134
|
+
presencePenalty?: number;
|
|
135
|
+
seed?: number;
|
|
136
|
+
};
|
|
137
|
+
/** Superset retained under the provider's published compatibility type name. */
|
|
138
|
+
type OpenAICompletionsOptions = BaseOpenAIStreamOptions & {
|
|
139
|
+
toolChoice?: OpenAICompletionsToolChoice;
|
|
140
|
+
reasoning?: OpenAIReasoningEffort;
|
|
141
|
+
reasoningEffort?: OpenAIReasoningEffort;
|
|
142
|
+
};
|
|
143
|
+
//#endregion
|
|
144
|
+
export { resolveOpenAIReasoningEffortForModel as _, OpenAICompletionsOptions as a, supportsOpenAITemperature as b, projectOpenAITools as c, OpenAIApiReasoningEffort as d, OpenAIReasoningEffort as f, normalizeOpenAIReasoningEffort as g, isOpenAIGpt56Model as h, BaseOpenAIStreamOptions as i, reconcileOpenAICompletionsToolChoice as l, isOpenAIGpt55Model as m, AnthropicOptions as n, OpenAICompletionsToolChoice as o, isOpenAIGpt54MiniModel as p, AnthropicThinkingDisplay as r, OpenAIToolProjection as s, AnthropicEffort as t, reconcileOpenAIResponsesToolChoice as u, resolveOpenAISupportedReasoningEfforts as v, supportsOpenAIReasoningEffort as y };
|
package/dist/providers.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { n as ApiRegistry } from "./api-registry-
|
|
1
|
+
import { n as ApiRegistry } from "./api-registry-DlMgPR39.mjs";
|
|
2
|
+
import { n as clampOpenAIPromptCacheKey, t as OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH } from "./openai-prompt-cache-2uo_1OR1.mjs";
|
|
2
3
|
|
|
3
4
|
//#region packages/ai/src/providers/register-builtins.d.ts
|
|
4
5
|
/** Source id used for built-in API provider registrations. */
|
|
@@ -8,4 +9,4 @@ declare function registerBuiltInApiProviders(registry: ApiRegistry): void;
|
|
|
8
9
|
/** Restores the built-in provider registry state for tests. */
|
|
9
10
|
declare function resetApiProviders(registry: ApiRegistry): void;
|
|
10
11
|
//#endregion
|
|
11
|
-
export { BUILT_IN_API_PROVIDER_SOURCE_ID, registerBuiltInApiProviders, resetApiProviders };
|
|
12
|
+
export { BUILT_IN_API_PROVIDER_SOURCE_ID, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH, clampOpenAIPromptCacheKey, registerBuiltInApiProviders, resetApiProviders };
|
package/dist/providers.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as AssistantMessageEventStream } from "./event-stream-D8n2uFee.mjs";
|
|
2
|
+
import { n as clampOpenAIPromptCacheKey, t as OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH } from "./openai-prompt-cache-mZTCdRPo.mjs";
|
|
2
3
|
//#region packages/ai/src/providers/register-builtins.ts
|
|
3
4
|
/** Source id used for built-in API provider registrations. */
|
|
4
5
|
const BUILT_IN_API_PROVIDER_SOURCE_ID = "core:built-in";
|
|
@@ -63,35 +64,35 @@ function createLazyRegistration(api, importModule, select) {
|
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
const registerBuiltIns = [
|
|
66
|
-
createLazyRegistration("anthropic-messages", () => import("./anthropic-
|
|
67
|
+
createLazyRegistration("anthropic-messages", () => import("./anthropic-CH4UUnZr.mjs").then((n) => n.t), (module) => ({
|
|
67
68
|
stream: module.streamAnthropic,
|
|
68
69
|
streamSimple: module.streamSimpleAnthropic
|
|
69
70
|
})),
|
|
70
|
-
createLazyRegistration("openai-completions", () => import("./openai-completions-
|
|
71
|
+
createLazyRegistration("openai-completions", () => import("./openai-completions-DsOxhOD1.mjs").then((n) => n.t), (module) => ({
|
|
71
72
|
stream: module.streamOpenAICompletions,
|
|
72
73
|
streamSimple: module.streamSimpleOpenAICompletions
|
|
73
74
|
})),
|
|
74
|
-
createLazyRegistration("mistral-conversations", () => import("./mistral-
|
|
75
|
+
createLazyRegistration("mistral-conversations", () => import("./mistral-CWmpvWYh.mjs"), (module) => ({
|
|
75
76
|
stream: module.streamMistral,
|
|
76
77
|
streamSimple: module.streamSimpleMistral
|
|
77
78
|
})),
|
|
78
|
-
createLazyRegistration("openai-responses", () => import("./openai-responses-
|
|
79
|
+
createLazyRegistration("openai-responses", () => import("./openai-responses-BT7A3sLu.mjs").then((n) => n.t), (module) => ({
|
|
79
80
|
stream: module.streamOpenAIResponses,
|
|
80
81
|
streamSimple: module.streamSimpleOpenAIResponses
|
|
81
82
|
})),
|
|
82
|
-
createLazyRegistration("azure-openai-responses", () => import("./azure-openai-responses-
|
|
83
|
+
createLazyRegistration("azure-openai-responses", () => import("./azure-openai-responses-CImcwB83.mjs"), (module) => ({
|
|
83
84
|
stream: module.streamAzureOpenAIResponses,
|
|
84
85
|
streamSimple: module.streamSimpleAzureOpenAIResponses
|
|
85
86
|
})),
|
|
86
|
-
createLazyRegistration("openai-chatgpt-responses", () => import("./openai-chatgpt-responses-
|
|
87
|
+
createLazyRegistration("openai-chatgpt-responses", () => import("./openai-chatgpt-responses-B84Ibtrd.mjs"), (module) => ({
|
|
87
88
|
stream: module.streamOpenAICodexResponses,
|
|
88
89
|
streamSimple: module.streamSimpleOpenAICodexResponses
|
|
89
90
|
})),
|
|
90
|
-
createLazyRegistration("google-generative-ai", () => import("./google-
|
|
91
|
+
createLazyRegistration("google-generative-ai", () => import("./google-CtSg0iTS.mjs"), (module) => ({
|
|
91
92
|
stream: module.streamGoogle,
|
|
92
93
|
streamSimple: module.streamSimpleGoogle
|
|
93
94
|
})),
|
|
94
|
-
createLazyRegistration("google-vertex", () => import("./google-vertex-
|
|
95
|
+
createLazyRegistration("google-vertex", () => import("./google-vertex-31f1uS9L.mjs"), (module) => ({
|
|
95
96
|
stream: module.streamGoogleVertex,
|
|
96
97
|
streamSimple: module.streamSimpleGoogleVertex
|
|
97
98
|
}))
|
|
@@ -106,4 +107,4 @@ function resetApiProviders(registry) {
|
|
|
106
107
|
registerBuiltInApiProviders(registry);
|
|
107
108
|
}
|
|
108
109
|
//#endregion
|
|
109
|
-
export { BUILT_IN_API_PROVIDER_SOURCE_ID, registerBuiltInApiProviders, resetApiProviders };
|
|
110
|
+
export { BUILT_IN_API_PROVIDER_SOURCE_ID, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH, clampOpenAIPromptCacheKey, registerBuiltInApiProviders, resetApiProviders };
|