chat
fun chat(name: String? = null, block: OllamaChatRequestSpecification.() -> Unit): OllamaChatBuildingStep(source)
Sets up a mock handler for the Ollama chat completion (/api/chat) endpoint.
Allows configuration of request matching criteria such as model, stream, seed, and custom request body content.
Return
An OllamaChatBuildingStep for defining the mock response.
Parameters
name
An optional identifier for the mock endpoint.
block
A configuration block to specify request matching details via OllamaChatRequestSpecification.