• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deepset-ai / haystack / 15486046280
92%

Build:
DEFAULT BRANCH: main
Ran 06 Jun 2025 08:19AM UTC
Jobs 1
Files 214
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jun 2025 08:17AM UTC coverage: 90.418% (-0.001%) from 90.419%
15486046280

push

github

web-flow
feat: Update streaming chunk (#9424)

* Start expanding StreamingChunk

* First pass at expanding Streaming Chunk

* Working version!

* Some tweaks and also make ToolInvoker stream a chunk with a finish reason

* Properly update test

* Change to tool_name, remove kw_only since its python 3.10 only and update HuggingFaceAPIChatGenerator to start following new StreamingChunk

* Add reno

* Some cleanup

* Fix unit tests

* Fix mypy and integration test

* Fix pylint

* Start refactoring huggingface local api

* Refactor openai generator and chat generator to reuse util methods

* Did some reorg

* Reusue utility method in HuggingFaceAPI

* Get rid of unneeded default values in tests

* Update conversion of streaming chunks to chat message to not rely on openai dataclass anymore

* Fix tests and loosen check in StreamingChunk post_init

* Fixes

* Fix license header

* Add start and index to HFAPIGenerator

* Fix mypy

* Clean up

* Update haystack/components/generators/utils.py

Co-authored-by: Julian Risch <julian.risch@deepset.ai>

* Update haystack/components/generators/utils.py

Co-authored-by: Julian Risch <julian.risch@deepset.ai>

* Change StreamingChunk.start to only a bool

* PR comments

* Fix unit test

* PR comment

* Fix test

---------

Co-authored-by: Julian Risch <julian.risch@deepset.ai>

11512 of 12732 relevant lines covered (90.42%)

0.9 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
46.15
0.0% dataclasses/__init__.py
2
85.29
-0.42% utils/hf.py
5
90.38
2.51% dataclasses/streaming_chunk.py
7
95.76
0.24% components/generators/chat/openai.py
8
95.63
0.0% components/generators/chat/hugging_face_api.py
9
83.92
0.0% components/tools/tool_invoker.py
14
62.0
-2.0% components/generators/utils.py
Jobs
ID Job ID Ran Files Coverage
1 15486046280.1 06 Jun 2025 08:19AM UTC 214
90.42
GitHub Action Run
Source Files on build 15486046280
  • Tree
  • List 214
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15486046280
  • b61886b1 on github
  • Prev Build on main (#15484500747)
  • Next Build on main (#15486521866)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc