ai 7.0.181 → 7.0.183

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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.183
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [80d778a]
8
+ - @ai-sdk/provider-utils@5.0.85
9
+ - @ai-sdk/gateway@4.0.156
10
+
11
+ ## 7.0.182
12
+
13
+ ### Patch Changes
14
+
15
+ - ac22e59: fix(ai): truncate the realtime audio item that is actually playing when the user interrupts
16
+
17
+ On barge-in, WebSocket realtime sessions sent `conversation-item-truncate` for the most recently received audio item, with an offset measured from when playback started rather than from the start of that item. When a short spoken preamble was queued ahead of the answer (for example before a tool call), interrupting near the end of the answer was rejected by the provider (`Audio content of 12950ms is already shorter than 13957ms`), and other interruptions silently cut the wrong item or at the wrong position. Playback now tracks the item and in-item position of each scheduled audio chunk, including across playback underruns, and truncates that item at the position the user heard.
18
+
19
+ - Updated dependencies [ff3b865]
20
+ - Updated dependencies [aa7cb79]
21
+ - @ai-sdk/gateway@4.0.155
22
+ - @ai-sdk/provider-utils@5.0.84
23
+
3
24
  ## 7.0.181
4
25
 
5
26
  ### Patch Changes
@@ -930,7 +930,7 @@ function asEvaluationModel(model) {
930
930
  }
931
931
  //#endregion
932
932
  //#region src/version.ts
933
- const VERSION = "7.0.181";
933
+ const VERSION = "7.0.183";
934
934
  //#endregion
935
935
  //#region src/util/download/download.ts
936
936
  /**
@@ -4235,4 +4235,4 @@ function createDefaultStopCondition(stepCount, onWarning) {
4235
4235
  //#endregion
4236
4236
  export { convertToLanguageModelPrompt as $, toolSearch as A, InvalidMessageRoleError as At, setAbortTimeout as B, InvalidToolApprovalError as Bt, resolveToolApproval as C, asLanguageModelV4 as Ct, convertToReasoningOutputs as D, logWarnings as Dt, DefaultGenerateTextResult as E, createLogWarnings as Et, resolveGeneratedFileData as F, NoOutputGeneratedError as Ft, addLanguageModelUsage as G, mergeAbortSignals as H, DefaultGeneratedFile as I, MissingToolResultsError as It, standardizePrompt as J, asLanguageModelUsage as K, DefaultGeneratedFileWithType as L, ToolCallNotFoundForApprovalError as Lt, prepareToolsForToolCallers as M, UnsupportedModelVersionError as Mt, resolveToolCallerConfiguration as N, ToolCallRepairError as Nt, validateToolContext as O, notify as Ot, convertLanguageModelContent as P, NoSuchToolError as Pt, createToolModelOutput as Q, collectToolApprovals as R, InvalidToolInputError as Rt, filterIncludedContext as S, asVideoModelV4 as St, getToolCallInputSchemaInput as T, asEmbeddingModelV4 as Tt, getOwn as U, prepareRetries as V, InvalidArgumentError as Vt, addImageModelUsage as W, prepareToolChoice as X, prepareTools as Y, prepareLanguageModelCallOptions as Z, createTelemetryDispatcher as _, resolveSpeechModel as _t, createAsyncIterableStream as a, convertDataContentToUint8Array as at, AI_SDK_TELEMETRY_TRACING_CHANNEL as b, resolveVideoModel as bt, validateApprovedToolApprovals as c, download as ct, verifyToolApprovalSignature as d, resolveDecisionModel as dt, downloadAssets as et, hashCanonical as f, resolveEmbeddingModel as ft, DefaultStepResult as g, resolveRerankingModel as gt, createRestrictedTelemetryDispatcher as h, resolveLanguageModel as ht, asAsyncIterableStream as i, convertDataContentToBase64String as it, appendToolCallerMessages as j, InvalidDataContentError as jt, createToolSearchState as k, RetryError as kt, maybeSignApproval as l, VERSION as lt, isDeepEqualData as m, resolveImageModel as mt, logDefaultStopConditionWarning as n, convertToLanguageModelV4FilePart as nt, mapWithConcurrency as o, mergeObjects as ot, toResponseMessages as p, resolveExtractionModel as pt, createNullLanguageModelUsage as q, isOutputChunk as r, splitDataUrl as rt, prepareToolCallConcurrency as s, createDefaultDownloadFunction as st, createDefaultStopCondition as t, mapToolResultOutput as tt, signToolApproval as u, asEvaluationModel as ut, getGlobalTelemetryIntegrations as v, resolveSpeechTranslationModel as vt, parseToolCall as w, asImageModelV4 as wt, mergeCallbacks as x, asProviderV4 as xt, registerTelemetry as y, resolveTranscriptionModel as yt, calculateTokensPerSecond as z, InvalidToolApprovalSignatureError as zt };
4237
4237
 
4238
- //# sourceMappingURL=default-stop-condition-D8PwkeWe.js.map
4238
+ //# sourceMappingURL=default-stop-condition-CKhd4H3S.js.map