Skip to content

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