OllamaChatRequestSpecification
Specification for matching chat completion requests.
This class is used to specify the criteria for matching requests to the chat endpoint. It allows specifying the model, messages, tools, and stream flag.
Functions
Link copied to clipboard
Link copied to clipboard
Sets the list of messages to match in the chat request.
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<ChatRequest>
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 streaming flag for the request specification.
Link copied to clipboard
Adds a predicate to match requests where any system message contains the specified substring.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adds a predicate to match requests where any user message contains the specified substring.