Skip to content

Add resetting to chat rest endpoint

What does this MR do and why?

Adds optional parameter that resets chat history before and after making new request to LLM.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Call chat rest api with reset_history parameter set to true.
  2. In web ui observe New chat information in chat window before answer to the question posted through rest endpoint.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #433137 (closed)

Edited by Gosia Ksionek

Merge request reports