You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
380 B
19 lines
380 B
3 weeks ago
|
# 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)
|
||
|
|