Given a query and an optional conversation id, get a response from your library
streaming attribute.
streaming is equal to false the response will be a JSON object containing the following fields
streaming is equal to true the response is sent as a series of chunk where each of them will be a JSON object.
type == token.It represents the token that is currently being sent as part of a partial response.
If you concatenate all tokens you will have the complete response.type == response.A json object containing the final response and metadata for the gptQuery.