Process a chat request and return a response.
This callback should be implemented to handle chat requests. It should return either a map that will be encoded to JSON, or a connection to support streaming.