@ai-sdk/ui-utils
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -239,6 +239,25 @@ export { generateId } from '@ai-sdk/provider-utils'; | ||
type ChatRequest = { | ||
/** | ||
An optional object of headers to be passed to the API endpoint. | ||
*/ | ||
headers?: Record<string, string> | Headers; | ||
/** | ||
An optional object to be passed to the API endpoint. | ||
*/ | ||
body?: object; | ||
/** | ||
The messages of the chat. | ||
*/ | ||
messages: Message[]; | ||
options?: RequestOptions; | ||
/** | ||
Additional data to be sent to the server. | ||
*/ | ||
data?: JSONValue; | ||
/** | ||
The options to be passed to the fetch call. | ||
@deprecated use `headers` and `body` directly | ||
*/ | ||
options?: RequestOptions; | ||
/** | ||
* @deprecated | ||
@@ -280,3 +299,17 @@ */ | ||
/** | ||
Additional headers that should be to be passed to the API endpoint. | ||
*/ | ||
headers?: Record<string, string> | Headers; | ||
/** | ||
Additional body JSON properties that should be sent to the API endpoint. | ||
*/ | ||
body?: object; | ||
/** | ||
Additional data to be sent to the API endpoint. | ||
*/ | ||
data?: JSONValue; | ||
/** | ||
The options to be passed to the fetch call. | ||
@deprecated use `headers` and `body` directly | ||
*/ | ||
@@ -300,6 +333,2 @@ options?: RequestOptions; | ||
tool_choice?: ToolChoice; | ||
/** | ||
Additional data to be sent to the server. | ||
*/ | ||
data?: JSONValue; | ||
}; | ||
@@ -306,0 +335,0 @@ type UseChatOptions = { |
{ | ||
"name": "@ai-sdk/ui-utils", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
3982708
36784