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
docs(provider/ollama): showcase ollama-ai-provider-v2 and ai-sdk-ollama (vercel#7998)
## Background
vercel#6924 (comment)
The current community-made Ollama Provider is unresponsive to issues and
PR's, hasn't been worked on in 7 months and is missing essential
features like:
- tool streaming
- reasoning support
- ollama's think toggle, for models like Qwen3
## Summary
This PR updates the docs to point new users in the direction of an
actively-maintained and up-to-date package for use with Ollama.
Copy file name to clipboardExpand all lines: content/providers/03-community-providers/03-ollama.mdx
+39-27Lines changed: 39 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,47 +5,40 @@ description: Learn how to use the Ollama provider.
5
5
6
6
# Ollama Provider
7
7
8
-
<Notetype="warning">
9
-
This community provider is not yet compatible with AI SDK 5. It uses the
10
-
deprecated `.embedding()` method instead of the standard
11
-
`.textEmbeddingModel()` method. Please wait for the provider to be updated or
12
-
consider using an [AI SDK 5 compatible provider](/providers/ai-sdk-providers).
13
-
</Note>
14
-
15
-
[sgomez/ollama-ai-provider](https://github.com/sgomez/ollama-ai-provider) is a community provider that uses [Ollama](https://ollama.com/) to provide language model support for the AI SDK.
8
+
[nordwestt/ollama-ai-provider-v2](https://github.com/nordwestt/ollama-ai-provider-v2) is a community provider that uses [Ollama](https://ollama.com/) to provide language model support for the AI SDK.
16
9
17
10
## Setup
18
11
19
-
The Ollama provider is available in the `ollama-ai-provider` module. You can install it with
12
+
The Ollama provider is available in the `ollama-ai-provider-v2` module. You can install it with
There is an alternative provider package called [`ai-sdk-ollama` by jagreehal](https://github.com/jagreehal/ai-sdk-ollama), which is fundamentally different from this provider. Instead of using the HTTP API directly, it leverages the [`ollama`](https://www.npmjs.com/package/ollama) package for communication.
108
+
109
+
This approach may have different tradeoffs in terms of performance, compatibility, and features. It may be better or worse for your use case, so you may want to review both options to decide which fits your needs best.
0 commit comments