@ai-sdk/provider 2.0.0-canary.10 → 2.0.0-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.mts +4 -9
- package/dist/index.d.ts +4 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# @ai-sdk/provider
|
2
2
|
|
3
|
+
## 2.0.0-canary.11
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- e030615: chore (provider): remove prompt type from language model v2 spec
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
|
12
|
+
- 4617fab: chore(embedding-models): remove remaining settings
|
13
|
+
|
3
14
|
## 2.0.0-canary.10
|
4
15
|
|
5
16
|
### Major Changes
|
package/dist/index.d.mts
CHANGED
@@ -88,12 +88,14 @@ type EmbeddingModelV2<VALUE> = {
|
|
88
88
|
readonly modelId: string;
|
89
89
|
/**
|
90
90
|
Limit of how many embeddings can be generated in a single API call.
|
91
|
+
|
92
|
+
Use Infinity for models that do not have a limit.
|
91
93
|
*/
|
92
|
-
readonly maxEmbeddingsPerCall: number | undefined;
|
94
|
+
readonly maxEmbeddingsPerCall: PromiseLike<number | undefined> | number | undefined;
|
93
95
|
/**
|
94
96
|
True if the model can handle multiple embedding calls in parallel.
|
95
97
|
*/
|
96
|
-
readonly supportsParallelCalls: boolean;
|
98
|
+
readonly supportsParallelCalls: PromiseLike<boolean> | boolean;
|
97
99
|
/**
|
98
100
|
Generates a list of embeddings for the given input text.
|
99
101
|
|
@@ -732,13 +734,6 @@ type LanguageModelV2ToolChoice = {
|
|
732
734
|
|
733
735
|
type LanguageModelV2CallOptions = {
|
734
736
|
/**
|
735
|
-
Whether the user provided the input as messages or as
|
736
|
-
a prompt. This can help guide non-chat models in the
|
737
|
-
expansion, bc different expansions can be needed for
|
738
|
-
chat/non-chat use cases.
|
739
|
-
*/
|
740
|
-
inputFormat: 'messages' | 'prompt';
|
741
|
-
/**
|
742
737
|
A language mode prompt is a standardized prompt type.
|
743
738
|
|
744
739
|
Note: This is **not** the user-facing prompt. The AI SDK methods will map the
|
package/dist/index.d.ts
CHANGED
@@ -88,12 +88,14 @@ type EmbeddingModelV2<VALUE> = {
|
|
88
88
|
readonly modelId: string;
|
89
89
|
/**
|
90
90
|
Limit of how many embeddings can be generated in a single API call.
|
91
|
+
|
92
|
+
Use Infinity for models that do not have a limit.
|
91
93
|
*/
|
92
|
-
readonly maxEmbeddingsPerCall: number | undefined;
|
94
|
+
readonly maxEmbeddingsPerCall: PromiseLike<number | undefined> | number | undefined;
|
93
95
|
/**
|
94
96
|
True if the model can handle multiple embedding calls in parallel.
|
95
97
|
*/
|
96
|
-
readonly supportsParallelCalls: boolean;
|
98
|
+
readonly supportsParallelCalls: PromiseLike<boolean> | boolean;
|
97
99
|
/**
|
98
100
|
Generates a list of embeddings for the given input text.
|
99
101
|
|
@@ -732,13 +734,6 @@ type LanguageModelV2ToolChoice = {
|
|
732
734
|
|
733
735
|
type LanguageModelV2CallOptions = {
|
734
736
|
/**
|
735
|
-
Whether the user provided the input as messages or as
|
736
|
-
a prompt. This can help guide non-chat models in the
|
737
|
-
expansion, bc different expansions can be needed for
|
738
|
-
chat/non-chat use cases.
|
739
|
-
*/
|
740
|
-
inputFormat: 'messages' | 'prompt';
|
741
|
-
/**
|
742
737
|
A language mode prompt is a standardized prompt type.
|
743
738
|
|
744
739
|
Note: This is **not** the user-facing prompt. The AI SDK methods will map the
|