@ai-sdk/provider
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -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). |
{ | ||
"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
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
166819
2491