OllamaGenerateRequestSpecification
class OllamaGenerateRequestSpecification : AbstractInferenceRequestSpecification<GenerateRequest> (source)
Specification for matching generate completion requests.
This class is used to specify the criteria for matching requests to the generate endpoint. It allows specifying the model, prompt, system message, template, and stream flag.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestBodyDoesNotContainsIgnoringCase(substring: String): ModelRequestSpecification<GenerateRequest>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the stream flag to indicate whether to match streaming requests.
Link copied to clipboard
Specifies that the system message in the request must contain the given substring.
Link copied to clipboard
Link copied to clipboard
Sets the template to match in the generate request.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies that the request's prompt must contain the given substring.