-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Update streaming chunk #9424
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0446fe5
Start expanding StreamingChunk
sjrl f2ddbff
First pass at expanding Streaming Chunk
sjrl 6cb7a31
Working version!
sjrl 005ef69
Some tweaks and also make ToolInvoker stream a chunk with a finish re…
sjrl e29b6f2
Properly update test
sjrl 5914d5b
Change to tool_name, remove kw_only since its python 3.10 only and up…
sjrl d141b47
Add reno
sjrl ac51918
Some cleanup
sjrl 012c0bb
Fix unit tests
sjrl 6048328
Fix mypy and integration test
sjrl 010c037
Fix pylint
sjrl 93758fd
Merge branch 'main' of github.com:deepset-ai/haystack into update-str…
sjrl f43477d
Start refactoring huggingface local api
sjrl a907d9e
Refactor openai generator and chat generator to reuse util methods
sjrl ced8fd8
Did some reorg
sjrl 22314b8
Reusue utility method in HuggingFaceAPI
sjrl bc306d3
Merge branch 'main' of github.com:deepset-ai/haystack into update-str…
sjrl b625395
Merge branch 'main' of github.com:deepset-ai/haystack into update-str…
sjrl 8cbefeb
Get rid of unneeded default values in tests
sjrl 7cac572
Update conversion of streaming chunks to chat message to not rely on …
sjrl 4bfbe58
Fix tests and loosen check in StreamingChunk post_init
sjrl 3f8f661
Fixes
sjrl 51c8440
Fix license header
sjrl 658b47b
Add start and index to HFAPIGenerator
sjrl 27ca068
Fix mypy
sjrl 3a0558f
Merge branch 'main' into update-streaming-chunk
sjrl e5d2d74
Clean up
sjrl c3d303c
Merge branch 'update-streaming-chunk' of github.com:deepset-ai/haysta…
sjrl 59339f7
Merge branch 'main' into update-streaming-chunk
sjrl 7147e03
Merge branch 'main' into update-streaming-chunk
sjrl 06cb3ec
Update haystack/components/generators/utils.py
sjrl c2a2eb0
Update haystack/components/generators/utils.py
sjrl 665c710
Change StreamingChunk.start to only a bool
sjrl 9c8ae7b
PR comments
sjrl f75bd61
Fix unit test
sjrl 29a9b8b
PR comment
sjrl 26adf02
Fix test
sjrl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In ToolInvoker the whole ToolCallResult is always sent so start is always True and index is just the current message index.