def METHOD_NAME(self, role: str, openai_repsonse: dict, messages=None, *args, **kws):
    """
    Parse the content, log the message and extract the usage into prometheus metrics
    """
    role_emojis = {
        "system": "🖥️",
        "user": "👤",
        "assistant": "🤖",
        "function": "⚙️",
    }
    if self.isEnabledFor(CHAT):
        if messages:
            for message in messages:
                self._log(
                    CHAT,
                    f"{role_emojis.get(message['role'], '🔵')}: {message['content']}",
                )
        else:
            response = json.loads(openai_repsonse)
            self._log(
                CHAT,
                f"{role_emojis.get(role, '🔵')}: {response['choices'][0]['message']['content']}",
            )