You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In .NET, when you run the stream the chat completion, the stream also includes chunks for when the model is sending over the details of the function call.
Notice how in the variables for .NET, the StreamingChatMessageContent has null content, and instead, has a ToolCallUpdate
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Python: Streaming chat completion is missing the chunks for function calls
.Net: Python: Streaming chat completion is missing the chunks for function calls
May 15, 2024
github-actionsbot
changed the title
.Net: Python: Streaming chat completion is missing the chunks for function calls
Python: Streaming chat completion is missing the chunks for function calls
May 15, 2024
### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
1. Why is this change required?
2. What problem does it solve?
3. What scenario does it contribute to?
4. If it fixes an open issue, please link to the issue here.
-->
This pull request includes significant changes across multiple files,
mainly related to the addition of hooks and the modification of function
invocations in the `semantic_kernel` module. The changes also include
the addition of a new sample and a YAML file, and modifications to the
`__init__.py` files.
Removals:
*
[`python/semantic_kernel/events`](diffhunk://#diff-ebda9504832b19ab83239a92c9a6d5f8c744deff9fef86071c13956ec92bb010L1-L11):
Removed the previously used events.
New Exceptions:
*
[`python/semantic_kernel/exceptions/kernel_exceptions.py`](diffhunk://#diff-450aaa5595a8b22cd6ee212eb79b7d6b0d4e9c1072063ef32018a3e7d3fdf21dR41-R48):
Added new exception classes `OperationCancelledException` and
`HookInvalidSignatureError`.
[[1]](diffhunk://#diff-450aaa5595a8b22cd6ee212eb79b7d6b0d4e9c1072063ef32018a3e7d3fdf21dR41-R48)
[[2]](diffhunk://#diff-450aaa5595a8b22cd6ee212eb79b7d6b0d4e9c1072063ef32018a3e7d3fdf21dR57-R58)
Fixes: #3038Fixes: #6276
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
In .NET, when you run the stream the chat completion, the stream also includes chunks for when the model is sending over the details of the function call.
Notice how in the variables for .NET, the
StreamingChatMessageContent
hasnull
content, and instead, has aToolCallUpdate
The text was updated successfully, but these errors were encountered: