Skip to content

Where does llama-server store it's chat history? #11549

Answered by danbev
BVEsun asked this question in Q&A
Discussion options

You must be logged in to vote

The chat history is stored in the browsers localStorage. This can be accessed by using the browsers console:

> console.table(localStorage)

This will show the contents of the localStorage and then you can inspect the converations that are currently stored which have a conv- prefix.

These conversations can then be inspected further using something like:

> const data = JSON.parse(localStorage.getItem("conv-1738335678752"))
> data.id
'conv-1738335678752'
> data.messages[0]
{id: 1738335693132, role: 'user', content: 'What is the capital of Sweden?'}
> data.messages[1]
{id: 1738335693135, role: 'assistant', content: 'The capital of Sweden is Stockholm.'}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BVEsun
Comment options

Answer selected by BVEsun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants