Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Ollama → generate_completion_ollama_api_generate__url_idx__post

AI-generated

Summary

Send a POST request to generate a completion using the Ollama API via Open Web UI, specifying the model, prompt, and additional optional parameters in the request body.

Inputs

  • skipAuthentication — Boolean to skip authentication, defaults to false.
  • authentication — Authentication method using Open WebUI Auth credential, required unless skipped.
  • method (required) — HTTP method to use; defaults to POST for this operation.
  • pathParameters/url_idx (required) — Path parameter specifying the URL index in the API endpoint.
  • requestBody (required) — JSON body including required fields model (string) and prompt (string), and optional fields suffix, images, format, options, system, template, context, stream (boolean, default true), raw, and keep_alive.
  • mediaType (required) — Content type for the request body, defaults to application/json.

Output shape

a JSON response from the Ollama API representing the generated completion result

The response content and structure depend on the Ollama API's generate endpoint. The operation sends a POST request to /ollama/api/generate/{url_idx} and outputs the server's JSON response.

Links

Discussion