generate
fun MockOllama.generate(name: String? = null, block: Consumer<OllamaGenerateRequestSpecification>): OllamaGenerateBuildingStep(source)
Configures a mock /api/generate endpoint using a Java Consumer to specify the request criteria.
This overload enables Java interoperability for setting up request matching and response configuration for the generate API.
Return
A building step for further response configuration.
Parameters
name
An optional name for the mock configuration.
block
A Java Consumer that configures the generate request specification.