in aidial_sdk/chat_completion/response.py [0:0]
def create_choice(self) -> Choice:
self._generation_started = True
if self._last_choice_index >= self.n:
raise runtime_error("Trying to generate more chunks than requested")
choice = Choice(self._queue, self._last_choice_index)
self._last_choice_index += 1
return choice