@ai-sdk/ui-utils
Advanced tools
Comparing version 0.0.44 to 0.0.45
@@ -615,3 +615,4 @@ "use strict"; | ||
const result = { | ||
finishReason: value.finishReason | ||
finishReason: value.finishReason, | ||
isContinued: false | ||
}; | ||
@@ -624,2 +625,5 @@ if ("usage" in value && value.usage != null && typeof value.usage === "object" && "promptTokens" in value.usage && "completionTokens" in value.usage) { | ||
} | ||
if ("isContinued" in value && typeof value.isContinued === "boolean") { | ||
result.isContinued = value.isContinued; | ||
} | ||
return { | ||
@@ -785,3 +789,5 @@ type: "finish_step", | ||
if (type === "finish_step") { | ||
nextPrefixMap = {}; | ||
if (!value.isContinued) { | ||
nextPrefixMap = {}; | ||
} | ||
continue; | ||
@@ -788,0 +794,0 @@ } |
# @ai-sdk/ui-utils | ||
## 0.0.45 | ||
### Patch Changes | ||
- cd77c5d: feat (ai/core): add isContinued to steps | ||
## 0.0.44 | ||
@@ -4,0 +10,0 @@ |
@@ -704,2 +704,3 @@ import { LanguageModelV1FinishReason, JSONValue as JSONValue$1 } from '@ai-sdk/provider'; | ||
declare const finishStepStreamPart: StreamPart<'e', 'finish_step', { | ||
isContinued: boolean; | ||
finishReason: LanguageModelV1FinishReason; | ||
@@ -706,0 +707,0 @@ usage?: { |
@@ -615,3 +615,4 @@ "use strict"; | ||
const result = { | ||
finishReason: value.finishReason | ||
finishReason: value.finishReason, | ||
isContinued: false | ||
}; | ||
@@ -624,2 +625,5 @@ if ("usage" in value && value.usage != null && typeof value.usage === "object" && "promptTokens" in value.usage && "completionTokens" in value.usage) { | ||
} | ||
if ("isContinued" in value && typeof value.isContinued === "boolean") { | ||
result.isContinued = value.isContinued; | ||
} | ||
return { | ||
@@ -785,3 +789,5 @@ type: "finish_step", | ||
if (type === "finish_step") { | ||
nextPrefixMap = {}; | ||
if (!value.isContinued) { | ||
nextPrefixMap = {}; | ||
} | ||
continue; | ||
@@ -788,0 +794,0 @@ } |
{ | ||
"name": "@ai-sdk/ui-utils", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -1,3 +0,3 @@ | ||
# Vercel AI SDK - UI Framework Integration Implementation Utilities | ||
# AI SDK - UI Framework Integration Implementation Utilities | ||
Important: this is an internal API. Expect breaking changes. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4073724
37765