in aidial_sdk/chat_completion/choice.py [0:0]
def append_content(self, content: str) -> None:
if not self._opened:
raise runtime_error(
"Trying to append content to an unopened choice"
)
if self._closed:
raise runtime_error("Trying to append content to a closed choice")
self.send_chunk(ContentChunk(content, self._index))
self._last_finish_reason = FinishReason.STOP