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

Chat history #12

Open
AliSiddique opened this issue Nov 6, 2023 · 2 comments
Open

Chat history #12

AliSiddique opened this issue Nov 6, 2023 · 2 comments

Comments

@AliSiddique
Copy link

I am trying to add chat history, but i keep getting errors. Is there a way to add chat history in this app? I am using upstash redis for memory store.

@rossanodr
Copy link

did you find this out?

I am trying to add chat history, but i keep getting errors. Is there a way to add chat history in this app? I am using upstash redis for memory store.

@AliSiddique
Copy link
Author

did you find this out?

I am trying to add chat history, but i keep getting errors. Is there a way to add chat history in this app? I am using upstash redis for memory store.

This repo is using the legacy adapter, so you can use the event callbacks: https://sdk.vercel.ai/docs/reference/stream-helpers/langchain-stream. You can easily integrate redis when using the callbacks to add chat to a certain chat. An example is https://github.com/saasunderone/ai-saasunderone/blob/main/src/app/api/chat/route.ts. Hope this helps!

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

2 participants