mirror of
https://github.com/ollama/ollama-python.git
synced 2026-05-03 12:52:35 +00:00
Merge fcfdb820d0 into dbccf192ac
This commit is contained in:
@@ -33,6 +33,17 @@ print(response.message.content)
|
|||||||
|
|
||||||
See [_types.py](ollama/_types.py) for more information on the response types.
|
See [_types.py](ollama/_types.py) for more information on the response types.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
See the examples in [`examples/`](examples/) for additional usage patterns, including:
|
||||||
|
|
||||||
|
- chat (with and without streaming)
|
||||||
|
- chat with history
|
||||||
|
- tools / function calling
|
||||||
|
- structured outputs
|
||||||
|
- multimodal and image generation
|
||||||
|
- embeddings and model management
|
||||||
|
|
||||||
## Streaming responses
|
## Streaming responses
|
||||||
|
|
||||||
Response streaming can be enabled by setting `stream=True`.
|
Response streaming can be enabled by setting `stream=True`.
|
||||||
|
|||||||
Reference in New Issue
Block a user