1 Resources evaluation_config
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_evaluation_config (Resource)

Manages the arena evaluation settings of Open WebUI. An arena model puts two models against each other and collects the user's preference.

An empty list is not the same as disabled: with enable_evaluation_arena_models true and no models listed, Open WebUI serves a built-in arena model at request time. That model is never written back to the configuration, so Terraform reports no drift for it.

Example Usage

# The arena models are untyped on the wire, so they travel as JSON text. Each
# element needs an id, a name, and a meta object.
resource "openwebui_evaluation_config" "example" {
  enable_evaluation_arena_models = true

  evaluation_arena_models_json = jsonencode([
    {
      id   = "arena-model"
      name = "Arena Model"
      meta = {
        profile_image_url = "/favicon.png"
        description       = "Two models answer, you pick the better one."
        model_ids         = null
      }
    }
  ])
}

Schema

Optional

  • enable_evaluation_arena_models (Boolean) Whether arena models are offered in the model list.
  • evaluation_arena_models_json (String) Arena models as a JSON array of objects. Open WebUI validates nothing about the elements, so the value is carried as text. Each element needs an id, a name, and a meta object, or model listing fails at request time.

Read-Only

  • id (String) Identifier of this singleton resource. Always evaluation.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Open WebUI holds one evaluation configuration, so this resource is a
# singleton. Import it under its fixed id.
terraform import openwebui_evaluation_config.example evaluation