徽标
我的项目 WeHub 热榜 数据中心
注册 登录
徽标
项目文件夹 工单
mirrors / ollama--ollama
项目文件夹 工单

项目文件夹

ollama--ollama
ollama--ollama mirrors
我的项目 创建
文件
main
/api/examples
T
文件历史
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 复制永久链接
由 wehub 强力驱动
简体中文
English 简体中文
许可证 API