@ai-sdk/provider 1.1.3 → 2.0.0-alpha.1

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 CHANGED
@@ -1,22 +1,167 @@
1
1
  # @ai-sdk/provider
2
2
 
3
- ## 1.1.3
3
+ ## 2.0.0-alpha.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - beef951: feat: add speech with experimental_generateSpeech
7
+ - 3f2f00c: feat: `ImageModelV2#maxImagesPerCall` can be set to a function that returns a `number` or `undefined`, optionally as a promise
8
8
 
9
- ## 1.1.2
9
+ pull request: https://github.com/vercel/ai/pull/6343
10
+
11
+ ## 2.0.0-canary.14
12
+
13
+ ### Major Changes
14
+
15
+ - 7979f7f: feat (provider): support reasoning tokens, cached input tokens, total token in usage information
16
+
17
+ ### Patch Changes
18
+
19
+ - a8c8bd5: feat(embed-many): respect supportsParallelCalls & concurrency
20
+
21
+ ## 2.0.0-canary.13
22
+
23
+ ### Patch Changes
24
+
25
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
26
+
27
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
28
+
29
+ ```js
30
+ const prompt = 'Santa Claus driving a Cadillac';
31
+
32
+ const { providerMetadata } = await experimental_generateImage({
33
+ model: openai.image('dall-e-3'),
34
+ prompt,
35
+ });
36
+
37
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
38
+
39
+ console.log({
40
+ prompt,
41
+ revisedPrompt,
42
+ });
43
+ ```
44
+
45
+ ## 2.0.0-canary.12
46
+
47
+ ### Patch Changes
48
+
49
+ - 7b3ae3f: chore (provider): change getSupportedUrls to supportedUrls (language model v2)
50
+
51
+ ## 2.0.0-canary.11
52
+
53
+ ### Major Changes
54
+
55
+ - e030615: chore (provider): remove prompt type from language model v2 spec
10
56
 
11
57
  ### Patch Changes
12
58
 
13
- - 013faa8: core (ai): change transcription model mimeType to mediaType
59
+ - 9bf7291: chore(providers/openai): enable structuredOutputs by default & switch to provider option
60
+ - 4617fab: chore(embedding-models): remove remaining settings
61
+
62
+ ## 2.0.0-canary.10
14
63
 
15
- ## 1.1.1
64
+ ### Major Changes
65
+
66
+ - a3f768e: chore: restructure reasoning support
16
67
 
17
68
  ### Patch Changes
18
69
 
19
- - c21fa6d: feat: add transcription with experimental_transcribe
70
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
71
+
72
+ ## 2.0.0-canary.9
73
+
74
+ ### Major Changes
75
+
76
+ - e86be6f: chore: remove logprobs
77
+
78
+ ## 2.0.0-canary.8
79
+
80
+ ### Major Changes
81
+
82
+ - 95857aa: chore: restructure language model supported urls
83
+ - 7ea4132: chore: remove object generation mode
84
+
85
+ ## 2.0.0-canary.7
86
+
87
+ ### Major Changes
88
+
89
+ - b6b43c7: chore: move warnings into stream-start part (spec)
90
+ - 3795467: chore: return content array from doGenerate (spec)
91
+
92
+ ### Patch Changes
93
+
94
+ - 8aa9e20: feat: add speech with experimental_generateSpeech
95
+
96
+ ## 2.0.0-canary.6
97
+
98
+ ### Major Changes
99
+
100
+ - 14c9410: chore: refactor file towards source pattern (spec)
101
+ - d9c98f4: chore: refactor reasoning parts (spec)
102
+ - 0054544: chore: refactor source parts (spec)
103
+ - 9e9c809: chore: refactor tool call and tool call delta parts (spec)
104
+ - 32831c6: chore: refactor text parts (spec)
105
+ - d0f9495: chore: refactor file parts (spec)
106
+
107
+ ### Patch Changes
108
+
109
+ - 26735b5: chore(embedding-model): add v2 interface
110
+ - 443d8ec: feat(embedding-model-v2): add response body field
111
+ - c4a2fec: chore (provider): extract shared provider options and metadata (spec)
112
+ - fd65bc6: chore(embedding-model-v2): rename rawResponse to response
113
+ - 393138b: feat(embedding-model-v2): add providerOptions
114
+ - 7182d14: Remove `Experimental_LanguageModelV2Middleware` type
115
+
116
+ ## 2.0.0-canary.5
117
+
118
+ ### Major Changes
119
+
120
+ - 411e483: chore (provider): refactor usage (language model v2)
121
+ - ad80501: chore (provider): allow both binary and base64 file content (spec)
122
+ - 1766ede: chore: rename maxTokens to maxOutputTokens
123
+
124
+ ### Patch Changes
125
+
126
+ - 79457bd: chore (provider): extract LanguageModelV2File
127
+ - f10304b: feat(tool-calling): don't require the user to have to pass parameters
128
+
129
+ ## 2.0.0-canary.4
130
+
131
+ ### Major Changes
132
+
133
+ - 6f6bb89: chore (provider): cleanup request and rawRequest (language model v2)
134
+
135
+ ## 2.0.0-canary.3
136
+
137
+ ### Major Changes
138
+
139
+ - d1a1aa1: chore (provider): merge rawRequest into request (language model v2)
140
+
141
+ ## 2.0.0-canary.2
142
+
143
+ ### Major Changes
144
+
145
+ - abf9a79: chore: rename mimeType to mediaType
146
+ - 6dc848c: chore (provider): remove image parts
147
+
148
+ ### Patch Changes
149
+
150
+ - a166433: feat: add transcription with experimental_transcribe
151
+ - 0a87932: core (ai): change transcription model mimeType to mediaType
152
+
153
+ ## 2.0.0-canary.1
154
+
155
+ ### Major Changes
156
+
157
+ - c57e248: chore (provider): remove mode
158
+ - 33f4a6a: chore (provider): rename providerMetadata inputs to providerOptions
159
+
160
+ ## 2.0.0-canary.0
161
+
162
+ ### Major Changes
163
+
164
+ - d5f588f: AI SDK 5
20
165
 
21
166
  ## 1.1.0
22
167