Skip to content

Commit 533e823

Browse files
committed
cleanup
1 parent 0e5b69b commit 533e823

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

examples/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,30 @@ See [ollama/docs/api.md](https://github.com/ollama/ollama/blob/main/docs/api.md)
4343

4444
`OLLAMA_API_KEY` is required. You can get one from [ollama.com/settings/keys](https://ollama.com/settings/keys).
4545

46-
- [web-search-fetch.py](web-search-fetch.py)
46+
- [web-search.py](web-search.py)
4747

4848
#### MCP server
4949

5050
```sh
51-
uv run examples/mcp-web-search-and-fetch.py
51+
uv run examples/web-search-mcp.py
5252
```
5353

54-
- [mcp_web_search_crawl_server.py](mcp_web_search_crawl_server.py)
54+
Configuration to use with an MCP client:
55+
56+
```json
57+
{
58+
"mcpServers": {
59+
"web_search": {
60+
"type": "stdio",
61+
"command": "uv",
62+
"args": ["run", "path/to/ollama-python/examples/web-search-mcp.py"],
63+
"env": { "OLLAMA_API_KEY": "api-key" }
64+
}
65+
}
66+
}
67+
```
68+
69+
- [web-search-mcp.py](web-search-mcp.py)
5570

5671
### Multimodal with Images - Chat with a multimodal (image chat) model
5772

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)