[GH-ISSUE #8494] Can the /API/Chat interface support session related parameters? #5472

Closed
opened 2026-04-12 16:42:06 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @lx687 on GitHub (Jan 20, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8494

I want to control the Q&A behavior of the same user through session ID data,Does the current interface support it?

Image

Originally created by @lx687 on GitHub (Jan 20, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8494 I want to control the Q&A behavior of the same user through session ID data,Does the current interface support it? ![Image](https://github.com/user-attachments/assets/407a0515-8118-4612-958f-2ca6f6f74fbc)
Author
Owner

@rick-github commented on GitHub (Jan 20, 2025):

The ollama interface is stateless, it doesn't support session related parameters.

<!-- gh-comment-id:2601850575 --> @rick-github commented on GitHub (Jan 20, 2025): The ollama interface is stateless, it doesn't support session related parameters.
Author
Owner

@lx687 commented on GitHub (Jan 21, 2025):

How to handle session related matters,that require identification based on user IDs for business purposes

<!-- gh-comment-id:2604657140 --> @lx687 commented on GitHub (Jan 21, 2025): How to handle session related matters,that require identification based on user IDs for business purposes
Author
Owner

@rick-github commented on GitHub (Jan 21, 2025):

Use a proxy that implements access controls, eg ollama_proxy_server or nginx.

<!-- gh-comment-id:2604925341 --> @rick-github commented on GitHub (Jan 21, 2025): Use a proxy that implements access controls, eg [ollama_proxy_server](https://github.com/ParisNeo/ollama_proxy_server) or [nginx](https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5472