update docs

This commit is contained in:
ParthSareen 2025-09-23 17:31:17 -07:00
parent 43090cf116
commit 9dbdcdf337
2 changed files with 17 additions and 10 deletions

View File

@ -5,6 +5,9 @@ Run the examples in this directory with:
```sh
# Run example
python3 examples/<example>.py
# or with uv
uv run examples/<example>.py
```
See [ollama/docs/api.md](https://github.com/ollama/ollama/blob/main/docs/api.md) for full API documentation
@ -36,6 +39,20 @@ See [ollama/docs/api.md](https://github.com/ollama/ollama/blob/main/docs/api.md)
- [gpt-oss-tools-browser.py](gpt-oss-tools-browser.py) - Using browser research tools with gpt-oss
- [gpt-oss-tools-browser-stream.py](gpt-oss-tools-browser-stream.py) - Using browser research tools with gpt-oss, with streaming enabled
### Web search and fetch - Use web search and fetch tools with a model
`OLLAMA_API_KEY` is required. You can get one from [ollama.com/settings/keys](https://ollama.com/settings/keys).
- [web-search-fetch.py](web-search-fetch.py)
#### MCP server
```sh
uv run examples/mcp-web-search-and-fetch.py
```
- [mcp_web_search_crawl_server.py](mcp_web_search_crawl_server.py)
### Multimodal with Images - Chat with a multimodal (image chat) model
- [multimodal-chat.py](multimodal-chat.py)
@ -84,13 +101,3 @@ Requirement: `pip install tqdm`
### Thinking (levels) - Choose the thinking level
- [thinking-levels.py](thinking-levels.py)
### Web search and fetch MCP server
- [mcp_web_search_crawl_server.py](mcp_web_search_crawl_server.py)
```sh
uv run examples/mcp-web-search-and-fetch.py
```
`OLLAMA_API_KEY` is required. You can get one from [ollama.com/settings/keys](https://ollama.com/settings/keys).