def METHOD_NAME(
    self, messages: Sequence[ChatMessage], **kwargs: Any
) -> ChatResponseGen:
    prompt = self._messages_to_prompt(messages)
    completion_response = self.stream_complete(prompt, **kwargs)
    return stream_completion_response_to_chat_response(completion_response)