此网站需要 JavaScript。
我的项目
WeHub 热榜
数据中心
注册
登录
mirrors / ollama--ollama
项目文件夹
工单
项目文件夹
ollama--ollama
ollama--ollama
mirrors
我的项目
创建
文件
main
/
api
/
examples
T
添加文件
新建文件
上传文件
复制永久链接
下载目录为 ZIP
下载目录为 TAR.GZ
删除目录
文件历史
wehub-resource-sync
fecda92e8a
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
..
chat
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
generate
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
generate-streaming
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
multimodal
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
pull-progress
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
README.md
chore: import upstream snapshot with attribution
2026-07-13 11:56:09 +08:00
README.md
Ollama API Examples
Run the examples in this directory with:
go run example_name/main.go
Chat - Chat with a model
chat/main.go
Generate - Generate text from a model
generate/main.go
generate-streaming/main.go
Pull - Pull a model
pull-progress/main.go
在新工单中引用
查看 Git Blame
复制永久链接