[GH-ISSUE #5133] How do you ensure that the same questions you asked before are not used and that each time you ask a new conversation question through the api request /api/generate interface #28995

Closed
opened 2026-04-22 07:35:00 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @mingLvft on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5133

How do you ensure that the same questions you asked before are not used and that each time you ask a new conversation question through the api request /api/generate interface

Originally created by @mingLvft on GitHub (Jun 19, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5133 How do you ensure that the same questions you asked before are not used and that each time you ask a new conversation question through the api request /api/generate interface
GiteaMirror added the feature request label 2026-04-22 07:35:00 -05:00
Author
Owner

@pdevine commented on GitHub (Jul 9, 2024):

@mingLvft that's how the /api/generate endpoint works. Subsequent calls have no knowledge of previous calls to that endpoint.

If you don't want the same response you would have to tell the model something like "don't respond to this query with the following answers".

<!-- gh-comment-id:2215647391 --> @pdevine commented on GitHub (Jul 9, 2024): @mingLvft that's how the `/api/generate` endpoint works. Subsequent calls have no knowledge of previous calls to that endpoint. If you don't want the same response you would have to tell the model something like "don't respond to this query with the following answers".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#28995