Comparing version 2.1.22 to 2.1.23
@@ -275,3 +275,7 @@ "use strict"; | ||
} | ||
const openAIStream = OpenAIStream(functionResponse, __spreadProps(__spreadValues({}, callbacks), { | ||
const filteredCallbacks = __spreadProps(__spreadValues({}, callbacks), { | ||
onStart: void 0, | ||
onCompletion: void 0 | ||
}); | ||
const openAIStream = OpenAIStream(functionResponse, __spreadProps(__spreadValues({}, filteredCallbacks), { | ||
[__internal__OpenAIFnMessagesSymbol]: newFunctionCallMessages | ||
@@ -278,0 +282,0 @@ })); |
@@ -14,5 +14,5 @@ import { ChatCompletionRequestMessageFunctionCall, CreateChatCompletionRequestFunctionCall } from 'openai-edge'; | ||
interface AIStreamCallbacks { | ||
onStart?: () => Promise<void>; | ||
onCompletion?: (completion: string) => Promise<void>; | ||
onToken?: (token: string) => Promise<void>; | ||
onStart?: () => Promise<void> | void; | ||
onCompletion?: (completion: string) => Promise<void> | void; | ||
onToken?: (token: string) => Promise<void> | void; | ||
} | ||
@@ -19,0 +19,0 @@ /** |
@@ -275,3 +275,7 @@ "use strict"; | ||
} | ||
const openAIStream = OpenAIStream(functionResponse, __spreadProps(__spreadValues({}, callbacks), { | ||
const filteredCallbacks = __spreadProps(__spreadValues({}, callbacks), { | ||
onStart: void 0, | ||
onCompletion: void 0 | ||
}); | ||
const openAIStream = OpenAIStream(functionResponse, __spreadProps(__spreadValues({}, filteredCallbacks), { | ||
[__internal__OpenAIFnMessagesSymbol]: newFunctionCallMessages | ||
@@ -278,0 +282,0 @@ })); |
{ | ||
"name": "ai", | ||
"version": "2.1.22", | ||
"version": "2.1.23", | ||
"license": "Apache-2.0", | ||
@@ -13,3 +13,4 @@ "sideEffects": false, | ||
"svelte/dist/**/*", | ||
"vue/dist/**/*" | ||
"vue/dist/**/*", | ||
"prompts/dist/**/*" | ||
], | ||
@@ -16,0 +17,0 @@ "exports": { |
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
207534
22
6224