MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / handle_streaming_response

Function handle_streaming_response

api/azureai_client.py:90–95  ·  view source on GitHub ↗

r"""Handle the streaming response.

(generator: Stream[ChatCompletionChunk])

Source from the content-addressed store, hash-verified

88
89
90def handle_streaming_response(generator: Stream[ChatCompletionChunk]):
91 r"""Handle the streaming response."""
92 for completion in generator:
93 log.debug(f"Raw chunk completion: {completion}")
94 parsed_content = parse_stream_response(completion)
95 yield parsed_content
96
97
98def get_all_messages_content(completion: ChatCompletion) -> List[str]:

Callers

nothing calls this directly

Calls 1

parse_stream_responseFunction · 0.70

Tested by

no test coverage detected