Skip to content
This page is a translation of the authoritative Chinese source and may lag behind.View the original

Field reference index

When filling console forms or submitting config via the Console API, if you're unsure what a field is or which entity it belongs to, check this quick-reference table first to locate it; for full semantics, defaults, and examples, go to each section's linked detail page. Covers seven entity types: upstreams, models, load balancers, access keys, key groups, MCP servers, and access rules.

Upstream

See Upstream and model fields.

FieldTypeDescription
namestringUnique name, referenced by models
protocolenumSee the Protocol interop matrix protocol list
base_urlstringUpstream address, no trailing /
api_keysarrayMulti-key deterministic weighted distribution (same caller sticks to the same key), each item has key + weight (0=standby); algorithm in Upstream and model fields → Multi-key and weights
user_agentstring?Overrides the global UA, supports {{...}} template variables
headersmapCustom headers, supports {{var}} and {{alt1|alt2}} fallback chains; available variables in Template variable reference
proxystring?Outbound proxy
dns_serversarrayper-upstream DNS (≤8), DoH/DoT/UDP auto-detected
dns_ttl_secsu64DNS cache TTL, default 30
request_payloadarrayRequest-body rewrite rules (path/value/mode; value supports {{...}} expressions for dynamic values, available variables in Template variable reference). Rewrite-type rules apply against the target shape after protocol translation; switch-route is the exception — it doesn't change the body, and evaluates when against the client shape before translation (an OR-semantics predicate list, each {path, eq?}: omitting eq=existence, giving eq=equality, * wildcards take existence semantics), triggering an immediate switch when hit, use_model being the switch target (supports cross-protocol)
request_transform_beforescript?Pre-translation request-phase JS (see Scripting API reference)
request_transform_afterscript?Post-translation request-phase JS (see Scripting API reference)
response_transformscript?Response-phase JS (not supported for streaming)
script_error_modeenumlog-and-continue / log-and-reject
count_tokenenumupstreamApi / tiktoken
rate_limitobject?Upstream-level rate limit (rpm / max_concurrency / tpm / tps_min_interval_ms / wait_timeout_secs / initial_tokens), fields in Upstream and model fields
enabledbooldefault true
extra_configjson?vendor extension

Model

See Upstream and model fields.

FieldTypeDescription
namestringThe public model name, clients call this
upstreamstringThe owning upstream
upstream_model_idstringThe real model name sent to the upstream
aliasesarrayExtra usable names (share a globally unique space with the primary name)
hide_namebooltrue means the primary name is inaccessible (404), only alias/LB access
protocolenum?Overrides the upstream protocol
base_urlstring?Overrides the upstream base_url; treated as a full endpoint URL with direct_path
kindstring?Variant identifier for DashScope etc.
inference_profilestring?Bedrock inference config
request_payloadarray?Request-body rewrite rules (overrides upstream-level; value supports {{...}} expressions for dynamic values, variable scope in Template variable reference). The switch-route mode uses when + use_model, see the upstream row
request_transform_beforescript?Model-level pre-translation request script (overrides upstream-level)
request_transform_afterscript?Model-level post-translation request script (overrides upstream-level)
response_transformscript?Model-level response script
script_error_modeenum?override
rate_limitobject?inherit or concrete values
count_tokenenum?override
enabledbool

Load balancer

See Load-balancing fields.

FieldTypeDescription
namestringThe model name clients fill in
aliasesarrayExtra usable names
entriesarrayEntries, each {upstream, model, weight} (0–255, 0=standby)
retry_on_different_nodebooldefault true, switch nodes on error
extra_config.sticky_session_enabledboolSticky sessions (nested under extra_config, default true; not a top-level field)
binding_ttl_secsu64Sticky TTL, default 300; 0=permanent
binding_key_templatestringBinding-key template, {{...}} expression; available variables in Template variable reference
static_bindingsarrayAdmin static bindings (binding_key + upstream + model + access_key name/group)
enabledbooldefault true

Access key (AccessKey)

See Access key and key group fields.

FieldTypeDescription
namestringIdentifier, read-only on edit
api_keystringThe credential the client presents; list shows a mask, full value fetched on demand
groupstring?The owning key group, determines model/MCP permission
model_mappingsarrayfrom → to model rewrites specific to this key (can carry when header conditions); higher priority than the owning group's rules; empty=no mapping. See Configure identity model mapping
anonymousboolAnonymous fallback (globally unique)
enabledboolUnchecking revokes it
acl_default_actionenum?allow / deny, per-key fallback action when no rule matches
created_bystring?The creating console username

Key group (AccessKeyGroup)

See Access key and key group fields.

FieldTypeDescription
namestringGroup identifier
modelsarrayAccessible models; empty=no permission, ["*"]=all
load_balancersarrayAccessible load balancers
model_mappingsarrayfrom → to model rewrites shared by this group (can carry when header conditions), applied to all keys in the group; lower priority than the key's own rules, higher than passthrough. See Configure identity model mapping
mcp_tool_aclobject{allowed_tools, denied_tools, allowed_tags}, see MCP configuration
acl_default_actionenum?allow / deny, per-group fallback action when no rule matches

MCP server (McpServer)

See MCP configuration.

FieldTypeDescription
namestringUnique, used as the tool prefix
transportenumstreamable_http / sse
connection_typeenumstateful / stateless / rest_bridge
endpointstringUpstream URL
auth_headerstring?Upstream Authorization header
extra_headersmap?Extra headers
tagsarrayCoarse-grained ACL tags
priorityi320–999, smaller = higher priority
idle_timeout_secsu32default 300
defer_loadingboolload only on first call
health_checkobject?path / interval(60s) / timeout(5s)
max_concurrencyu32?per-access-key concurrency cap
rate_limitobject?rps / tpm
extra_configjson?REST bridge needs the simplified REST spec JSON ({title, version, operations[]})
enabledbool

Access rule (AclRule)

See Header ACL rule fields.

FieldTypeDescription
namestringGlobally unique identifier, immutable after creation
rule_typestringcurrently only header
condition_keystringHTTP request header name; empty when condition_type = any
condition_typeenumexact / prefix / regex / exists / absent / any. any means the condition is always true and no header is inspected, the rule acting purely by scope (then condition_key is empty). regex defaults to unanchored "contains" semantics; full match needs ^...$, multi-condition uses |, see the "regex matching semantics" section of Header ACL rule fields
condition_valuestring?Match value; must be empty for exists/absent/any
actionenumallow / deny
enabledboolRule switch; disabled rules are ignored at load time
sort_orderintAscending priority, smaller = evaluated first; same value evaluated by scope global → group → key
scope_keystring[]Restrict to one or more access keys, mutually exclusive with scope_group; empty array=global
scope_groupstring[]Restrict to one or more key groups, mutually exclusive with scope_key; empty array=global