ai 5.0.0-canary.15 → 5.0.0-canary.17

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,5 +1,60 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.0-canary.17
4
+
5
+ ### Major Changes
6
+
7
+ - f04fb4a: chore (ai): replace useChat attachments with file ui parts
8
+ - fd1924b: chore (ai): remove redundant `mimeType` property
9
+ - fafc3f2: chore (ai): change file to parts to use urls instead of data
10
+ - 92cb0a2: chore (ai): rename CoreMessage to ModelMessage
11
+
12
+ ### Minor Changes
13
+
14
+ - c9ad635: feat (ai): add filename to file ui parts
15
+
16
+ ### Patch Changes
17
+
18
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
19
+
20
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
21
+
22
+ ```js
23
+ const prompt = 'Santa Claus driving a Cadillac';
24
+
25
+ const { providerMetadata } = await experimental_generateImage({
26
+ model: openai.image('dall-e-3'),
27
+ prompt,
28
+ });
29
+
30
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
31
+
32
+ console.log({
33
+ prompt,
34
+ revisedPrompt,
35
+ });
36
+ ```
37
+
38
+ - Updated dependencies [957b739]
39
+ - Updated dependencies [9bd5ab5]
40
+ - @ai-sdk/provider-utils@3.0.0-canary.14
41
+ - @ai-sdk/provider@2.0.0-canary.13
42
+
43
+ ## 5.0.0-canary.16
44
+
45
+ ### Major Changes
46
+
47
+ - ec78cdc: chore (ai): remove "data" UIMessage role
48
+ - 8b86e99: chore (ai): replace `Message` with `UIMessage`
49
+ - 2524fc7: chore (ai): remove ui message toolInvocations property
50
+ - 175b868: chore (ai): rename reasoning UI parts 'reasoning' property to 'text'
51
+
52
+ ### Patch Changes
53
+
54
+ - 9b4d074: feat(streamObject): add enum support
55
+ - 28ad69e: fix(react-native): support experimental_attachments without FileList global
56
+ - ec5933d: chore (ai/mcp): add `assertCapability` method to experimental MCP client
57
+
3
58
  ## 5.0.0-canary.15
4
59
 
5
60
  ### Major Changes