mirror of
https://github.com/ollama/ollama.git
synced 2025-05-13 21:13:56 +02:00
18 lines
380 B
Markdown
18 lines
380 B
Markdown
# Ollama API Examples
|
|
|
|
Run the examples in this directory with:
|
|
|
|
```shell
|
|
go run example_name/main.go
|
|
```
|
|
|
|
## Chat - Chat with a model
|
|
- [chat/main.go](chat/main.go)
|
|
|
|
## Generate - Generate text from a model
|
|
- [generate/main.go](generate/main.go)
|
|
- [generate-streaming/main.go](generate-streaming/main.go)
|
|
|
|
## Pull - Pull a model
|
|
- [pull-progress/main.go](pull-progress/main.go)
|
|
|