def messages()

in aidial_adapter_openai/utils/chat_completion_response.py [0:0]


    def messages(self) -> Iterable[Any]:
        for choice in self.resp.get("choices") or []:
            if (message := choice.get(self.message_key)) is not None:
                yield message