-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
feat: support concurrent chat progress messages #212300
Conversation
…oyceerhl/western-bandicoot
this._proxy.$handleProgressChunk(this._request.requestId, progress) | ||
.then((handle) => { | ||
if (typeof handle === 'number' && task) { | ||
task().then((res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you call task()
before waiting for $handleProgressChunk
?
@@ -106,6 +106,21 @@ export interface IChatProgressMessage { | |||
kind: 'progressMessage'; | |||
} | |||
|
|||
export interface IChatTask extends IChatTaskDto { | |||
task?: () => Promise<string | void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these be non-optional? I don't see where they are undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixing both in #212372
No description provided.