def parse_chat_response(resp_dict: Dict) -> ChatResponse:
    """
    Parse chat response.

    :param resp_dict: Response body in dict form.
    :return: The ChatResponse object.
    """
    resp = ChatResp(**resp_dict)
    return ChatResponse(
        message=ChatMessage(role=MessageRole.ASSISTANT, content=resp.result)
    )

    Parse chat response.

    :param resp_dict: Response body in dict form.
    :return: The ChatResponse object.
    
llama-index-integrations/llms/llama-index-llms-qianfan/llama_index/llms/qianfan/base.py