MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / on_stream_chunk

Method on_stream_chunk

examples/server/server.py:15578–15579  ·  view source on GitHub ↗
(chunk: CompletionChunk)

Source from the content-addressed store, hash-verified

15576 error_box: Dict[str, BaseException] = {}
15577
15578 def on_stream_chunk(chunk: CompletionChunk) -> None:
15579 mailbox.put(chunk)
15580
15581 def on_done(result: OpenAICompletion) -> None:
15582 result_box["result"] = result

Callers 2

flush_stream_updatesMethod · 0.80
finish_completionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected