1 Data sources model
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_model (Data Source)

Looks up an existing model by its model_id.

Example Usage

data "openwebui_model" "llama" {
  model_id = "llama3.2"
}

Schema

Required

  • model_id (String) Identifier of the model to look up.

Read-Only

  • base_model_id (String) Identifier of the underlying base model.
  • capabilities (Attributes) Feature capability flags returned by Open WebUI. (see below for nested schema)
  • created_at (Number) Unix timestamp of when the model was created.
  • default_feature_ids (List of String) List of feature IDs enabled by default.
  • description (String) Short description shown alongside the model name.
  • hidden (Boolean) Whether the model is hidden from the model selector list in the UI.
  • id (String) Composite identifier mirroring model_id.
  • is_active (Boolean) Whether the model is visible and available to users.
  • knowledge_ids (List of String) List of knowledge base IDs attached to the model. Knowledge entries naming a single file or note are not represented.
  • meta_additional_json (String) Additional metadata JSON as returned by Open WebUI. It holds neither knowledge, which knowledge_ids reports, nor the server-derived chat_variables_schema.
  • name (String) Display name of the model.
  • params (Attributes) Model parameter values returned by Open WebUI. (see below for nested schema)
  • params_additional_json (String) Additional parameters JSON as returned by Open WebUI.
  • profile_image_url (String) URL of the model's profile image.
  • public_read (Boolean) Whether every signed-in user can read the model.
  • public_write (Boolean) Whether every signed-in user can edit the model.
  • read_groups (List of String) Read-access group names.
  • read_users (List of String) Read-access user email addresses.
  • skill_ids (List of String) List of skill IDs attached to the model by default.
  • suggestion_prompts (List of String) List of suggested starter prompts shown when the model is selected.
  • tags (List of String) List of tags for categorising the model.
  • tool_ids (List of String) List of tool IDs attached to the model by default.
  • updated_at (Number) Unix timestamp of when the model was last updated.
  • user_id (String) UUID of the Open WebUI account that owns this object.
  • write_groups (List of String) Write-access group names.
  • write_users (List of String) Write-access user email addresses.

Nested Schema for capabilities

Read-Only:

  • builtin_tools (Boolean) Whether Open WebUI's built-in tools are offered to the model.
  • citations (Boolean) Whether the model returns citations.
  • code_interpreter (Boolean) Whether code interpreter is available.
  • file_context (Boolean) Whether uploaded files go into the prompt as context.
  • file_upload (Boolean) Whether file uploads are allowed in chat.
  • image_generation (Boolean) Whether image generation is available.
  • memory (Boolean) Whether the model reads and writes user memories.
  • status_updates (Boolean) Whether the model emits status update messages.
  • terminal (Boolean) Whether the model can run terminal commands.
  • usage (Boolean) Whether token usage statistics are returned.
  • vision (Boolean) Whether the model accepts image inputs.
  • web_search (Boolean) Whether web search is available.

Nested Schema for params

Read-Only:

  • custom_params (Map of String) Additional key/value parameters returned by Open WebUI.
  • format (String) Output format, e.g. json.
  • frequency_penalty (Number) Penalty scaled by token frequency.
  • function_calling (String) Function calling mode, e.g. "auto".
  • keep_alive (String) How long to keep the model loaded in memory, e.g. "5m".
  • max_tokens (Number) Maximum number of tokens to generate.
  • min_p (Number) Minimum probability threshold for token sampling.
  • mirostat (Number) Mirostat sampling mode: 0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0.
  • mirostat_eta (Number) Mirostat learning rate. It sets how fast the sampler reacts to the generated text.
  • mirostat_tau (Number) Mirostat target entropy. A lower value makes the output more focused.
  • num_batch (Number) Batch size for prompt processing.
  • num_ctx (Number) Context window size in tokens.
  • num_gpu (Number) Number of GPU layers to use.
  • num_keep (Number) Number of tokens to retain from the previous context.
  • num_thread (Number) Number of CPU threads to use for inference.
  • presence_penalty (Number) Penalty for tokens that have appeared at all.
  • reasoning_effort (String) Reasoning effort level for models that support it, e.g. "high".
  • reasoning_tags (List of String) List of XML tags used to delimit reasoning tokens.
  • repeat_last_n (Number) Number of tokens to look back for repeat penalty.
  • repeat_penalty (Number) Penalty applied to repeated tokens.
  • seed (Number) Random seed for reproducible outputs.
  • stream_delta_chunk_size (Number) Chunk size in tokens for streaming responses.
  • stream_response (Boolean) Whether to stream the response. Defaults to the base model setting.
  • system (String) System prompt prepended to every conversation.
  • temperature (Number) Sampling temperature, 0 to 2. Lower values are more deterministic.
  • tfs_z (Number) Tail free sampling z parameter.
  • think (Boolean) Whether to enable chain-of-thought reasoning.
  • top_k (Number) Top-k sampling: number of highest-probability tokens to consider.
  • top_p (Number) Nucleus sampling probability threshold.
  • use_mlock (Boolean) Whether to lock model weights in RAM.
  • use_mmap (Boolean) Whether to use memory-mapped files for model weights.