Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist conversation state #296

Closed
bertybuttface opened this issue Feb 3, 2023 · 3 comments
Closed

Persist conversation state #296

bertybuttface opened this issue Feb 3, 2023 · 3 comments

Comments

@bertybuttface
Copy link

Describe the feature

We used to persist conversation state across reboots. Now we are using the new API based way of accessing ChatGPT the package we are using also needs to persist it's own state so that it can simulate the old conversationId and parentMessageId behaviour of the old interface.

@adrenallen
Copy link

I think this is the same issue I'm having, conversation context does not seem to be working when passing conversation and parent messaged id :(

@bertybuttface
Copy link
Author

Apologies I raised this issue on the wrong library

@transitive-bullshit
Copy link
Owner

This is fully supported. See the demos/demo-persistence.ts for an example.

Any https://github.com/jaredwray/keyv is easy to use – or you can use getMessageById and upsertMessage to have full control over message persistence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants