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

[v1] Implement Zustand to fix history states #54

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

daniwasonline
Copy link
Collaborator

@daniwasonline daniwasonline commented May 16, 2024

A really wack way of fixing the %reset command, but I implemented Zustand (a React-made agnostic global state manager) to properly handle the conversation history. It actually works?

E: I also added a %messages command to track the amount of messages stored in Zustand for debugging purposes.

@daniwasonline daniwasonline added the enhancement New feature or request label May 16, 2024
@daniwasonline daniwasonline removed the request for review from Butterroach May 16, 2024 02:12
Copy link
Member

@Butterroach Butterroach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah idk what you're doing

@daniwasonline
Copy link
Collaborator Author

yeah idk what you're doing

yeah me neither

Copy link
Collaborator

@artifishvr artifishvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks so overkilll but ok yeah lgtm

@daniwasonline daniwasonline merged commit 4d6bb9d into main May 16, 2024
@daniwasonline daniwasonline deleted the reset-fix branch May 16, 2024 02:37
@Butterroach Butterroach restored the reset-fix branch May 16, 2024 02:37
@Butterroach Butterroach deleted the reset-fix branch May 16, 2024 02:38
@Butterroach

This comment was marked as off-topic.

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

Successfully merging this pull request may close these issues.

3 participants