Added support for asynchronous processing for chat - #39
Conversation
neagualexa
left a comment
There was a problem hiding this comment.
I am a bit confused, so is the callback url called first for resolving immediate steps before the main service provides the final response? or you could access the intermediate reasoning steps by going to the callback url?
Should we not also adopt the response body to allow for return of immediate steps?
|
So from my understanding of how I have implemented the callback for evalute:
|
maximiliansoelch
left a comment
There was a problem hiding this comment.
Just two minor suggestions so this better fits for chat.
But as this is only an example and the description, the PR can also be merged like this.
|
@neagualexa Regarding your question: Regarding your intermediate steps, e.g., returning reasoning to the caller, etc.: This would be part of the normal response. Alternatively, you could think about if it is required to open an additional streaming channel/connection after the normal request. |
Co-authored-by: Maximilian Sölch <maximiliansoelch@users.noreply.github.com>
Co-authored-by: Maximilian Sölch <maximiliansoelch@users.noreply.github.com>
# Conflicts: # paths/chat/schemas/ChatRequest.yml
Summary
Added a
callBackUrloption for chat, aligning with the currentEvaluateRequestdesign.The callback could be used for returning intermediate reasoning steps to the the user.
Related issue
#36
Scope
mainbranch, or from a fork if direct branch creation is not available.Validation
npm run lintnpm run bundle