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

Method on_done

examples/server/server.py:15581–15584  ·  view source on GitHub ↗
(result: OpenAICompletion)

Source from the content-addressed store, hash-verified

15579 mailbox.put(chunk)
15580
15581 def on_done(result: OpenAICompletion) -> None:
15582 result_box["result"] = result
15583 done.set()
15584 mailbox.put(sentinel)
15585
15586 def on_error(exc: BaseException) -> None:
15587 error_box["error"] = exc

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected