Table of contents
openwebui_task_config (Resource)
Manages the task settings for Open WebUI: the model that runs background tasks and the prompt templates for chat titles, tags, autocomplete, search queries, follow ups, tool calling, and voice mode. Open WebUI writes all eighteen settings on every update, and rejects a request that omits one, so this resource sends all eighteen every time. Fifteen are required here. The other three are nullable in Open WebUI, so they are optional, and the provider sends null when they are unset.
An empty template string is a real value that means "use the template built into Open WebUI".
Example Usage
# An empty template asks Open WebUI for the prompt built into it. A model id
# left null makes each task run on the model of the chat it belongs to.
resource "openwebui_task_config" "example" {
task_model = null
task_model_external = null
enable_title_generation = true
title_generation_prompt_template = ""
enable_tags_generation = true
tags_generation_prompt_template = ""
enable_autocomplete_generation = true
autocomplete_generation_input_max_length = -1
autocomplete_generation_prompt_template = ""
enable_search_query_generation = true
enable_retrieval_query_generation = true
query_generation_prompt_template = ""
enable_follow_up_generation = true
follow_up_generation_prompt_template = ""
image_prompt_generation_prompt_template = ""
tools_function_calling_prompt_template = ""
enable_voice_mode_prompt = false
voice_mode_prompt_template = null
}
Schema
Required
autocomplete_generation_input_max_length(Number) Maximum length in characters of the input sent for autocompletion. A negative value removes the limit.autocomplete_generation_prompt_template(String) Prompt template for autocompletion.enable_autocomplete_generation(Boolean) Whether Open WebUI completes the message a user is typing.enable_follow_up_generation(Boolean) Whether Open WebUI suggests follow-up questions.enable_retrieval_query_generation(Boolean) Whether Open WebUI writes a knowledge retrieval query from the chat.enable_search_query_generation(Boolean) Whether Open WebUI writes a web search query from the chat.enable_tags_generation(Boolean) Whether Open WebUI generates tags for each chat.enable_title_generation(Boolean) Whether Open WebUI generates a title for each chat.enable_voice_mode_prompt(Boolean) Whether Open WebUI adds a voice mode system prompt to spoken conversations.follow_up_generation_prompt_template(String) Prompt template for follow-up suggestions.image_prompt_generation_prompt_template(String) Prompt template that turns a chat into an image generation prompt.query_generation_prompt_template(String) Prompt template for search and retrieval queries.tags_generation_prompt_template(String) Prompt template for chat tags.title_generation_prompt_template(String) Prompt template for chat titles.tools_function_calling_prompt_template(String) Prompt template that asks a model without native tool calling to pick a tool.
Optional
task_model(String) Model id that runs tasks for local models. Null makes Open WebUI use the model of the chat itself.task_model_external(String) Model id that runs tasks for external models. Null makes Open WebUI use the model of the chat itself.voice_mode_prompt_template(String) Prompt template for voice mode. Unlike the other templates this one is nullable: left unset, the provider sends null rather than the empty string.
Read-Only
id(String) Identifier of this singleton resource. Alwaystask_config.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Open WebUI holds one task configuration, so this resource is a singleton.
# Import it under its fixed id.
terraform import openwebui_task_config.example task_config
Data sources
- openwebui_channel (Data Source)
- openwebui_config_export (Data Source)
- openwebui_file (Data Source)
- openwebui_files (Data Source)
- openwebui_group (Data Source)
- openwebui_knowledge (Data Source)
- openwebui_model (Data Source)
- openwebui_ollama_connection_verify (Data Source)
- openwebui_openai_connection_verify (Data Source)
- openwebui_pipeline (Data Source)
- openwebui_prompt (Data Source)
- openwebui_skill (Data Source)
- openwebui_tool (Data Source)
- openwebui_tool_server (Data Source)
- openwebui_tool_server_verify (Data Source)
- openwebui_user (Data Source)
Resources
- openwebui_admin_config (Resource)
- openwebui_audio_config (Resource)
- openwebui_banners_config (Resource)
- openwebui_channel (Resource)
- openwebui_chat_config (Resource)
- openwebui_code_execution_config (Resource)
- openwebui_config_import (Resource)
- openwebui_connections_config (Resource)
- openwebui_default_user_permissions (Resource)
- openwebui_evaluation_config (Resource)
- openwebui_file (Resource)
- openwebui_function (Resource)
- openwebui_function_valves (Resource)
- openwebui_group (Resource)
- openwebui_group_features (Resource)
- openwebui_images_config (Resource)
- openwebui_knowledge (Resource)
- openwebui_knowledge_file (Resource)
- openwebui_ldap_config (Resource)
- openwebui_model (Resource)
- openwebui_model_settings (Resource)
- openwebui_models_config (Resource)
- openwebui_oauth_client (Resource)
- openwebui_oauth_picture_links (Resource)
- openwebui_oauth_roles (Resource)
- openwebui_ollama_connections (Resource)
- openwebui_openai_connection_models (Resource)
- openwebui_openai_connections (Resource)
- openwebui_pipeline (Resource)
- openwebui_pipeline_valves (Resource)
- openwebui_prompt (Resource)
- openwebui_rag_config (Resource)
- openwebui_rag_embedding_config (Resource)
- openwebui_skill (Resource)
- openwebui_subagents_config (Resource)
- openwebui_suggestions_config (Resource)
- openwebui_task_config (Resource)
- openwebui_terminal_server (Resource)
- openwebui_tool (Resource)
- openwebui_tool_server (Resource)
- openwebui_tool_server_access (Resource)
- openwebui_tool_servers_config (Resource)
- openwebui_tool_valves (Resource)
- openwebui_user (Resource)
- openwebui_videos_config (Resource)
Published from docs/ (refs/tags/v0.1.0-dev.10, a40bd0a133e7). Edit the source in a pull request; wiki edits are replaced on the next publish.