@ai-sdk/provider-utils 5.0.70 → 5.0.72
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/CHANGELOG.md +29 -0
- package/dist/index.d.ts +109 -33
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/map-reasoning-to-provider.ts +76 -33
- package/src/resolve.ts +25 -0
- package/src/types/index.ts +5 -0
- package/src/types/sandbox.ts +87 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 5.0.72
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7716e18: Support promises and synchronous or asynchronous callbacks in provider API key and token settings. Resolve credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.
|
|
8
|
+
|
|
9
|
+
The experimental OpenAI Live `getServerWebSocketConfig()` method can now resolve asynchronously. Await its result before using the connection settings.
|
|
10
|
+
|
|
11
|
+
- 5c247e9: feat(sandbox): add `stat`, `listDirectory`, and `deleteFile` to `Experimental_SandboxSession`, and specify that relative paths in every method resolve against the directory `run` and `spawn` start in
|
|
12
|
+
|
|
13
|
+
The just-bash and Vercel Sandbox adapters implement the new methods. Both now resolve a relative `workingDirectory` for `run` and `spawn` against the sandbox's working directory, and the just-bash adapter rejects writes to a directory instead of replacing it with a file.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [dcd2f8d]
|
|
16
|
+
- @ai-sdk/provider@4.0.35
|
|
17
|
+
|
|
18
|
+
## 5.0.71
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 61a315e: fix: map the top-level `reasoning` option consistently across providers
|
|
23
|
+
|
|
24
|
+
Providers now resolve reasoning the same way:
|
|
25
|
+
|
|
26
|
+
1. A provider-specific reasoning setting in `providerOptions` is sent unchanged. OpenAI no longer drops `providerOptions.openai.reasoningEffort` values that are not in its list for the model, and Fireworks no longer rewrites `providerOptions.fireworks.reasoningEffort`. Fireworks also sends top-level `reasoning` values directly instead of rounding them to `'high'` at most, except for model families known to reject `'none'` (GPT-OSS, GLM-5.3, Muse Spark) or `'minimal'` (Nemotron, Inkling).
|
|
27
|
+
2. Otherwise, `reasoning` maps to the closest level the model supports, rounding down, and rounds up only when there is no lower level. For example, `'xhigh'` now maps to `'high'` instead of `'max'` on Anthropic and Bedrock models without `xhigh` effort, and `'medium'` maps to `'low'` instead of `'high'` on DeepSeek, Kimi K3, and Mistral GLM-5.3 models.
|
|
28
|
+
3. `'none'` on a model that cannot disable reasoning maps to the model's lowest level with a compatibility warning, instead of being dropped or sending a request the API rejects. This affects GPT-6 models without `'none'`, xAI grok-4.5 and later, Groq GPT-OSS, Kimi K3, Perplexity, QuiverAI, Bedrock OpenAI `gpt-oss` models, and Gemini 2.5 Pro (minimum thinking budget). Gemini 3 and Anthropic and Bedrock `between_tools` mappings now emit the compatibility warning too.
|
|
29
|
+
|
|
30
|
+
`mapReasoningToProviderEffort` now accepts any `reasoning` value, returns an optional `providerOptionsEffort` unchanged, and rounds levels that are missing from the effort map to the closest supported level. `mapReasoningToProviderBudget` maps `'none'` to the minimum reasoning budget, always returns a budget, and uses the default percentage for levels missing from `budgetPercentages`. `OpenAICompatibleChatConfig` adds an optional `mapReasoning` function for mapping the top-level `reasoning` option.
|
|
31
|
+
|
|
3
32
|
## 5.0.70
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1479,39 +1479,51 @@ export declare function loadSetting({ settingValue, environmentVariableName, set
|
|
|
1479
1479
|
//#endregion
|
|
1480
1480
|
//#region src/map-reasoning-to-provider.d.ts
|
|
1481
1481
|
type ReasoningLevel = Exclude<LanguageModelV4CallOptions['reasoning'], 'none' | 'provider-default' | undefined>;
|
|
1482
|
-
export declare function isCustomReasoning(reasoning: LanguageModelV4CallOptions['reasoning']): reasoning is
|
|
1482
|
+
export declare function isCustomReasoning(reasoning: LanguageModelV4CallOptions['reasoning']): reasoning is ReasoningLevel | 'none';
|
|
1483
1483
|
/**
|
|
1484
|
-
* Maps a top-level reasoning
|
|
1485
|
-
* the given effort map. Pushes a compatibility warning if the reasoning level
|
|
1486
|
-
* maps to a different string, or an unsupported warning if the level is not
|
|
1487
|
-
* present in the map.
|
|
1484
|
+
* Maps a top-level reasoning value to a provider-specific effort string.
|
|
1488
1485
|
*
|
|
1489
|
-
*
|
|
1490
|
-
*
|
|
1486
|
+
* A `providerOptionsEffort` (the reasoning effort set in provider options) is
|
|
1487
|
+
* returned unchanged. Otherwise, `undefined` and `'provider-default'` return
|
|
1488
|
+
* `undefined`, and other reasoning values are mapped with the effort map.
|
|
1489
|
+
*
|
|
1490
|
+
* The effort map should only contain the values that the model supports. An
|
|
1491
|
+
* unsupported value maps to the next lower supported level, or the next higher
|
|
1492
|
+
* one if there is no lower level. `'none'` is never used as a fallback, so an
|
|
1493
|
+
* unsupported `'none'` maps to the lowest supported level.
|
|
1494
|
+
*
|
|
1495
|
+
* Pushes a compatibility warning if the effort that is sent differs from the
|
|
1496
|
+
* requested value, or an unsupported warning if the effort map is empty.
|
|
1497
|
+
*
|
|
1498
|
+
* @returns The provider options effort, the mapped effort string, or
|
|
1499
|
+
* `undefined` if no effort should be sent.
|
|
1491
1500
|
*/
|
|
1492
|
-
export declare function mapReasoningToProviderEffort<T extends string>({ reasoning, effortMap, warnings }: {
|
|
1493
|
-
reasoning:
|
|
1494
|
-
effortMap: Partial<Record<ReasoningLevel, T>>;
|
|
1501
|
+
export declare function mapReasoningToProviderEffort<T extends string, P extends string = never>({ reasoning, effortMap, providerOptionsEffort, warnings }: {
|
|
1502
|
+
reasoning: LanguageModelV4CallOptions['reasoning'];
|
|
1503
|
+
effortMap: Partial<Record<ReasoningLevel | 'none', T>>;
|
|
1504
|
+
providerOptionsEffort?: P | null;
|
|
1495
1505
|
warnings: SharedV4Warning[];
|
|
1496
|
-
}): T | undefined;
|
|
1506
|
+
}): T | P | undefined;
|
|
1497
1507
|
/**
|
|
1498
|
-
* Maps a top-level reasoning
|
|
1499
|
-
* the model's max output tokens by a percentage
|
|
1500
|
-
*
|
|
1501
|
-
* `
|
|
1502
|
-
*
|
|
1508
|
+
* Maps a top-level reasoning value to an absolute token budget by multiplying
|
|
1509
|
+
* the model's max output tokens by a percentage for the level. Levels missing
|
|
1510
|
+
* from `budgetPercentages` use the default percentages. The result is clamped
|
|
1511
|
+
* between `minReasoningBudget` (default 1024) and `maxReasoningBudget`.
|
|
1512
|
+
*
|
|
1513
|
+
* Handle `'none'` before calling this function when the model can disable
|
|
1514
|
+
* reasoning. Otherwise, `'none'` maps to `minReasoningBudget` with a
|
|
1515
|
+
* compatibility warning.
|
|
1503
1516
|
*
|
|
1504
|
-
* @returns The computed token budget
|
|
1505
|
-
* supported.
|
|
1517
|
+
* @returns The computed token budget.
|
|
1506
1518
|
*/
|
|
1507
1519
|
export declare function mapReasoningToProviderBudget({ reasoning, maxOutputTokens, maxReasoningBudget, minReasoningBudget, budgetPercentages, warnings }: {
|
|
1508
|
-
reasoning: ReasoningLevel;
|
|
1520
|
+
reasoning: ReasoningLevel | 'none';
|
|
1509
1521
|
maxOutputTokens: number;
|
|
1510
1522
|
maxReasoningBudget: number;
|
|
1511
1523
|
minReasoningBudget?: number;
|
|
1512
1524
|
budgetPercentages?: Partial<Record<ReasoningLevel, number>>;
|
|
1513
1525
|
warnings: SharedV4Warning[];
|
|
1514
|
-
}): number
|
|
1526
|
+
}): number;
|
|
1515
1527
|
//#endregion
|
|
1516
1528
|
//#region src/maybe-promise-like.d.ts
|
|
1517
1529
|
/**
|
|
@@ -1867,20 +1879,21 @@ type SandboxSpawnOptionsWithoutStdin = SandboxProcessOptions & {
|
|
|
1867
1879
|
stdin?: false;
|
|
1868
1880
|
};
|
|
1869
1881
|
/**
|
|
1870
|
-
* Options for reading
|
|
1882
|
+
* Options for reading, inspecting, or deleting one path in the sandbox.
|
|
1871
1883
|
*/
|
|
1872
|
-
type
|
|
1884
|
+
type PathOptions = {
|
|
1873
1885
|
/**
|
|
1874
|
-
* Path
|
|
1886
|
+
* Path to operate on.
|
|
1875
1887
|
*/
|
|
1876
1888
|
path: string;
|
|
1877
1889
|
/**
|
|
1878
|
-
* Signal that can be used to abort the
|
|
1890
|
+
* Signal that can be used to abort the operation.
|
|
1879
1891
|
*/
|
|
1880
1892
|
abortSignal?: AbortSignal;
|
|
1881
1893
|
};
|
|
1882
|
-
type
|
|
1883
|
-
type
|
|
1894
|
+
type SandboxReadFileOptions = PathOptions;
|
|
1895
|
+
type SandboxReadBinaryFileOptions = PathOptions;
|
|
1896
|
+
type SandboxReadTextFileOptions = PathOptions & {
|
|
1884
1897
|
/**
|
|
1885
1898
|
* Text encoding used to decode the file bytes. Defaults to `"utf-8"`.
|
|
1886
1899
|
*/
|
|
@@ -1895,6 +1908,37 @@ type SandboxReadTextFileOptions = SandboxReadFileOptions & {
|
|
|
1895
1908
|
*/
|
|
1896
1909
|
endLine?: number;
|
|
1897
1910
|
};
|
|
1911
|
+
type SandboxStatOptions = PathOptions;
|
|
1912
|
+
type SandboxListDirectoryOptions = PathOptions;
|
|
1913
|
+
type SandboxDeleteFileOptions = PathOptions;
|
|
1914
|
+
/**
|
|
1915
|
+
* Information about a file or directory in the sandbox, returned by
|
|
1916
|
+
* `SandboxSession.stat`. Symbolic links are followed.
|
|
1917
|
+
*/
|
|
1918
|
+
type SandboxFileStat = {
|
|
1919
|
+
/**
|
|
1920
|
+
* Type of the path. `other` covers devices, sockets, and named pipes.
|
|
1921
|
+
*/
|
|
1922
|
+
type: 'file' | 'directory' | 'other';
|
|
1923
|
+
/**
|
|
1924
|
+
* Size in bytes. The size of a directory is implementation-defined.
|
|
1925
|
+
*/
|
|
1926
|
+
size: number;
|
|
1927
|
+
};
|
|
1928
|
+
/**
|
|
1929
|
+
* Entry in a directory listing, returned by `SandboxSession.listDirectory`.
|
|
1930
|
+
*/
|
|
1931
|
+
type SandboxDirectoryEntry = {
|
|
1932
|
+
/**
|
|
1933
|
+
* Name of the entry, without the directory path.
|
|
1934
|
+
*/
|
|
1935
|
+
name: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Type of the entry. Symbolic links are reported as `symlink` and not
|
|
1938
|
+
* followed. `other` covers devices, sockets, and named pipes.
|
|
1939
|
+
*/
|
|
1940
|
+
type: 'file' | 'directory' | 'symlink' | 'other';
|
|
1941
|
+
};
|
|
1898
1942
|
/**
|
|
1899
1943
|
* Options for writing a file to the sandbox. `CONTENT` is the payload written
|
|
1900
1944
|
* to the file: a byte stream, raw bytes, or a string.
|
|
@@ -1923,6 +1967,13 @@ type SandboxWriteTextFileOptions = WriteFileOptions<string> & {
|
|
|
1923
1967
|
};
|
|
1924
1968
|
/**
|
|
1925
1969
|
* Sandbox session that can execute commands and read/write files.
|
|
1970
|
+
*
|
|
1971
|
+
* Relative paths in every method, including the `workingDirectory` option of
|
|
1972
|
+
* `run` and `spawn`, resolve against the same base directory: the directory
|
|
1973
|
+
* that `run` and `spawn` start in when no `workingDirectory` is given. The
|
|
1974
|
+
* base directory does not change for the lifetime of the session; changing
|
|
1975
|
+
* the directory inside a command, e.g. with `cd`, only affects that command.
|
|
1976
|
+
* Absolute paths are used as is.
|
|
1926
1977
|
*/
|
|
1927
1978
|
type SandboxSession = {
|
|
1928
1979
|
/**
|
|
@@ -1935,9 +1986,8 @@ type SandboxSession = {
|
|
|
1935
1986
|
* Read one file from the sandbox as a stream of bytes. Resolves to `null`
|
|
1936
1987
|
* when the file does not exist.
|
|
1937
1988
|
*
|
|
1938
|
-
*
|
|
1939
|
-
*
|
|
1940
|
-
* to stream bytes.
|
|
1989
|
+
* This is the lowest-level read primitive; prefer `readBinaryFile` or
|
|
1990
|
+
* `readTextFile` unless you need to stream bytes.
|
|
1941
1991
|
*/
|
|
1942
1992
|
readonly readFile: (options: SandboxReadFileOptions) => PromiseLike<ReadableStream<Uint8Array> | null>;
|
|
1943
1993
|
/**
|
|
@@ -1955,7 +2005,8 @@ type SandboxSession = {
|
|
|
1955
2005
|
readonly readTextFile: (options: SandboxReadTextFileOptions) => PromiseLike<string | null>;
|
|
1956
2006
|
/**
|
|
1957
2007
|
* Write one file to the sandbox from a stream of bytes. Creates parent
|
|
1958
|
-
* directories recursively and overwrites any existing file.
|
|
2008
|
+
* directories recursively and overwrites any existing file. Rejects when the
|
|
2009
|
+
* path is a directory.
|
|
1959
2010
|
*
|
|
1960
2011
|
* This is the lowest-level write primitive; prefer `writeBinaryFile` or
|
|
1961
2012
|
* `writeTextFile` when the full content is already materialized in memory.
|
|
@@ -1963,15 +2014,34 @@ type SandboxSession = {
|
|
|
1963
2014
|
readonly writeFile: (options: SandboxWriteFileOptions) => PromiseLike<void>;
|
|
1964
2015
|
/**
|
|
1965
2016
|
* Write one file to the sandbox from raw bytes. Creates parent directories
|
|
1966
|
-
* recursively and overwrites any existing file.
|
|
2017
|
+
* recursively and overwrites any existing file. Rejects when the path is a
|
|
2018
|
+
* directory.
|
|
1967
2019
|
*/
|
|
1968
2020
|
readonly writeBinaryFile: (options: SandboxWriteBinaryFileOptions) => PromiseLike<void>;
|
|
1969
2021
|
/**
|
|
1970
2022
|
* Write one file to the sandbox from a string, encoded using the requested
|
|
1971
2023
|
* encoding. Creates parent directories recursively and overwrites any
|
|
1972
|
-
* existing file.
|
|
2024
|
+
* existing file. Rejects when the path is a directory.
|
|
1973
2025
|
*/
|
|
1974
2026
|
readonly writeTextFile: (options: SandboxWriteTextFileOptions) => PromiseLike<void>;
|
|
2027
|
+
/**
|
|
2028
|
+
* Get information about a file or directory. Symbolic links are followed.
|
|
2029
|
+
* Resolves to `null` when the path does not exist.
|
|
2030
|
+
*/
|
|
2031
|
+
readonly stat: (options: SandboxStatOptions) => PromiseLike<SandboxFileStat | null>;
|
|
2032
|
+
/**
|
|
2033
|
+
* List the entries of one directory, without descending into
|
|
2034
|
+
* subdirectories. The order of entries is unspecified. Resolves to `null`
|
|
2035
|
+
* when the directory does not exist and rejects when the path is not a
|
|
2036
|
+
* directory.
|
|
2037
|
+
*/
|
|
2038
|
+
readonly listDirectory: (options: SandboxListDirectoryOptions) => PromiseLike<Array<SandboxDirectoryEntry> | null>;
|
|
2039
|
+
/**
|
|
2040
|
+
* Delete one file. A symbolic link is deleted itself, not its target.
|
|
2041
|
+
* Resolves to `true` when the file was deleted and `false` when it does not
|
|
2042
|
+
* exist. Rejects when the path is a directory.
|
|
2043
|
+
*/
|
|
2044
|
+
readonly deleteFile: (options: SandboxDeleteFileOptions) => PromiseLike<boolean>;
|
|
1975
2045
|
/**
|
|
1976
2046
|
* Spawn a long-running process in the sandbox. Returns immediately with a
|
|
1977
2047
|
* handle that streams stdout/stderr, can be waited on, and can be killed.
|
|
@@ -2506,6 +2576,12 @@ export type Resolvable<T> = MaybePromiseLike<T> | (() => MaybePromiseLike<T>);
|
|
|
2506
2576
|
* or a function returning a Promise.
|
|
2507
2577
|
*/
|
|
2508
2578
|
export declare function resolve<T>(value: Resolvable<T>): Promise<T>;
|
|
2579
|
+
/**
|
|
2580
|
+
* Resolves and transforms a value, preserving synchronous results. This allows
|
|
2581
|
+
* synchronous credentials to remain usable by workflow serialization while
|
|
2582
|
+
* asynchronous credentials are awaited by request handlers.
|
|
2583
|
+
*/
|
|
2584
|
+
export declare function resolveWith<T, U>(value: Resolvable<T>, transform: (value: T) => U): U | Promise<Awaited<U>>;
|
|
2509
2585
|
//#endregion
|
|
2510
2586
|
//#region src/resolve-full-media-type.d.ts
|
|
2511
2587
|
/**
|
|
@@ -3180,5 +3256,5 @@ interface ToolResult<NAME extends string, INPUT, OUTPUT> {
|
|
|
3180
3256
|
dynamic?: boolean;
|
|
3181
3257
|
}
|
|
3182
3258
|
//#endregion
|
|
3183
|
-
export { type Arrayable, type AssistantContent, type AssistantModelMessage, type Context, type CustomPart, type DataContent, type DynamicTool, EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER as EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER, SPEECH_STREAM_START_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_START_FRAME_TYPE, SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE, SPEECH_STREAM_TEXT_DONE_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_START_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE, type EmbeddingModelProviderOptionsTransformer, type EventSourceMessage, EventSourceParserStream, type ExecutableTool, type SandboxProcess as Experimental_SandboxProcess, type SandboxReadBinaryFileOptions as Experimental_SandboxReadBinaryFileOptions, type SandboxReadFileOptions as Experimental_SandboxReadFileOptions, type SandboxReadTextFileOptions as Experimental_SandboxReadTextFileOptions, type SandboxRunOptions as Experimental_SandboxRunOptions, type SandboxSession as Experimental_SandboxSession, type SandboxSpawnOptions as Experimental_SandboxSpawnOptions, type SandboxSpawnOptionsWithStdin as Experimental_SandboxSpawnOptionsWithStdin, type SandboxSpawnOptionsWithoutStdin as Experimental_SandboxSpawnOptionsWithoutStdin, type SandboxWriteBinaryFileOptions as Experimental_SandboxWriteBinaryFileOptions, type SandboxWriteFileOptions as Experimental_SandboxWriteFileOptions, type SandboxWriteTextFileOptions as Experimental_SandboxWriteTextFileOptions, type SpeechStreamClientFrame as Experimental_SpeechStreamClientFrame, type SpeechStreamStartFrame as Experimental_SpeechStreamStartFrame, type SpeechStreamTextDeltaFrame as Experimental_SpeechStreamTextDeltaFrame, type ToolCallerDefinition as Experimental_ToolCallerDefinition, type ToolCallerTool as Experimental_ToolCallerTool, type TranscriptionStreamClientFrame as Experimental_TranscriptionStreamClientFrame, type TranscriptionStreamStartFrame as Experimental_TranscriptionStreamStartFrame, type WritableSandboxProcess as Experimental_WritableSandboxProcess, type FileData, type FileDataData, type FileDataReference, type FileDataText, type FileDataUrl, type FilePart, type FlexibleSchema, type FunctionTool, type HasRequiredKey, type IdGenerator, type ImagePart, type InferSchema, type InferToolContext, type InferToolInput, type InferToolOutput, type InferToolSetContext, type LazySchema, type MaybePromiseLike, type ModelMessage, type ProviderDefinedTool, type ProviderDefinedToolFactory, type ProviderDefinedToolFactoryWithOutputSchema, type ProviderExecutedTool, type ProviderExecutedToolFactory, type ProviderOptions, type ProviderReference, type ProviderStreamError, type ReasoningFilePart, type ReasoningPart, type Schema, type StreamingToolCallDelta, type StreamingToolCallTrackerOptions, type SystemModelMessage, type TextPart, type Tool, type ToolApprovalRequest, type ToolApprovalResponse, type ToolCall, type ToolCallPart, type ToolContent, type ToolExecuteFunction, type ToolExecutionOptions, type ToolModelMessage, type ToolNameMapping, type ToolNeedsApprovalFunction, type ToolResult, type ToolResultOutput, type ToolResultPart, type ToolSet, type UserContent, type UserModelMessage, type ValidationResult, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, type WebSocketConnection, type WebSocketConstructor, type WebSocketLike, getToolCaller as experimental_getToolCaller, parseSpeechStreamClientFrame as experimental_parseSpeechStreamClientFrame, parseSpeechStreamPart as experimental_parseSpeechStreamPart, parseTranscriptionStreamClientFrame as experimental_parseTranscriptionStreamClientFrame, parseTranscriptionStreamPart as experimental_parseTranscriptionStreamPart, serializeSpeechStreamPart as experimental_serializeSpeechStreamPart, serializeTranscriptionStreamPart as experimental_serializeTranscriptionStreamPart, toolCaller as experimental_toolCaller, getErrorMessage, tool$1 as tool };
|
|
3259
|
+
export { type Arrayable, type AssistantContent, type AssistantModelMessage, type Context, type CustomPart, type DataContent, type DynamicTool, EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER as EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER, SPEECH_STREAM_START_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_START_FRAME_TYPE, SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE, SPEECH_STREAM_TEXT_DONE_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_START_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE, type EmbeddingModelProviderOptionsTransformer, type EventSourceMessage, EventSourceParserStream, type ExecutableTool, type SandboxDeleteFileOptions as Experimental_SandboxDeleteFileOptions, type SandboxDirectoryEntry as Experimental_SandboxDirectoryEntry, type SandboxFileStat as Experimental_SandboxFileStat, type SandboxListDirectoryOptions as Experimental_SandboxListDirectoryOptions, type SandboxProcess as Experimental_SandboxProcess, type SandboxReadBinaryFileOptions as Experimental_SandboxReadBinaryFileOptions, type SandboxReadFileOptions as Experimental_SandboxReadFileOptions, type SandboxReadTextFileOptions as Experimental_SandboxReadTextFileOptions, type SandboxRunOptions as Experimental_SandboxRunOptions, type SandboxSession as Experimental_SandboxSession, type SandboxSpawnOptions as Experimental_SandboxSpawnOptions, type SandboxSpawnOptionsWithStdin as Experimental_SandboxSpawnOptionsWithStdin, type SandboxSpawnOptionsWithoutStdin as Experimental_SandboxSpawnOptionsWithoutStdin, type SandboxStatOptions as Experimental_SandboxStatOptions, type SandboxWriteBinaryFileOptions as Experimental_SandboxWriteBinaryFileOptions, type SandboxWriteFileOptions as Experimental_SandboxWriteFileOptions, type SandboxWriteTextFileOptions as Experimental_SandboxWriteTextFileOptions, type SpeechStreamClientFrame as Experimental_SpeechStreamClientFrame, type SpeechStreamStartFrame as Experimental_SpeechStreamStartFrame, type SpeechStreamTextDeltaFrame as Experimental_SpeechStreamTextDeltaFrame, type ToolCallerDefinition as Experimental_ToolCallerDefinition, type ToolCallerTool as Experimental_ToolCallerTool, type TranscriptionStreamClientFrame as Experimental_TranscriptionStreamClientFrame, type TranscriptionStreamStartFrame as Experimental_TranscriptionStreamStartFrame, type WritableSandboxProcess as Experimental_WritableSandboxProcess, type FileData, type FileDataData, type FileDataReference, type FileDataText, type FileDataUrl, type FilePart, type FlexibleSchema, type FunctionTool, type HasRequiredKey, type IdGenerator, type ImagePart, type InferSchema, type InferToolContext, type InferToolInput, type InferToolOutput, type InferToolSetContext, type LazySchema, type MaybePromiseLike, type ModelMessage, type ProviderDefinedTool, type ProviderDefinedToolFactory, type ProviderDefinedToolFactoryWithOutputSchema, type ProviderExecutedTool, type ProviderExecutedToolFactory, type ProviderOptions, type ProviderReference, type ProviderStreamError, type ReasoningFilePart, type ReasoningPart, type Schema, type StreamingToolCallDelta, type StreamingToolCallTrackerOptions, type SystemModelMessage, type TextPart, type Tool, type ToolApprovalRequest, type ToolApprovalResponse, type ToolCall, type ToolCallPart, type ToolContent, type ToolExecuteFunction, type ToolExecutionOptions, type ToolModelMessage, type ToolNameMapping, type ToolNeedsApprovalFunction, type ToolResult, type ToolResultOutput, type ToolResultPart, type ToolSet, type UserContent, type UserModelMessage, type ValidationResult, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, type WebSocketConnection, type WebSocketConstructor, type WebSocketLike, getToolCaller as experimental_getToolCaller, parseSpeechStreamClientFrame as experimental_parseSpeechStreamClientFrame, parseSpeechStreamPart as experimental_parseSpeechStreamPart, parseTranscriptionStreamClientFrame as experimental_parseTranscriptionStreamClientFrame, parseTranscriptionStreamPart as experimental_parseTranscriptionStreamPart, serializeSpeechStreamPart as experimental_serializeSpeechStreamPart, serializeTranscriptionStreamPart as experimental_serializeTranscriptionStreamPart, toolCaller as experimental_toolCaller, getErrorMessage, tool$1 as tool };
|
|
3184
3260
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["symbol","BatchV4Status","tool","SpeechModelV4StreamPart","TranscriptionModelV4StreamPart"],"sources":["../src/as-array.ts","../src/combine-headers.ts","../src/websocket.ts","../src/connect-to-websocket.ts","../src/convert-async-iterator-to-readable-stream.ts","../src/types/data-content.ts","../src/types/file-data.ts","../src/types/provider-options.ts","../src/types/provider-reference.ts","../src/types/content-part.ts","../src/convert-inline-file-data-to-uint8-array.ts","../src/convert-image-model-file-to-data-uri.ts","../src/convert-json-response-tool-stream.ts","../src/convert-to-form-data.ts","../src/create-language-model-response-metadata.ts","../src/create-null-language-model-usage.ts","../src/create-tool-name-mapping.ts","../src/create-provider-stream-error.ts","../src/delay.ts","../src/delayed-promise.ts","../src/fetch-function.ts","../src/schema.ts","../src/parse-json.ts","../src/response-handler.ts","../src/delete-from-api.ts","../src/detect-media-type.ts","../src/download-blob.ts","../src/download-error.ts","../src/embedding-model-capabilities.ts","../src/fetch-with-validated-redirects.ts","../src/encode-path-segment.ts","../src/extract-lines.ts","../src/extract-response-headers.ts","../src/fetch-untrusted-url.ts","../src/filter-nullable.ts","../src/generate-id.ts","../src/get-from-api.ts","../src/get-runtime-environment-user-agent.ts","../src/has-required-key.ts","../src/inject-json-instruction.ts","../src/is-abort-error.ts","../src/is-browser-runtime.ts","../src/is-buffer.ts","../src/is-same-origin.ts","../src/is-non-nullable.ts","../src/is-provider-reference.ts","../src/is-record.ts","../src/is-url-supported.ts","../src/is-valid-hostname-part.ts","../src/load-api-key.ts","../src/load-optional-setting.ts","../src/load-setting.ts","../src/map-reasoning-to-provider.ts","../src/maybe-promise-like.ts","../src/media-type-to-extension.ts","../src/normalize-headers.ts","../src/normalize-batch-request-counts.ts","../src/parse-json-event-stream.ts","../src/parse-provider-options.ts","../src/post-multipart-stream-to-api.ts","../src/post-to-api.ts","../src/types/context.ts","../src/types/executable-tool.ts","../src/types/never-optional.ts","../src/types/tool-approval-request.ts","../src/types/assistant-model-message.ts","../src/types/system-model-message.ts","../src/types/tool-approval-response.ts","../src/types/tool-model-message.ts","../src/types/user-model-message.ts","../src/types/model-message.ts","../src/types/sandbox.ts","../src/types/tool-execute-function.ts","../src/types/tool-needs-approval-function.ts","../src/types/tool.ts","../src/provider-defined-tool-factory.ts","../src/provider-executed-tool-factory.ts","../src/cancel-response-body.ts","../src/read-response-with-size-limit.ts","../src/remove-undefined-entries.ts","../src/resolve.ts","../src/resolve-full-media-type.ts","../src/resolve-provider-reference.ts","../src/retry-with-exponential-backoff.ts","../src/serialize-model-options.ts","../src/serialization-error.ts","../src/secure-json-parse.ts","../src/speech-stream-envelope.ts","../src/streaming-tool-call-tracker.ts","../src/strip-file-extension.ts","../src/transcription-stream-envelope.ts","../src/uint8-utils.ts","../src/validate-base-url.ts","../src/validate-download-url.ts","../src/validate-types.ts","../src/version.ts","../src/with-user-agent-suffix.ts","../src/without-trailing-slash.ts","../src/types/infer-tool-context.ts","../src/types/infer-tool-input.ts","../src/types/infer-tool-output.ts","../src/types/execute-tool.ts","../src/types/tool-set.ts","../src/types/infer-tool-set-context.ts","../src/types/tool-call.ts","../src/types/tool-caller.ts","../src/types/tool-result.ts"],"mappings":";;;;;;;;;;;;KAIY,UAAU,KAAK,IAAI;;;;wBAKf,QAAQ,GAAG,OAAO,UAAU,KAAK;;;wBCTjC,kBACX,SAAS,MAAM,kDACjB;;;KCAS;EACV;;WAES;EACT,KAAK,eAAe,aAAa;EACjC,MAAM,eAAe;EACrB,UAAU;EACV,aAAa;IAAS;;EACtB,WAAW;EACX,WAAW;;KAGD,4BACV,cAAc,KACd,+BACA;EACE,UAAU;MA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,eAAe;;;;;;;;;;;;;;;;;wBCgBvB,YAAY,aAAa,QAC9C,MACA,OACA;EAEA,MAAM,eAAe;EACrB,OAAO,eAAe;EACtB,SAAS,qBAAqB,iBAAiB;IAC7C;EACE;EAAqB,QAAQ,gBAAgB;;EAC7C;EAAe,QAAQ,gBAAgB;;;;;;;KC3BjC,UAAU,gBAGhB,0BACA,sBACA,wBACA,yBAEF,KACE;;;;;;;KCPD,uBAAuB,cAAc,cACvC,WAAW,SAAS,iBAAiB,QAAQ,MAAM,+CAE9B,iBAAiB,QAAQ,MAAM,eAE/C,IAAI,iBAAiB,QAAQ,MAAM;;;;;KAOtC,uBAAuB,cAAc,cACvC,WAAW,SAAS,iBAAiB,QAAQ,MAAM,+CAE9B,iBAAiB,QAAQ,MAAM,OAC/C,aACS,iBAAiB,QAAQ,MAAM;;;;;KAO3C,UAAU,aAAa,aAAa,SAAS,OAAO;;;;;;;;;KAU7C,oBAAoB,cAAc,WAAW,UACvD,uBAAuB,SAAS,uBAAuB;;;;;;;UCtCxC,SAAS,qBAAqB;;;;EAI7C;;;;EAKA,UAAU;;;;EAKV,OAAO;;;;;EAMP;;;;EAKA;;;;KCzBU;EAEN;EACA,OAAO,OAAO,YAAY;;;;;;;;EAQ1B,uBAAuB,OAAO;;EAG9B;EACA,yBACE,iBAAiB,gCACd;;KAGC,eAAe,aAAa,OAAO,QAAQ;WAC5C,yBAAyB;;iBAGpB,WAAW,aAAa,MACtC,MAAM,MACN,YAAY,uBACX,eAAe;iBAMF,cACd,MAAM,mBACL;;;;;;;UCnCc,WAAW,qBAAqB,OAAO;;;;EAItD;;;;EAKA,UAAU;;;;EAKV,OAAO;;;;EAKP,QAAQ;;;;EAKR;;;;EAKA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["symbol","BatchV4Status","tool","SpeechModelV4StreamPart","TranscriptionModelV4StreamPart"],"sources":["../src/as-array.ts","../src/combine-headers.ts","../src/websocket.ts","../src/connect-to-websocket.ts","../src/convert-async-iterator-to-readable-stream.ts","../src/types/data-content.ts","../src/types/file-data.ts","../src/types/provider-options.ts","../src/types/provider-reference.ts","../src/types/content-part.ts","../src/convert-inline-file-data-to-uint8-array.ts","../src/convert-image-model-file-to-data-uri.ts","../src/convert-json-response-tool-stream.ts","../src/convert-to-form-data.ts","../src/create-language-model-response-metadata.ts","../src/create-null-language-model-usage.ts","../src/create-tool-name-mapping.ts","../src/create-provider-stream-error.ts","../src/delay.ts","../src/delayed-promise.ts","../src/fetch-function.ts","../src/schema.ts","../src/parse-json.ts","../src/response-handler.ts","../src/delete-from-api.ts","../src/detect-media-type.ts","../src/download-blob.ts","../src/download-error.ts","../src/embedding-model-capabilities.ts","../src/fetch-with-validated-redirects.ts","../src/encode-path-segment.ts","../src/extract-lines.ts","../src/extract-response-headers.ts","../src/fetch-untrusted-url.ts","../src/filter-nullable.ts","../src/generate-id.ts","../src/get-from-api.ts","../src/get-runtime-environment-user-agent.ts","../src/has-required-key.ts","../src/inject-json-instruction.ts","../src/is-abort-error.ts","../src/is-browser-runtime.ts","../src/is-buffer.ts","../src/is-same-origin.ts","../src/is-non-nullable.ts","../src/is-provider-reference.ts","../src/is-record.ts","../src/is-url-supported.ts","../src/is-valid-hostname-part.ts","../src/load-api-key.ts","../src/load-optional-setting.ts","../src/load-setting.ts","../src/map-reasoning-to-provider.ts","../src/maybe-promise-like.ts","../src/media-type-to-extension.ts","../src/normalize-headers.ts","../src/normalize-batch-request-counts.ts","../src/parse-json-event-stream.ts","../src/parse-provider-options.ts","../src/post-multipart-stream-to-api.ts","../src/post-to-api.ts","../src/types/context.ts","../src/types/executable-tool.ts","../src/types/never-optional.ts","../src/types/tool-approval-request.ts","../src/types/assistant-model-message.ts","../src/types/system-model-message.ts","../src/types/tool-approval-response.ts","../src/types/tool-model-message.ts","../src/types/user-model-message.ts","../src/types/model-message.ts","../src/types/sandbox.ts","../src/types/tool-execute-function.ts","../src/types/tool-needs-approval-function.ts","../src/types/tool.ts","../src/provider-defined-tool-factory.ts","../src/provider-executed-tool-factory.ts","../src/cancel-response-body.ts","../src/read-response-with-size-limit.ts","../src/remove-undefined-entries.ts","../src/resolve.ts","../src/resolve-full-media-type.ts","../src/resolve-provider-reference.ts","../src/retry-with-exponential-backoff.ts","../src/serialize-model-options.ts","../src/serialization-error.ts","../src/secure-json-parse.ts","../src/speech-stream-envelope.ts","../src/streaming-tool-call-tracker.ts","../src/strip-file-extension.ts","../src/transcription-stream-envelope.ts","../src/uint8-utils.ts","../src/validate-base-url.ts","../src/validate-download-url.ts","../src/validate-types.ts","../src/version.ts","../src/with-user-agent-suffix.ts","../src/without-trailing-slash.ts","../src/types/infer-tool-context.ts","../src/types/infer-tool-input.ts","../src/types/infer-tool-output.ts","../src/types/execute-tool.ts","../src/types/tool-set.ts","../src/types/infer-tool-set-context.ts","../src/types/tool-call.ts","../src/types/tool-caller.ts","../src/types/tool-result.ts"],"mappings":";;;;;;;;;;;;KAIY,UAAU,KAAK,IAAI;;;;wBAKf,QAAQ,GAAG,OAAO,UAAU,KAAK;;;wBCTjC,kBACX,SAAS,MAAM,kDACjB;;;KCAS;EACV;;WAES;EACT,KAAK,eAAe,aAAa;EACjC,MAAM,eAAe;EACrB,UAAU;EACV,aAAa;IAAS;;EACtB,WAAW;EACX,WAAW;;KAGD,4BACV,cAAc,KACd,+BACA;EACE,UAAU;MAET;wBAEW,wBACd,WAAW,mCACV;;;;wBAca,eAAe,cAAc,MAAM;;;;;wBAgB7B,yBAAyB,gBAAgB;;;;;;;;wBAqBzC,4BACpB,QAAQ,iBAEN,eACA,gBACA;EAEA;EACA;EACA,cAAc;IAEf;;;UC9Ec;;EAEf,QAAQ;;;;;EAKR,QAAQ;;;;;;;;wBASM,qBACd,KACA,WACA,SACA,WACA,aACA,QACA,eACA,mBACA,eACA,SACA;EAEA,cAAc;EACd;EACA,UAAU;EACV,YAAY;EACZ,cAAc;EACd,UAAU,QAAQ;;EAElB,gBAAgB,wBAAwB;;EAExC,oBAAoB;EACpB;;;;;EAK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;wBCgBvB,YAAY,aAAa,QAC9C,MACA,OACA;EAEA,MAAM,eAAe;EACrB,OAAO,eAAe;EACtB,SAAS,qBAAqB,iBAAiB;IAC7C;EACE;EAAqB,QAAQ,gBAAgB;;EAC7C;EAAe,QAAQ,gBAAgB;;;;;;;KC3BjC,UAAU,gBAGhB,0BACA,sBACA,wBACA,yBAEF,KACE;;;;;;;KCPD,uBAAuB,cAAc,cACvC,WAAW,SAAS,iBAAiB,QAAQ,MAAM,+CAE9B,iBAAiB,QAAQ,MAAM,eAE/C,IAAI,iBAAiB,QAAQ,MAAM;;;;;KAOtC,uBAAuB,cAAc,cACvC,WAAW,SAAS,iBAAiB,QAAQ,MAAM,+CAE9B,iBAAiB,QAAQ,MAAM,OAC/C,aACS,iBAAiB,QAAQ,MAAM;;;;;KAO3C,UAAU,aAAa,aAAa,SAAS,OAAO;;;;;;;;;KAU7C,oBAAoB,cAAc,WAAW,UACvD,uBAAuB,SAAS,uBAAuB;;;;;;;UCtCxC,SAAS,qBAAqB;;;;EAI7C;;;;EAKA,UAAU;;;;EAKV,OAAO;;;;;EAMP;;;;EAKA;;;;KCzBU;EAEN;EACA,OAAO,OAAO,YAAY;;;;;;;;EAQ1B,uBAAuB,OAAO;;EAG9B;EACA,yBACE,iBAAiB,gCACd;;KAGC,eAAe,aAAa,OAAO,QAAQ;WAC5C,yBAAyB;;iBAGpB,WAAW,aAAa,MACtC,MAAM,MACN,YAAY,uBACX,eAAe;iBAMF,cACd,MAAM,mBACL;;;;;;;UCnCc,WAAW,qBAAqB,OAAO;;;;EAItD;;;;EAKA,UAAU;;;;EAKV,OAAO;;;;EAKP,QAAQ;;;;EAKR;;;;EAKA"}
|
package/dist/index.js
CHANGED
|
@@ -607,7 +607,7 @@ function handleFetchError({ error, url, requestBodyValues }) {
|
|
|
607
607
|
}
|
|
608
608
|
//#endregion
|
|
609
609
|
//#region src/version.ts
|
|
610
|
-
const VERSION = "5.0.
|
|
610
|
+
const VERSION = "5.0.72";
|
|
611
611
|
//#endregion
|
|
612
612
|
//#region src/normalize-headers.ts
|
|
613
613
|
/**
|
|
@@ -2033,21 +2033,48 @@ function loadSetting({ settingValue, environmentVariableName, settingName, descr
|
|
|
2033
2033
|
}
|
|
2034
2034
|
//#endregion
|
|
2035
2035
|
//#region src/map-reasoning-to-provider.ts
|
|
2036
|
+
/**
|
|
2037
|
+
* Reasoning levels in ascending order.
|
|
2038
|
+
*/
|
|
2039
|
+
const REASONING_LEVELS = [
|
|
2040
|
+
"minimal",
|
|
2041
|
+
"low",
|
|
2042
|
+
"medium",
|
|
2043
|
+
"high",
|
|
2044
|
+
"xhigh",
|
|
2045
|
+
"max"
|
|
2046
|
+
];
|
|
2036
2047
|
function isCustomReasoning(reasoning) {
|
|
2037
2048
|
return reasoning !== void 0 && reasoning !== "provider-default";
|
|
2038
2049
|
}
|
|
2039
2050
|
/**
|
|
2040
|
-
* Maps a top-level reasoning
|
|
2041
|
-
*
|
|
2042
|
-
*
|
|
2043
|
-
*
|
|
2051
|
+
* Maps a top-level reasoning value to a provider-specific effort string.
|
|
2052
|
+
*
|
|
2053
|
+
* A `providerOptionsEffort` (the reasoning effort set in provider options) is
|
|
2054
|
+
* returned unchanged. Otherwise, `undefined` and `'provider-default'` return
|
|
2055
|
+
* `undefined`, and other reasoning values are mapped with the effort map.
|
|
2044
2056
|
*
|
|
2045
|
-
*
|
|
2046
|
-
*
|
|
2057
|
+
* The effort map should only contain the values that the model supports. An
|
|
2058
|
+
* unsupported value maps to the next lower supported level, or the next higher
|
|
2059
|
+
* one if there is no lower level. `'none'` is never used as a fallback, so an
|
|
2060
|
+
* unsupported `'none'` maps to the lowest supported level.
|
|
2061
|
+
*
|
|
2062
|
+
* Pushes a compatibility warning if the effort that is sent differs from the
|
|
2063
|
+
* requested value, or an unsupported warning if the effort map is empty.
|
|
2064
|
+
*
|
|
2065
|
+
* @returns The provider options effort, the mapped effort string, or
|
|
2066
|
+
* `undefined` if no effort should be sent.
|
|
2047
2067
|
*/
|
|
2048
|
-
function mapReasoningToProviderEffort({ reasoning, effortMap, warnings }) {
|
|
2049
|
-
|
|
2050
|
-
if (
|
|
2068
|
+
function mapReasoningToProviderEffort({ reasoning, effortMap, providerOptionsEffort, warnings }) {
|
|
2069
|
+
if (providerOptionsEffort != null) return providerOptionsEffort;
|
|
2070
|
+
if (!isCustomReasoning(reasoning)) return;
|
|
2071
|
+
const index = REASONING_LEVELS.indexOf(reasoning);
|
|
2072
|
+
const level = [
|
|
2073
|
+
reasoning,
|
|
2074
|
+
...REASONING_LEVELS.slice(0, Math.max(index, 0)).reverse(),
|
|
2075
|
+
...REASONING_LEVELS.slice(index + 1)
|
|
2076
|
+
].find((candidate) => effortMap[candidate] != null);
|
|
2077
|
+
if (level == null) {
|
|
2051
2078
|
warnings.push({
|
|
2052
2079
|
type: "unsupported",
|
|
2053
2080
|
feature: "reasoning",
|
|
@@ -2055,6 +2082,7 @@ function mapReasoningToProviderEffort({ reasoning, effortMap, warnings }) {
|
|
|
2055
2082
|
});
|
|
2056
2083
|
return;
|
|
2057
2084
|
}
|
|
2085
|
+
const mapped = effortMap[level];
|
|
2058
2086
|
if (mapped !== reasoning) warnings.push({
|
|
2059
2087
|
type: "compatibility",
|
|
2060
2088
|
feature: "reasoning",
|
|
@@ -2071,26 +2099,28 @@ const DEFAULT_REASONING_BUDGET_PERCENTAGES = {
|
|
|
2071
2099
|
max: .95
|
|
2072
2100
|
};
|
|
2073
2101
|
/**
|
|
2074
|
-
* Maps a top-level reasoning
|
|
2075
|
-
* the model's max output tokens by a percentage
|
|
2076
|
-
*
|
|
2077
|
-
* `
|
|
2078
|
-
*
|
|
2102
|
+
* Maps a top-level reasoning value to an absolute token budget by multiplying
|
|
2103
|
+
* the model's max output tokens by a percentage for the level. Levels missing
|
|
2104
|
+
* from `budgetPercentages` use the default percentages. The result is clamped
|
|
2105
|
+
* between `minReasoningBudget` (default 1024) and `maxReasoningBudget`.
|
|
2106
|
+
*
|
|
2107
|
+
* Handle `'none'` before calling this function when the model can disable
|
|
2108
|
+
* reasoning. Otherwise, `'none'` maps to `minReasoningBudget` with a
|
|
2109
|
+
* compatibility warning.
|
|
2079
2110
|
*
|
|
2080
|
-
* @returns The computed token budget
|
|
2081
|
-
* supported.
|
|
2111
|
+
* @returns The computed token budget.
|
|
2082
2112
|
*/
|
|
2083
|
-
function mapReasoningToProviderBudget({ reasoning, maxOutputTokens, maxReasoningBudget, minReasoningBudget = 1024, budgetPercentages
|
|
2084
|
-
|
|
2085
|
-
if (pct == null) {
|
|
2113
|
+
function mapReasoningToProviderBudget({ reasoning, maxOutputTokens, maxReasoningBudget, minReasoningBudget = 1024, budgetPercentages, warnings }) {
|
|
2114
|
+
if (reasoning === "none") {
|
|
2086
2115
|
warnings.push({
|
|
2087
|
-
type: "
|
|
2116
|
+
type: "compatibility",
|
|
2088
2117
|
feature: "reasoning",
|
|
2089
|
-
details: `reasoning "
|
|
2118
|
+
details: `reasoning "none" is not supported by this model. mapped to the minimum reasoning budget of ${minReasoningBudget} tokens.`
|
|
2090
2119
|
});
|
|
2091
|
-
return;
|
|
2120
|
+
return minReasoningBudget;
|
|
2092
2121
|
}
|
|
2093
|
-
|
|
2122
|
+
const percentage = budgetPercentages?.[reasoning] ?? DEFAULT_REASONING_BUDGET_PERCENTAGES[reasoning];
|
|
2123
|
+
return Math.min(maxReasoningBudget, Math.max(minReasoningBudget, Math.round(maxOutputTokens * percentage)));
|
|
2094
2124
|
}
|
|
2095
2125
|
//#endregion
|
|
2096
2126
|
//#region src/media-type-to-extension.ts
|
|
@@ -3680,6 +3710,16 @@ async function resolve(value) {
|
|
|
3680
3710
|
if (typeof value === "function") value = value();
|
|
3681
3711
|
return value;
|
|
3682
3712
|
}
|
|
3713
|
+
/**
|
|
3714
|
+
* Resolves and transforms a value, preserving synchronous results. This allows
|
|
3715
|
+
* synchronous credentials to remain usable by workflow serialization while
|
|
3716
|
+
* asynchronous credentials are awaited by request handlers.
|
|
3717
|
+
*/
|
|
3718
|
+
function resolveWith(value, transform) {
|
|
3719
|
+
const resolved = typeof value === "function" ? value() : value;
|
|
3720
|
+
if (resolved != null && (typeof resolved === "object" || typeof resolved === "function") && typeof resolved.then === "function") return Promise.resolve(resolved).then(transform);
|
|
3721
|
+
return transform(resolved);
|
|
3722
|
+
}
|
|
3683
3723
|
//#endregion
|
|
3684
3724
|
//#region src/resolve-full-media-type.ts
|
|
3685
3725
|
/**
|
|
@@ -4931,6 +4971,6 @@ function getToolCaller(tool) {
|
|
|
4931
4971
|
return tool?.experimental_toolCaller;
|
|
4932
4972
|
}
|
|
4933
4973
|
//#endregion
|
|
4934
|
-
export { DEFAULT_MAX_DOWNLOAD_SIZE, DelayedPromise, DownloadError, EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER as EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER, SPEECH_STREAM_START_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_START_FRAME_TYPE, SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE, SPEECH_STREAM_TEXT_DONE_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_START_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE, EventSourceParserStream, SerializationError, StreamingToolCallTracker, VERSION, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, asArray, asSchema, cancelResponseBody, combineHeaders, connectToWebSocket, convertAsyncIteratorToReadableStream, convertBase64ToUint8Array, convertImageModelFileToDataUri, convertInlineFileDataToUint8Array, convertJsonResponseToolStream, convertToBase64, convertToFormData, convertUint8ArrayToBase64, createBinaryResponseHandler, createBinaryStreamResponseHandler, createEventSourceResponseHandler, createIdGenerator, createJsonErrorResponseHandler, createJsonLinesResponseHandler, createJsonResponseHandler, createLanguageModelResponseMetadata, createNullLanguageModelUsage, createProviderDefinedToolFactory, createProviderDefinedToolFactoryWithOutputSchema, createProviderExecutedToolFactory, createProviderStreamError, createStatusCodeErrorResponseHandler, createToolNameMapping, delay, deleteFromApi, detectMediaType, downloadBlob, dynamicTool, encodePathSegment, executeTool, getToolCaller as experimental_getToolCaller, parseSpeechStreamClientFrame as experimental_parseSpeechStreamClientFrame, parseSpeechStreamPart as experimental_parseSpeechStreamPart, parseTranscriptionStreamClientFrame as experimental_parseTranscriptionStreamClientFrame, parseTranscriptionStreamPart as experimental_parseTranscriptionStreamPart, serializeSpeechStreamPart as experimental_serializeSpeechStreamPart, serializeTranscriptionStreamPart as experimental_serializeTranscriptionStreamPart, toolCaller as experimental_toolCaller, extractLines, extractResponseHeaders, fetchUntrustedUrl, fetchWithValidatedEndpoint, fetchWithValidatedRedirects, filterNullable, generateId, getErrorMessage, getFromApi, getRuntimeEnvironmentUserAgent, getTopLevelMediaType, getWebSocketConstructor, injectJsonInstructionIntoMessages, isAbortError, isBrowserRuntime, isBuffer, isCustomReasoning, isExecutableTool, isFullMediaType, isNonNullable, isParsableJson, isProviderReference, isProviderStreamError, isRecord, isSameOrigin, isUrlSupported, isValidHostnamePart, jsonSchema, lazySchema, loadApiKey, loadOptionalSetting, loadSetting, mapReasoningToProviderBudget, mapReasoningToProviderEffort, mediaTypeToExtension, normalizeBatchRequestCounts, normalizeHeaders, parseJSON, parseJsonEventStream, parseProviderOptions, postFormDataToApi, postJsonToApi, postMultipartStreamToApi, postToApi, readResponseWithSizeLimit, readWebSocketMessageText, removeUndefinedEntries, resolve, resolveFullMediaType, resolveProviderReference, retryWithExponentialBackoff, safeParseJSON, safeValidateTypes, secureJsonParse, serializeModelOptions, stripFileExtension, toWebSocketUrl, tool, validateBaseURL, validateDownloadUrl, validateTypes, waitForWebSocketBufferDrain, withUserAgentSuffix, withoutTrailingSlash, zodSchema };
|
|
4974
|
+
export { DEFAULT_MAX_DOWNLOAD_SIZE, DelayedPromise, DownloadError, EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER as EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER, SPEECH_STREAM_START_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_START_FRAME_TYPE, SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DELTA_FRAME_TYPE, SPEECH_STREAM_TEXT_DONE_FRAME_TYPE as EXPERIMENTAL_SPEECH_STREAM_TEXT_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE, TRANSCRIPTION_STREAM_START_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE, EventSourceParserStream, SerializationError, StreamingToolCallTracker, VERSION, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, asArray, asSchema, cancelResponseBody, combineHeaders, connectToWebSocket, convertAsyncIteratorToReadableStream, convertBase64ToUint8Array, convertImageModelFileToDataUri, convertInlineFileDataToUint8Array, convertJsonResponseToolStream, convertToBase64, convertToFormData, convertUint8ArrayToBase64, createBinaryResponseHandler, createBinaryStreamResponseHandler, createEventSourceResponseHandler, createIdGenerator, createJsonErrorResponseHandler, createJsonLinesResponseHandler, createJsonResponseHandler, createLanguageModelResponseMetadata, createNullLanguageModelUsage, createProviderDefinedToolFactory, createProviderDefinedToolFactoryWithOutputSchema, createProviderExecutedToolFactory, createProviderStreamError, createStatusCodeErrorResponseHandler, createToolNameMapping, delay, deleteFromApi, detectMediaType, downloadBlob, dynamicTool, encodePathSegment, executeTool, getToolCaller as experimental_getToolCaller, parseSpeechStreamClientFrame as experimental_parseSpeechStreamClientFrame, parseSpeechStreamPart as experimental_parseSpeechStreamPart, parseTranscriptionStreamClientFrame as experimental_parseTranscriptionStreamClientFrame, parseTranscriptionStreamPart as experimental_parseTranscriptionStreamPart, serializeSpeechStreamPart as experimental_serializeSpeechStreamPart, serializeTranscriptionStreamPart as experimental_serializeTranscriptionStreamPart, toolCaller as experimental_toolCaller, extractLines, extractResponseHeaders, fetchUntrustedUrl, fetchWithValidatedEndpoint, fetchWithValidatedRedirects, filterNullable, generateId, getErrorMessage, getFromApi, getRuntimeEnvironmentUserAgent, getTopLevelMediaType, getWebSocketConstructor, injectJsonInstructionIntoMessages, isAbortError, isBrowserRuntime, isBuffer, isCustomReasoning, isExecutableTool, isFullMediaType, isNonNullable, isParsableJson, isProviderReference, isProviderStreamError, isRecord, isSameOrigin, isUrlSupported, isValidHostnamePart, jsonSchema, lazySchema, loadApiKey, loadOptionalSetting, loadSetting, mapReasoningToProviderBudget, mapReasoningToProviderEffort, mediaTypeToExtension, normalizeBatchRequestCounts, normalizeHeaders, parseJSON, parseJsonEventStream, parseProviderOptions, postFormDataToApi, postJsonToApi, postMultipartStreamToApi, postToApi, readResponseWithSizeLimit, readWebSocketMessageText, removeUndefinedEntries, resolve, resolveFullMediaType, resolveProviderReference, resolveWith, retryWithExponentialBackoff, safeParseJSON, safeValidateTypes, secureJsonParse, serializeModelOptions, stripFileExtension, toWebSocketUrl, tool, validateBaseURL, validateDownloadUrl, validateTypes, waitForWebSocketBufferDrain, withUserAgentSuffix, withoutTrailingSlash, zodSchema };
|
|
4935
4975
|
|
|
4936
4976
|
//# sourceMappingURL=index.js.map
|