Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/provider

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/provider - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

33

dist/index.d.ts

@@ -491,2 +491,8 @@ import { JSONSchema7 } from 'json-schema';

/**
Stop sequences.
If set, the model will stop generating text when one of the stop sequences is generated.
Providers may have limits on the number of stop sequences.
*/
stopSequences?: string[];
/**
Nucleus sampling.

@@ -498,2 +504,9 @@

/**
Only sample from the top K options for each subsequent token.
Used to remove "long tail" low probability responses.
Recommended for advanced use cases only. You usually only need to use temperature.
*/
topK?: number;
/**
Presence penalty setting. It affects the likelihood of the model to

@@ -509,2 +522,13 @@ repeat information that is already in the prompt.

/**
Response format. The output can either be text or JSON. Default is text.
If JSON is selected, a schema can optionally be provided to guide the LLM.
*/
responseFormat?: {
type: 'text';
} | {
type: 'json';
schema?: JSONSchema7;
};
/**
The seed (integer) to use for random sampling. If set and supported

@@ -639,2 +663,5 @@ by the model, calls will generate deterministic results.

object-tool mode.
@deprecated mode will be removed in v2.
All necessary settings will be directly supported through the call settings.
*/

@@ -654,5 +681,2 @@ mode: {

} | {
type: 'object-grammar';
schema: JSONSchema7;
} | {
type: 'object-tool';

@@ -679,2 +703,3 @@ tool: LanguageModelV1FunctionTool;

setting: keyof LanguageModelV1CallSettings;
details?: string;
} | {

@@ -750,3 +775,3 @@ type: 'other';

*/
readonly defaultObjectGenerationMode: 'json' | 'tool' | 'grammar' | undefined;
readonly defaultObjectGenerationMode: 'json' | 'tool' | undefined;
/**

@@ -753,0 +778,0 @@ Generates a language model output (non-streaming).

2

package.json
{
"name": "@ai-sdk/provider",
"version": "0.0.12",
"version": "0.0.13",
"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