[PR #1035] [MERGED] add a complete /generate options example #20985

Closed
opened 2026-04-19 15:22:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1035
Author: @BruceMacD
Created: 11/7/2023
Status: Merged
Merged: 11/9/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/generate-opts-doc


📝 Commits (1)

  • a52c5b5 add a complete /generate options example

📊 Changes

2 files changed (+111 additions, -43 deletions)

View changed files

📝 api/types.go (+44 -43)
📝 docs/api.md (+67 -0)

📄 Description

  • Add an example to the api docs that shows how all generate runtime options can be specified
  • Move the GenerateRequest options closed to the struct declaration so its easier for readers to find

resolves #1027


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1035 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 11/7/2023 **Status:** ✅ Merged **Merged:** 11/9/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/generate-opts-doc` --- ### 📝 Commits (1) - [`a52c5b5`](https://github.com/ollama/ollama/commit/a52c5b559b4ebccb702b9fd961d969e423c941b2) add a complete /generate options example ### 📊 Changes **2 files changed** (+111 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+44 -43) 📝 `docs/api.md` (+67 -0) </details> ### 📄 Description - Add an example to the api docs that shows how all generate runtime options can be specified - Move the `GenerateRequest` options closed to the struct declaration so its easier for readers to find resolves #1027 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 15:22:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#20985