+1
-1
| { | ||
| "name": "ai", | ||
| "version": "7.0.19", | ||
| "version": "7.0.20", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.", |
@@ -145,2 +145,9 @@ import type { | ||
| */ | ||
| repairToolCall?: ToolCallRepairFunction<NoInfer<TOOLS>>; | ||
| /** | ||
| * A function that attempts to repair a tool call that failed to parse. | ||
| * | ||
| * @deprecated Use `repairToolCall` instead. | ||
| */ | ||
| experimental_repairToolCall?: ToolCallRepairFunction<NoInfer<TOOLS>>; | ||
@@ -147,0 +154,0 @@ |
| import type { ServerResponse } from 'node:http'; | ||
| type FlushableServerResponse = ServerResponse & { | ||
| flush?: () => void; | ||
| }; | ||
| /** | ||
@@ -35,2 +39,7 @@ * Writes the content of a stream to a server response. | ||
| const canContinue = response.write(value); | ||
| const flush = (response as FlushableServerResponse).flush; | ||
| if (typeof flush === 'function') { | ||
| flush.call(response); | ||
| } | ||
| if (!canContinue) { | ||
@@ -37,0 +46,0 @@ await new Promise<void>(resolve => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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 too big to display
Sorry, the diff of this file is too big to display
6362760
0.04%65466
0.08%