responds

open infix override fun responds(block: suspend OllamaGenerateResponseSpecification.() -> Unit)(source)

Configures a mock generate completion response for an Ollama generate request.

Applies the provided configuration block to customize the response content and completion reason, then generates a single-block GenerateResponse with randomized timing and evaluation metrics, the current timestamp, and the model from the request.