Socket
Socket
Sign inDemoInstall

@ai-sdk/ui-utils

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/ui-utils - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

39

dist/index.d.ts

@@ -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 = {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc