Lines Matching refs:history
7 #history = [];
18 <button type="button" class="delete-history" title="restart">
35 const restart = this.#root.querySelector('.delete-history');
106 .controls button.delete-history {
183 * Save history to session storage
186 sessionStorage.setItem('ai-chat-history', JSON.stringify(this.#history));
190 * Load the history from session storage and display it
193 const history = sessionStorage.getItem('ai-chat-history');
194 if (history) {
195 this.#history = JSON.parse(history);
196 this.#history.forEach(row => {
204 sessionStorage.removeItem('ai-chat-history');
205 this.#history = [];
228 this.#history.push([response.question, response.answer, response.sources]);
319 formData.append('history', JSON.stringify(this.#history));