Request constructor
Constructor for Request class.
@param model The model to use for text generation and mandatory parameter. @param prompt The prompt to use for text generation. Mandatory parameter. @param system The system message to use for text generation. Default is "". @param contextual Whether to use contextual messages. Default is false. @param messages The list of messages to use for text generation. Default is an empty list. @param images The list of images to use for text generation. Default is an empty list. @param seed The seed to use for text generation. Default is "random". @param private Whether to make the text generation private. Default is false. @param reasoningEffort The reasoning effort to use for text generation. Default is "low". @param jsonMode Whether to use JSON mode for text generation. Default is false. @param referrer The referrer to use for the API call. Default is "pollinations.py".
Implementation
Request({
required this.model,
required this.prompt,
this.system = "",
this.contextual = false,
this.messages,
this.images,
this.seed = "random",
this.private = false,
this.reasoningEffort = "low",
this.jsonMode = false,
this.referrer = "pollinations.py",
}) : timestamp = DateTime.now();