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

deepset-ai / haystack / 10305030806

08 Aug 2024 03:29PM UTC coverage: 90.11% (-0.03%) from 90.143%
10305030806

Pull #8042

github

web-flow
Merge a1cc6f942 into ec02817f1
Pull Request #8042: feat: Implement apply_filter_policy and FilterPolicy.MERGE for the new filters

6952 of 7715 relevant lines covered (90.11%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
haystack/components/generators/utils.py
1
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
2
#
3
# SPDX-License-Identifier: Apache-2.0
4

5
from haystack.dataclasses import StreamingChunk
1✔
6

7

8
def print_streaming_chunk(chunk: StreamingChunk) -> None:
1✔
9
    """
10
    Default callback function for streaming responses.
11

12
    Prints the tokens of the first completion to stdout as soon as they are received
13
    """
14
    print(chunk.content, flush=True, end="")
×
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