ai 5.0.0-canary.16 → 5.0.0-canary.18

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,64 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.0-canary.18
4
+
5
+ ### Major Changes
6
+
7
+ - c60f895: chore (ai): remove useChat keepLastMessageOnError
8
+ - a662dea: chore (ai): remove sendExtraMessageFields
9
+
10
+ ### Patch Changes
11
+
12
+ - a571d6e: chore(provider-utils): move ToolResultContent to provider-utils
13
+ - 332167b: chore (ai): move maxSteps into UseChatOptions
14
+ - a8c8bd5: feat(embed-many): respect supportsParallelCalls & concurrency
15
+ - Updated dependencies [a571d6e]
16
+ - Updated dependencies [a8c8bd5]
17
+ - Updated dependencies [7979f7f]
18
+ - Updated dependencies [41fa418]
19
+ - @ai-sdk/provider-utils@3.0.0-canary.15
20
+ - @ai-sdk/provider@2.0.0-canary.14
21
+
22
+ ## 5.0.0-canary.17
23
+
24
+ ### Major Changes
25
+
26
+ - f04fb4a: chore (ai): replace useChat attachments with file ui parts
27
+ - fd1924b: chore (ai): remove redundant `mimeType` property
28
+ - fafc3f2: chore (ai): change file to parts to use urls instead of data
29
+ - 92cb0a2: chore (ai): rename CoreMessage to ModelMessage
30
+
31
+ ### Minor Changes
32
+
33
+ - c9ad635: feat (ai): add filename to file ui parts
34
+
35
+ ### Patch Changes
36
+
37
+ - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (#5977)
38
+
39
+ The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models.
40
+
41
+ ```js
42
+ const prompt = 'Santa Claus driving a Cadillac';
43
+
44
+ const { providerMetadata } = await experimental_generateImage({
45
+ model: openai.image('dall-e-3'),
46
+ prompt,
47
+ });
48
+
49
+ const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt;
50
+
51
+ console.log({
52
+ prompt,
53
+ revisedPrompt,
54
+ });
55
+ ```
56
+
57
+ - Updated dependencies [957b739]
58
+ - Updated dependencies [9bd5ab5]
59
+ - @ai-sdk/provider-utils@3.0.0-canary.14
60
+ - @ai-sdk/provider@2.0.0-canary.13
61
+
3
62
  ## 5.0.0-canary.16
4
63
 
5
64
  ### Major Changes
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  # AI SDK
4
4
 
5
- The [AI SDK](https://sdk.vercel.ai/docs) is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Node.js.
5
+ The [AI SDK](https://ai-sdk.dev/docs) is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Node.js.
6
6
 
7
- To learn more about how to use the AI SDK, check out our [API Reference](https://sdk.vercel.ai/docs/reference) and [Documentation](https://sdk.vercel.ai/docs).
7
+ To learn more about how to use the AI SDK, check out our [API Reference](https://ai-sdk.dev/docs/reference) and [Documentation](https://ai-sdk.dev/docs).
8
8
 
9
9
  ## Installation
10
10
 
@@ -18,7 +18,7 @@ npm install ai
18
18
 
19
19
  ### AI SDK Core
20
20
 
21
- The [AI SDK Core](https://sdk.vercel.ai/docs/ai-sdk-core/overview) module provides a unified API to interact with model providers like [OpenAI](https://sdk.vercel.ai/providers/ai-sdk-providers/openai), [Anthropic](https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic), [Google](https://sdk.vercel.ai/providers/ai-sdk-providers/google-generative-ai), and more.
21
+ The [AI SDK Core](https://ai-sdk.dev/docs/ai-sdk-core/overview) module provides a unified API to interact with model providers like [OpenAI](https://ai-sdk.dev/providers/ai-sdk-providers/openai), [Anthropic](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic), [Google](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai), and more.
22
22
 
23
23
  You will then install the model provider of your choice.
24
24
 
@@ -43,7 +43,7 @@ console.log(text);
43
43
 
44
44
  ### AI SDK UI
45
45
 
46
- The [AI SDK UI](https://sdk.vercel.ai/docs/ai-sdk-ui/overview) module provides a set of hooks that help you build chatbots and generative user interfaces. These hooks are framework agnostic, so they can be used in Next.js, React, Svelte, and Vue.
46
+ The [AI SDK UI](https://ai-sdk.dev/docs/ai-sdk-ui/overview) module provides a set of hooks that help you build chatbots and generative user interfaces. These hooks are framework agnostic, so they can be used in Next.js, React, Svelte, and Vue.
47
47
 
48
48
  You need to install the package for your framework:
49
49