[GH-ISSUE #11492] Log/return query parameters in response metadata #33351

Open
opened 2026-04-22 15:55:48 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @maczg on GitHub (Jul 22, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11492

Currently, when making requests to Ollama with specific parameters (such as temperature, top_p, and top_k), there's no way to confirm which parameters were used by the model or to log them for debugging/auditing purposes.

It would be helpful to have one or both of the following:

  1. Response metadata: Include the effective parameters used in the response
  2. Server-side logging: Option to log the parameters of incoming requests (perhaps with a debug flag)

This would be particularly useful for:

  • Debugging parameter effects
  • Compliance/auditing requirements
  • Understanding default parameter behavior

I've reviewed the current API documentation and tested responses, but please let me know if this functionality already exists and I missed it.

Originally created by @maczg on GitHub (Jul 22, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11492 Currently, when making requests to Ollama with specific parameters (such as temperature, top_p, and top_k), there's no way to confirm which parameters were used by the model or to log them for debugging/auditing purposes. It would be helpful to have one or both of the following: 1. **Response metadata**: Include the effective parameters used in the response 2. **Server-side logging**: Option to log the parameters of incoming requests (perhaps with a debug flag) This would be particularly useful for: - Debugging parameter effects - Compliance/auditing requirements - Understanding default parameter behavior I've reviewed the current API documentation and tested responses, but please let me know if this functionality already exists and I missed it.
GiteaMirror added the feature request label 2026-04-22 15:55:48 -05:00
Author
Owner

@rick-github commented on GitHub (Jul 22, 2025):

#10975

<!-- gh-comment-id:3102245905 --> @rick-github commented on GitHub (Jul 22, 2025): #10975
Author
Owner

@maczg commented on GitHub (Jul 22, 2025):

Thanks for the response!

The external tools suggestion makes sense as a workaround, but I'm wondering if there are specific reasons why exposing this information internally (either in response metadata or debug logs) wouldn't align with Ollama's goals?

<!-- gh-comment-id:3104000688 --> @maczg commented on GitHub (Jul 22, 2025): Thanks for the response! The external tools suggestion makes sense as a workaround, but I'm wondering if there are specific reasons why exposing this information internally (either in response metadata or debug logs) wouldn't align with Ollama's goals?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33351