headless_lms_chatbot::azure_chatbot

Function send_chat_request_and_parse_stream

Source
pub async fn send_chat_request_and_parse_stream(
    conn: &mut PgConnection,
    pool: PgPool,
    app_config: &ApplicationConfiguration,
    chatbot_configuration_id: Uuid,
    conversation_id: Uuid,
    message: &str,
) -> Result<Pin<Box<dyn Stream<Item = Result<Bytes>> + Send>>>