@ai-sdk/provider-utils 5.0.69 → 5.0.71
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 +21 -0
- package/dist/index.d.ts +93 -50
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/map-reasoning-to-provider.ts +76 -33
- package/src/types/index.ts +11 -0
- package/src/types/sandbox.ts +77 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 5.0.71
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 61a315e: fix: map the top-level `reasoning` option consistently across providers
|
|
8
|
+
|
|
9
|
+
Providers now resolve reasoning the same way:
|
|
10
|
+
|
|
11
|
+
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).
|
|
12
|
+
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.
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
`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.
|
|
16
|
+
|
|
17
|
+
## 5.0.70
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 57086ff: chore(provider-utils): export types for `Experimental_SandboxSession`'s method inputs
|
|
22
|
+
- 95348b3: feat(provider-utils): change `Experimental_SandboxSession`'s `spawn()` method to support optional `stdin` arg for a process with writable input stream
|
|
23
|
+
|
|
3
24
|
## 5.0.69
|
|
4
25
|
|
|
5
26
|
### 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
|
-
* present in the budget percentages map.
|
|
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`.
|
|
1503
1512
|
*
|
|
1504
|
-
*
|
|
1505
|
-
*
|
|
1513
|
+
* Handle `'none'` before calling this function when the model can disable
|
|
1514
|
+
* reasoning. Otherwise, `'none'` maps to `minReasoningBudget` with a
|
|
1515
|
+
* compatibility warning.
|
|
1516
|
+
*
|
|
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
|
/**
|
|
@@ -1856,10 +1868,20 @@ type SandboxProcessOptions = {
|
|
|
1856
1868
|
*/
|
|
1857
1869
|
abortSignal?: AbortSignal;
|
|
1858
1870
|
};
|
|
1871
|
+
type SandboxRunOptions = SandboxProcessOptions;
|
|
1872
|
+
type SandboxSpawnOptions = SandboxProcessOptions & {
|
|
1873
|
+
stdin?: boolean;
|
|
1874
|
+
};
|
|
1875
|
+
type SandboxSpawnOptionsWithStdin = SandboxProcessOptions & {
|
|
1876
|
+
stdin: true;
|
|
1877
|
+
};
|
|
1878
|
+
type SandboxSpawnOptionsWithoutStdin = SandboxProcessOptions & {
|
|
1879
|
+
stdin?: false;
|
|
1880
|
+
};
|
|
1859
1881
|
/**
|
|
1860
1882
|
* Options for reading a file from the sandbox.
|
|
1861
1883
|
*/
|
|
1862
|
-
type
|
|
1884
|
+
type SandboxReadFileOptions = {
|
|
1863
1885
|
/**
|
|
1864
1886
|
* Path of the file to read.
|
|
1865
1887
|
*/
|
|
@@ -1869,6 +1891,22 @@ type ReadFileOptions = {
|
|
|
1869
1891
|
*/
|
|
1870
1892
|
abortSignal?: AbortSignal;
|
|
1871
1893
|
};
|
|
1894
|
+
type SandboxReadBinaryFileOptions = SandboxReadFileOptions;
|
|
1895
|
+
type SandboxReadTextFileOptions = SandboxReadFileOptions & {
|
|
1896
|
+
/**
|
|
1897
|
+
* Text encoding used to decode the file bytes. Defaults to `"utf-8"`.
|
|
1898
|
+
*/
|
|
1899
|
+
encoding?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* 1-based inclusive start line. Defaults to 1.
|
|
1902
|
+
*/
|
|
1903
|
+
startLine?: number;
|
|
1904
|
+
/**
|
|
1905
|
+
* 1-based inclusive end line. When past the file's line count, the read
|
|
1906
|
+
* returns through EOF without error.
|
|
1907
|
+
*/
|
|
1908
|
+
endLine?: number;
|
|
1909
|
+
};
|
|
1872
1910
|
/**
|
|
1873
1911
|
* Options for writing a file to the sandbox. `CONTENT` is the payload written
|
|
1874
1912
|
* to the file: a byte stream, raw bytes, or a string.
|
|
@@ -1887,6 +1925,14 @@ type WriteFileOptions<CONTENT> = {
|
|
|
1887
1925
|
*/
|
|
1888
1926
|
abortSignal?: AbortSignal;
|
|
1889
1927
|
};
|
|
1928
|
+
type SandboxWriteFileOptions = WriteFileOptions<ReadableStream<Uint8Array>>;
|
|
1929
|
+
type SandboxWriteBinaryFileOptions = WriteFileOptions<Uint8Array>;
|
|
1930
|
+
type SandboxWriteTextFileOptions = WriteFileOptions<string> & {
|
|
1931
|
+
/**
|
|
1932
|
+
* Text encoding used to encode the string to bytes. Defaults to `"utf-8"`.
|
|
1933
|
+
*/
|
|
1934
|
+
encoding?: string;
|
|
1935
|
+
};
|
|
1890
1936
|
/**
|
|
1891
1937
|
* Sandbox session that can execute commands and read/write files.
|
|
1892
1938
|
*/
|
|
@@ -1905,12 +1951,12 @@ type SandboxSession = {
|
|
|
1905
1951
|
* read primitive; prefer `readBinaryFile` or `readTextFile` unless you need
|
|
1906
1952
|
* to stream bytes.
|
|
1907
1953
|
*/
|
|
1908
|
-
readonly readFile: (options:
|
|
1954
|
+
readonly readFile: (options: SandboxReadFileOptions) => PromiseLike<ReadableStream<Uint8Array> | null>;
|
|
1909
1955
|
/**
|
|
1910
1956
|
* Read one file from the sandbox as raw bytes. Resolves to `null` when the
|
|
1911
1957
|
* file does not exist.
|
|
1912
1958
|
*/
|
|
1913
|
-
readonly readBinaryFile: (options:
|
|
1959
|
+
readonly readBinaryFile: (options: SandboxReadBinaryFileOptions) => PromiseLike<Uint8Array | null>;
|
|
1914
1960
|
/**
|
|
1915
1961
|
* Read one text file from the sandbox, decoded using the requested encoding.
|
|
1916
1962
|
* Resolves to `null` when the file does not exist.
|
|
@@ -1918,21 +1964,7 @@ type SandboxSession = {
|
|
|
1918
1964
|
* Line ranges are 1-based and inclusive. When `endLine` is past EOF the read
|
|
1919
1965
|
* returns through EOF without error.
|
|
1920
1966
|
*/
|
|
1921
|
-
readonly readTextFile: (options:
|
|
1922
|
-
/**
|
|
1923
|
-
* Text encoding used to decode the file bytes. Defaults to `"utf-8"`.
|
|
1924
|
-
*/
|
|
1925
|
-
encoding?: string;
|
|
1926
|
-
/**
|
|
1927
|
-
* 1-based inclusive start line. Defaults to 1.
|
|
1928
|
-
*/
|
|
1929
|
-
startLine?: number;
|
|
1930
|
-
/**
|
|
1931
|
-
* 1-based inclusive end line. When past the file's line count, the read
|
|
1932
|
-
* returns through EOF without error.
|
|
1933
|
-
*/
|
|
1934
|
-
endLine?: number;
|
|
1935
|
-
}) => PromiseLike<string | null>;
|
|
1967
|
+
readonly readTextFile: (options: SandboxReadTextFileOptions) => PromiseLike<string | null>;
|
|
1936
1968
|
/**
|
|
1937
1969
|
* Write one file to the sandbox from a stream of bytes. Creates parent
|
|
1938
1970
|
* directories recursively and overwrites any existing file.
|
|
@@ -1940,35 +1972,39 @@ type SandboxSession = {
|
|
|
1940
1972
|
* This is the lowest-level write primitive; prefer `writeBinaryFile` or
|
|
1941
1973
|
* `writeTextFile` when the full content is already materialized in memory.
|
|
1942
1974
|
*/
|
|
1943
|
-
readonly writeFile: (options:
|
|
1975
|
+
readonly writeFile: (options: SandboxWriteFileOptions) => PromiseLike<void>;
|
|
1944
1976
|
/**
|
|
1945
1977
|
* Write one file to the sandbox from raw bytes. Creates parent directories
|
|
1946
1978
|
* recursively and overwrites any existing file.
|
|
1947
1979
|
*/
|
|
1948
|
-
readonly writeBinaryFile: (options:
|
|
1980
|
+
readonly writeBinaryFile: (options: SandboxWriteBinaryFileOptions) => PromiseLike<void>;
|
|
1949
1981
|
/**
|
|
1950
1982
|
* Write one file to the sandbox from a string, encoded using the requested
|
|
1951
1983
|
* encoding. Creates parent directories recursively and overwrites any
|
|
1952
1984
|
* existing file.
|
|
1953
1985
|
*/
|
|
1954
|
-
readonly writeTextFile: (options:
|
|
1955
|
-
/**
|
|
1956
|
-
* Text encoding used to encode the string to bytes. Defaults to `"utf-8"`.
|
|
1957
|
-
*/
|
|
1958
|
-
encoding?: string;
|
|
1959
|
-
}) => PromiseLike<void>;
|
|
1986
|
+
readonly writeTextFile: (options: SandboxWriteTextFileOptions) => PromiseLike<void>;
|
|
1960
1987
|
/**
|
|
1961
1988
|
* Spawn a long-running process in the sandbox. Returns immediately with a
|
|
1962
1989
|
* handle that streams stdout/stderr, can be waited on, and can be killed.
|
|
1963
1990
|
*
|
|
1964
1991
|
* `run` is conceptually a thin wrapper over this primitive: spawn,
|
|
1965
1992
|
* collect both streams to strings, await `wait()`, return the result.
|
|
1966
|
-
|
|
1967
|
-
|
|
1993
|
+
*
|
|
1994
|
+
* Set `stdin` to `true` to keep standard input open and expose a writable
|
|
1995
|
+
* stream on the returned handle. Implementations that do not support writable
|
|
1996
|
+
* stdin must reject before starting the command. When omitted or `false`,
|
|
1997
|
+
* standard input is closed and the handle has no `stdin` property.
|
|
1998
|
+
*/
|
|
1999
|
+
readonly spawn: {
|
|
2000
|
+
(options: SandboxSpawnOptionsWithStdin): PromiseLike<WritableSandboxProcess>;
|
|
2001
|
+
(options: SandboxSpawnOptionsWithoutStdin): PromiseLike<SandboxProcess>;
|
|
2002
|
+
(options: SandboxSpawnOptions): PromiseLike<SandboxProcess | WritableSandboxProcess>;
|
|
2003
|
+
};
|
|
1968
2004
|
/**
|
|
1969
2005
|
* Run a command in the sandbox.
|
|
1970
2006
|
*/
|
|
1971
|
-
readonly run: (options:
|
|
2007
|
+
readonly run: (options: SandboxRunOptions) => PromiseLike<{
|
|
1972
2008
|
/**
|
|
1973
2009
|
* Exit code returned by the command.
|
|
1974
2010
|
*/
|
|
@@ -2010,6 +2046,13 @@ type SandboxProcess = {
|
|
|
2010
2046
|
*/
|
|
2011
2047
|
kill(): PromiseLike<void>;
|
|
2012
2048
|
};
|
|
2049
|
+
type WritableSandboxProcess = SandboxProcess & {
|
|
2050
|
+
/**
|
|
2051
|
+
* Stream of bytes written to the process's standard input. Closing the stream
|
|
2052
|
+
* delivers EOF after pending writes without terminating the process.
|
|
2053
|
+
*/
|
|
2054
|
+
readonly stdin: WritableStream<Uint8Array>;
|
|
2055
|
+
};
|
|
2013
2056
|
//#endregion
|
|
2014
2057
|
//#region src/types/tool-execute-function.d.ts
|
|
2015
2058
|
/**
|
|
@@ -3149,5 +3192,5 @@ interface ToolResult<NAME extends string, INPUT, OUTPUT> {
|
|
|
3149
3192
|
dynamic?: boolean;
|
|
3150
3193
|
}
|
|
3151
3194
|
//#endregion
|
|
3152
|
-
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 SandboxSession as Experimental_SandboxSession, 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 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 };
|
|
3195
|
+
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 };
|
|
3153
3196
|
//# 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;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;;;;;EAKA,WAAW;IAAQ;IAAe;;;EAElC,WAAW;IACT;;;;;;;;;;wBChDY,qCAAqC,GACnD,UAAU,cAAc,KACvB,eAAe;;;;;;KCNN,uBAAuB,aAAa,cAAc;;;;;;;;;UCU7C;EACf;EACA,MAAM;;;;;KAMI,cAAc;;;;KAKd,oBAAoB;;;;;KAMpB,eAAe;;;;;;;;;;KAWf,WACR,eACA,cACA,oBACA;;;;;;;;;KCvCQ,kBAAkB;;;;;;;;;;KCClB,oBAAoB;;;;;;UCAf;EACf;;;;EAKA;;;;;;EAOA,kBAAkB;;;;;;;;UASH;EACf;;;;;;;;EASA,OAAO,cAAc,MAAM;;;;;;EAO3B;;;;;;EAOA,kB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","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,S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ACA,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.71";
|
|
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.
|
|
2056
|
+
*
|
|
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.
|
|
2044
2061
|
*
|
|
2045
|
-
*
|
|
2046
|
-
*
|
|
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
|