Skip to content

Added error throw for when user enters multiple messages. #440

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andyc2513
Copy link

This PR aims to address #28
Added a _messageInProgress boolean flag under the ChatSession class. This flag will be set to false initially, and will be set to true when chatSession.sendMessage() or chatSession.sendMessageStream is called. If either function is run again before the initial one completes, it will throw an error.

…eStream() so that when a promise is still processing, when a user sends a new message, they will get a notification to warn them of unexpected results
@Annhiluc Annhiluc added status:triaged Issue/PR triaged to the corresponding sub-team p2 labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 status:triaged Issue/PR triaged to the corresponding sub-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants