changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "DiscoveredModelPricing": {
+ "description": "Provider-advertised list prices in USD per million tokens, as exact decimal strings. Present only when the provider publishes pricing in its model catalog (OpenRouter). Cache prices are omitted when the provider does not publish them.",
+ "properties": {
+ "cache_read_input_usd_per_million": {
+ "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "cache_write_input_usd_per_million": {
+ "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "input_usd_per_million": {
+ "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "output_usd_per_million": {
+ "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "input_usd_per_million",
+ "output_usd_per_million"
+ ],
+ "type": "object"
+ },
+ "DiscoveredProviderModel": {
+ "properties": {
+ "context_window_tokens": {
+ "description": "Provider-advertised context window limit in tokens, when available.",
+ "maximum": 2147483647,
+ "minimum": 2,
+ "type": "integer"
+ },
+ "display_name": {
+ "type": "string"
+ },
+ "max_output_tokens": {
+ "description": "Provider-advertised maximum output limit in tokens, when available.",
+ "maximum": 2147483647,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "pricing": {
+ "$ref": "#/$defs/DiscoveredModelPricing"
+ },
+ "slug": {
+ "description": "Provider model slug usable as a configured model's provider_model_slug.",
+ "type": "string"
+ },
+ "supported_reasoning_efforts": {
+ "description": "Reasoning effort values the model accepts, when reported.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "supports_reasoning": {
+ "description": "Whether Omnara can send this model a reasoning effort, when the provider or the public model catalog reports it.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "slug"
+ ],
+ "type": "object"
+ },
+ "ManagementKind": {
+ "description": "Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.",
+ "enum": [
+ "tenant",
+ "cluster"
+ ],
+ "type": "string"
+ },
+ "ModelAPIFormat": {
+ "description": "Wire protocol the model endpoint speaks.",
+ "enum": [
+ "openai-responses",
+ "openai-chat-completions",
+ "anthropic-messages"
+ ],
+ "type": "string"
+ },
+ "ModelCatalog": {
+ "description": "The provider's model catalog, obtained by validating the configured credential and probing the provider's /models endpoint. A failed probe does not affect the stored config; treat it as a warning that the base URL or API key may be invalid.",
+ "properties": {
+ "error": {
+ "description": "Why the probe failed. Present when status is failed.",
+ "type": "string"
+ },
+ "models": {
+ "description": "Models advertised by the provider, newest first, filtered to text-output tool-calling models where the provider exposes enough metadata to tell. Present when status is ok.",
+ "items": {
+ "$ref": "#/$defs/DiscoveredProviderModel"
+ },
+ "type": "array"
+ },
+ "status": {
+ "enum": [
+ "ok",
+ "failed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "type": "object"
+ },
+ "ModelProviderAPIVariantResponse": {
+ "type": "string"
+ },
+ "ModelProviderAuthKindResponse": {
+ "type": "string"
+ },
+ "ModelProviderConfig": {
+ "properties": {
+ "api_format": {
+ "$ref": "#/$defs/ModelAPIFormat",
+ "description": "Wire protocol Omnara speaks to this provider."
+ },
+ "api_variant": {
+ "$ref": "#/$defs/ModelProviderAPIVariantResponse",
+ "description": "Provider-specific flavor of the API format."
+ },
+ "auth_kind": {
+ "$ref": "#/$defs/ModelProviderAuthKindResponse",
+ "description": "How Omnara sends the credential to the provider."
+ },
+ "auth_options": {
+ "description": "Non-secret authentication settings for this provider config.",
+ "properties": {
+ "header_name": {
+ "description": "Header that carries the API key when auth_kind is api_key_header.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "region": {
+ "description": "AWS region to sign for when auth_kind is sigv4.",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "service": {
+ "description": "AWS service to sign for when auth_kind is sigv4.",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "base_url": {
+ "description": "Provider endpoint base URL.",
+ "type": "string"
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the provider config was created."
+ },
+ "credential_secret_id": {
+ "$ref": "#/$defs/SecretID",
+ "description": "Secret holding the credential Omnara sends to the provider."
+ },
+ "endpoint_path": {
+ "description": "Path under base_url that model requests are sent to.",
+ "type": "string"
+ },
+ "headers": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Extra HTTP headers sent with every request to this provider.",
+ "type": "object"
+ },
+ "id": {
+ "$ref": "#/$defs/ModelProviderConfigID",
+ "description": "Identifies this provider config."
+ },
+ "idle_timeout_ms": {
+ "description": "Longest wait for response headers or more response data; heartbeats count as activity.",
+ "type": "integer"
+ },
+ "management_kind": {
+ "$ref": "#/$defs/ManagementKind",
+ "description": "Whether the organization manages this provider or the Omnara installation provisions and manages it."
+ },
+ "name": {
+ "$ref": "#/$defs/ResourceName",
+ "description": "Name agent configs use to reference this provider as model.provider_config."
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID",
+ "description": "Organization that owns this provider config."
+ },
+ "request_timeout_ms": {
+ "description": "Total deadline for one provider attempt, including reasoning and response streaming.",
+ "type": "integer"
+ },
+ "secret_headers": {
+ "additionalProperties": {
+ "$ref": "#/$defs/SecretID"
+ },
+ "description": "Extra HTTP headers whose values come from the referenced secrets.",
+ "type": "object"
+ },
+ "updated_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the provider config was last changed."
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "management_kind",
+ "name",
+ "api_format",
+ "api_variant",
+ "base_url",
+ "endpoint_path",
+ "request_timeout_ms",
+ "idle_timeout_ms",
+ "auth_kind",
+ "auth_options",
+ "credential_secret_id",
+ "headers",
+ "secret_headers",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+ },
+ "ModelProviderConfigID": {
+ "pattern": "^mpc_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "OrganizationID": {
+ "pattern": "^org_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ResourceName": {
+ "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "SecretID": {
+ "description": "Secret ID (sec_...).",
+ "pattern": "^sec_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "Timestamp": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "properties": {
+ "config": {
+ "$ref": "#/$defs/ModelProviderConfig"
+ },
+ "model_catalog": {
+ "$ref": "#/$defs/ModelCatalog"
+ }
+ },
+ "required": [
+ "config",
+ "model_catalog"
+ ],
+ "type": "object"
+}