# Teralor Flash as a NATIVE DELEGATION WORKER under your existing Hermes
# orchestrator profile. Merge into the CURRENT orchestrator profile config
# (hermes -p YOUR_PROFILE config edit). This file deliberately contains NO
# model/context/compression top-level sections: the parent model and its
# context stay exactly as they are. Restart in a fresh session with the
# delegation tool enabled.
# The named provider below resolves its own endpoint and key via key_env, so
# base_url/api_key are omitted to avoid the direct-endpoint branch, which
# can inherit the parent's key. There is no delegation.context_length or
# delegation.max_tokens option (they are ignored/nonexistent): the provider
# model metadata below supplies the child's 262144 context. A lower global
# compression.threshold_tokens can still clamp children. max_iterations counts
# turns, not output tokens. Native children do NOT load the separate
# flash-worker profile.
providers:
  teralor-flash:
    api: https://api.teralor.com/v1
    key_env: TERALOR_API_KEY
    transport: chat_completions
    default_model: Flash
    discover_models: true
    models:
      Flash:
        context_length: 262144
    extra_body:
      max_tokens: 32768
delegation:
  model: Flash
  provider: custom:teralor-flash
  compression_threshold_tokens: 172032
  max_concurrent_children: 1
  max_iterations: 50
