qmd: move the callback to the last argument

to get_qmd_response