You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update references to use ai-sdk.dev (#6076)
<!--
Welcome to contributing to AI SDK! We're excited to see your changes.
We suggest you read the following contributing guide we've created
before submitting:
https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->
## Background
<!-- Why was this change necessary? -->
## Summary
<!-- What did you change? -->
## Verification
<!--
For features & bugfixes.
Please explain how you *manually* verified that the change works
end-to-end as expected (independent of automated tests).
Remove the section if it's not needed (e.g. for docs).
-->
## Tasks
<!--
This task list is intended to help you keep track of what you need to
do.
Feel free to add tasks and remove unnecessary tasks as needed.
Please check if the PR fulfills the following requirements:
-->
- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [ ] Formatting issues have been fixed (run `pnpm prettier-fix` in the
project root)
## Future Work
<!--
Feel free to mention things not covered by this PR that can be done in
future PRs.
Remove the section if it's not needed.
-->
## Related Issues
<!--
List related issues here, e.g. "Fixes#1234".
Remove the section if it's not needed.
-->
Copy file name to clipboardExpand all lines: .github/workflows/actions/verify-changesets/index.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ export async function verifyChangesets(
127
127
if(invalidVersionBumps.length>0){
128
128
throwObject.assign(
129
129
newError(
130
-
`Invalid .changeset file - invalid version bump (only "patch" is allowed, see https://sdk.vercel.ai/docs/migration-guides/versioning). To bypass, add one of the following labels: ${BYPASS_LABELS.join(', ')}`,
130
+
`Invalid .changeset file - invalid version bump (only "patch" is allowed, see https://ai-sdk.dev/docs/migration-guides/versioning). To bypass, add one of the following labels: ${BYPASS_LABELS.join(', ')}`,
`Invalid .changeset file - invalid version bump (only "patch" is allowed, see https://sdk.vercel.ai/docs/migration-guides/versioning). To bypass, add one of the following labels: minor, major`,
117
+
`Invalid .changeset file - invalid version bump (only "patch" is allowed, see https://ai-sdk.dev/docs/migration-guides/versioning). To bypass, add one of the following labels: minor, major`,
Copy file name to clipboardExpand all lines: content/docs/01-introduction/index.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,13 @@ If you have questions about anything related to the AI SDK, you're always welcom
58
58
59
59
## `llms.txt` (for Cursor, Windsurf, Copilot, Claude etc.)
60
60
61
-
You can access the entire AI SDK documentation in Markdown format at [sdk.vercel.ai/llms.txt](/llms.txt). This can be used to ask any LLM (assuming it has a big enough context window) questions about the AI SDK based on the most up-to-date documentation.
61
+
You can access the entire AI SDK documentation in Markdown format at [ai-sdk.dev/llms.txt](/llms.txt). This can be used to ask any LLM (assuming it has a big enough context window) questions about the AI SDK based on the most up-to-date documentation.
62
62
63
63
### Example Usage
64
64
65
65
For instance, to prompt an LLM with questions about the AI SDK:
66
66
67
-
1. Copy the documentation contents from [sdk.vercel.ai/llms.txt](/llms.txt)
67
+
1. Copy the documentation contents from [ai-sdk.dev/llms.txt](/llms.txt)
Copy file name to clipboardExpand all lines: content/docs/02-guides/01-rag-chatbot.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ In this project, you will build a chatbot that will only respond with informatio
106
106
This project will use the following stack:
107
107
108
108
-[Next.js](https://nextjs.org) 14 (App Router)
109
-
-[ AI SDK ](https://sdk.vercel.ai/docs)
109
+
-[ AI SDK ](/docs)
110
110
-[OpenAI](https://openai.com)
111
111
-[ Drizzle ORM ](https://orm.drizzle.team)
112
112
-[ Postgres ](https://www.postgresql.org/) with [ pgvector ](https://github.com/pgvector/pgvector)
@@ -254,7 +254,7 @@ You will use the AI SDK to create embeddings. This will require two more depende
254
254
255
255
<Snippettext="pnpm add ai @ai-sdk/react @ai-sdk/openai" />
256
256
257
-
This will install the [AI SDK](https://sdk.vercel.ai/docs), AI SDK's React hooks, and AI SDK's [OpenAI provider](/providers/ai-sdk-providers/openai).
257
+
This will install the [AI SDK](/docs), AI SDK's React hooks, and AI SDK's [OpenAI provider](/providers/ai-sdk-providers/openai).
258
258
259
259
<Note>
260
260
The AI SDK is designed to be a unified interface to interact with any large
@@ -535,7 +535,7 @@ export async function POST(req: Request) {
535
535
In this code, you define a tool called `addResource`. This tool has three elements:
536
536
537
537
-**description**: description of the tool that will influence when the tool is picked.
538
-
-**parameters**: [Zod schema](https://sdk.vercel.ai/docs/foundations/tools#schema-specification-and-validation-with-zod) that defines the parameters necessary for the tool to run.
538
+
-**parameters**: [Zod schema](/docs/foundations/tools#schema-specification-and-validation-with-zod) that defines the parameters necessary for the tool to run.
539
539
-**execute**: An asynchronous function that is called with the arguments from the tool call.
540
540
541
541
In simple terms, on each generation, the model will decide whether it should call the tool. If it deems it should call the tool, it will extract the parameters from the input and then append a new `message` to the `messages` array of type `tool-call`. The AI SDK will then run the `execute` function with the parameters provided by the `tool-call` message.
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the full capabilities of the AI SDK.
204
-
2. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action and get inspired for your own projects.
205
-
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [sdk.vercel.ai/docs/guides](/docs/guides).
203
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the full capabilities of the AI SDK.
204
+
2. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action and get inspired for your own projects.
205
+
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [ai-sdk.dev/docs/guides](/docs/guides).
206
206
4. Check out ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
Copy file name to clipboardExpand all lines: content/docs/02-guides/20-sonnet-3-7.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -164,9 +164,9 @@ The useChat hook on your root page (`app/page.tsx`) will make a request to your
164
164
165
165
Ready to dive in? Here's how you can begin:
166
166
167
-
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the capabilities of the AI SDK.
168
-
2. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action.
169
-
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) at [sdk.vercel.ai/docs/guides](/docs/guides).
167
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the capabilities of the AI SDK.
168
+
2. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action.
169
+
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) at [ai-sdk.dev/docs/guides](/docs/guides).
170
170
4. Use ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
171
171
172
172
Claude 3.7 Sonnet opens new opportunities for reasoning-intensive AI applications. Start building today and leverage the power of advanced reasoning in your AI projects.
Copy file name to clipboardExpand all lines: content/docs/02-guides/21-llama-3_1.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -386,7 +386,7 @@ The AI SDK ensures that your application remains clean and modular, accelerating
386
386
387
387
Ready to get started? Here's how you can dive in:
388
388
389
-
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the full capabilities of the AI SDK.
390
-
2. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action and get inspired for your own projects.
391
-
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [sdk.vercel.ai/docs/guides](/docs/guides).
389
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the full capabilities of the AI SDK.
390
+
2. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action and get inspired for your own projects.
391
+
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [ai-sdk.dev/docs/guides](/docs/guides).
392
392
4. Check out ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
Copy file name to clipboardExpand all lines: content/docs/02-guides/22-gpt-4-5.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ The useChat hook on your root page (`app/page.tsx`) will make a request to your
169
169
170
170
Ready to get started? Here's how you can dive in:
171
171
172
-
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the full capabilities of the AI SDK.
173
-
2. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action and get inspired for your own projects.
174
-
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [sdk.vercel.ai/docs/guides](/docs/guides).
172
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the full capabilities of the AI SDK.
173
+
2. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action and get inspired for your own projects.
174
+
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [ai-sdk.dev/docs/guides](/docs/guides).
175
175
4. Check out ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
Copy file name to clipboardExpand all lines: content/docs/02-guides/23-o1.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -232,8 +232,8 @@ The useChat hook on your root page (`app/page.tsx`) will make a request to your
232
232
233
233
Ready to get started? Here's how you can dive in:
234
234
235
-
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the full capabilities of the AI SDK.
235
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the full capabilities of the AI SDK.
236
236
1. Check out our support for the o1 series of reasoning models in the [OpenAI Provider](/providers/ai-sdk-providers/openai#reasoning-models).
237
-
1. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action and get inspired for your own projects.
238
-
1. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [sdk.vercel.ai/docs/guides](/docs/guides).
237
+
1. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action and get inspired for your own projects.
238
+
1. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [ai-sdk.dev/docs/guides](/docs/guides).
239
239
1. Check out ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
Copy file name to clipboardExpand all lines: content/docs/02-guides/24-o3.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -209,8 +209,8 @@ The useChat hook on your root page (`app/page.tsx`) will make a request to your
209
209
210
210
Ready to get started? Here's how you can dive in:
211
211
212
-
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the full capabilities of the AI SDK.
212
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the full capabilities of the AI SDK.
213
213
2. Check out our support for o3-mini in the [OpenAI Provider](/providers/ai-sdk-providers/openai#reasoning-models).
214
-
3. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action and get inspired for your own projects.
215
-
4. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [sdk.vercel.ai/docs/guides](/docs/guides).
214
+
3. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action and get inspired for your own projects.
215
+
4. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) and multi-modal chat at [ai-sdk.dev/docs/guides](/docs/guides).
216
216
5. Check out ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
Copy file name to clipboardExpand all lines: content/docs/02-guides/25-r1.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -208,9 +208,9 @@ While DeepSeek R1 models are powerful, they have certain limitations:
208
208
209
209
Ready to dive in? Here's how you can begin:
210
210
211
-
1. Explore the documentation at [sdk.vercel.ai/docs](/docs) to understand the capabilities of the AI SDK.
212
-
2. Check out practical examples at [sdk.vercel.ai/examples](/examples) to see the SDK in action.
213
-
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) at [sdk.vercel.ai/docs/guides](/docs/guides).
211
+
1. Explore the documentation at [ai-sdk.dev/docs](/docs) to understand the capabilities of the AI SDK.
212
+
2. Check out practical examples at [ai-sdk.dev/examples](/examples) to see the SDK in action.
213
+
3. Dive deeper with advanced guides on topics like Retrieval-Augmented Generation (RAG) at [ai-sdk.dev/docs/guides](/docs/guides).
214
214
4. Use ready-to-deploy AI templates at [vercel.com/templates?type=ai](https://vercel.com/templates?type=ai).
215
215
216
216
DeepSeek R1 opens new opportunities for reasoning-intensive AI applications. Start building today and leverage the power of advanced reasoning in your AI projects.
You will need to handle other content types manually.
650
+
parts](/docs/foundations/prompts#multi-modal-messages). You will need to
651
+
handle other content types manually.
652
652
</Note>
653
653
654
654
```tsx filename="app/page.tsx"
@@ -731,7 +731,7 @@ export default function Page() {
731
731
732
732
You can also send URLs as attachments along with a message. This can be useful for sending links to external resources or media content.
733
733
734
-
> **Note:** The URL can also be a data URL, which is a base64-encoded string that represents the content of a file. Currently, only `image/*` content types get automatically converted into [multi-modal content parts](https://sdk.vercel.ai/docs/foundations/prompts#multi-modal-messages). You will need to handle other content types manually.
734
+
> **Note:** The URL can also be a data URL, which is a base64-encoded string that represents the content of a file. Currently, only `image/*` content types get automatically converted into [multi-modal content parts](/docs/foundations/prompts#multi-modal-messages). You will need to handle other content types manually.
Copy file name to clipboardExpand all lines: content/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -206,4 +206,4 @@ This page is first marked as a client component with the `"use client";` directi
206
206
207
207
You can now allow the model to respond to your prompt with a React component. However, this example is limited to a static prompt that is set within your Server Action. You could make this example interactive by turning it into a chatbot.
208
208
209
-
Learn how to stream React components with the Next.js App Router using `streamUI` with this [example](https://sdk.vercel.ai/examples/next-app/interface/route-components).
209
+
Learn how to stream React components with the Next.js App Router using `streamUI` with this [example](/examples/next-app/interface/route-components).
Copy file name to clipboardExpand all lines: content/docs/08-migration-guides/39-migration-guide-3-1.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ export async function POST(req: Request) {
63
63
}
64
64
```
65
65
66
-
With AI SDK Core you have a unified API for any provider that implements the [AI SDK Language Model Specification](https://sdk.vercel.ai/providers/community-providers/custom-providers).
66
+
With AI SDK Core you have a unified API for any provider that implements the [AI SDK Language Model Specification](/providers/community-providers/custom-providers).
67
67
68
68
Let’s take a look at the example above, but refactored to utilize the AI SDK Core API alongside the AI SDK OpenAI provider. In this example, you import the LLM function you want to use from the `ai` package, import the OpenAI provider from `@ai-sdk/openai`, and then you call the model and return the response using the `toDataStreamResponse()` helper function.
Copy file name to clipboardExpand all lines: content/providers/01-ai-sdk-providers/08-amazon-bedrock.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn how to use the Amazon Bedrock provider.
5
5
6
6
# Amazon Bedrock Provider
7
7
8
-
The Amazon Bedrock provider for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Amazon Bedrock](https://aws.amazon.com/bedrock) APIs.
8
+
The Amazon Bedrock provider for the [AI SDK](/docs) contains language model support for the [Amazon Bedrock](https://aws.amazon.com/bedrock) APIs.
Copy file name to clipboardExpand all lines: content/providers/01-ai-sdk-providers/16-google-vertex.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn how to use the Google Vertex AI provider.
5
5
6
6
# Google Vertex Provider
7
7
8
-
The Google Vertex provider for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Google Vertex AI](https://cloud.google.com/vertex-ai) APIs. This includes support for [Google's Gemini models](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models) and [Anthropic's Claude partner models](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude).
8
+
The Google Vertex provider for the [AI SDK](/docs) contains language model support for the [Google Vertex AI](https://cloud.google.com/vertex-ai) APIs. This includes support for [Google's Gemini models](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models) and [Anthropic's Claude partner models](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude).
9
9
10
10
<Note>
11
11
The Google Vertex provider is compatible with both Node.js and Edge runtimes.
@@ -648,7 +648,7 @@ The following provider options are available:
648
648
649
649
## Google Vertex Anthropic Provider Usage
650
650
651
-
The Google Vertex Anthropic provider for the [AI SDK](https://sdk.vercel.ai/docs) offers support for Anthropic's Claude models through the Google Vertex AI APIs. This section provides details on how to set up and use the Google Vertex Anthropic provider.
651
+
The Google Vertex Anthropic provider for the [AI SDK](/docs) offers support for Anthropic's Claude models through the Google Vertex AI APIs. This section provides details on how to set up and use the Google Vertex Anthropic provider.
Copy file name to clipboardExpand all lines: content/providers/03-community-providers/14-azure-ai.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ The **[Quail-AI/azure-ai-provider](https://github.com/QuailAI/azure-ai-provider)
9
9
10
10
## Language Models
11
11
12
-
This provider works with any model in the Azure AI Foundry that is compatible with the Azure-Rest AI-inference API.
13
-
**Note:** This provider is not compatible with the Azure OpenAI models. For those, please use the [Azure OpenAI Provider](https://sdk.vercel.ai/providers/ai-sdk-providers/azure).
12
+
This provider works with any model in the Azure AI Foundry that is compatible with the Azure-Rest AI-inference API.
13
+
**Note:** This provider is not compatible with the Azure OpenAI models. For those, please use the [Azure OpenAI Provider](/providers/ai-sdk-providers/azure).
0 commit comments