Skip to content

Commit dc9d081

Browse files
authored
Update Ollama docs instructions (#2993)
1 parent ce6bf90 commit dc9d081

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/models/openai.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,17 @@ You can then use the model with the [`OllamaProvider`][pydantic_ai.providers.oll
302302

303303
#### Example local usage
304304

305-
With `ollama` installed, you can run the server with the model you want to use:
305+
With `ollama` installed, you can download the model you want to use:
306306

307307
```bash
308-
ollama run llama3.2
308+
ollama pull llama3.2
309309
```
310310

311-
(this will pull the `llama3.2` model if you don't already have it downloaded)
311+
Run the server with the model you want to use:
312+
313+
```bash
314+
ollama serve
315+
```
312316

313317
Then run your code, here's a minimal example:
314318

0 commit comments

Comments
 (0)