본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

모델 구성

원문 보기 위키 갱신

모델 구성 (Model Configuration)

providers, 파라미터, 추론(reasoning) 설정으로 모델을 정의하는 완전한 참조 문서예요.

출처: 문서

본문

providers, 파라미터, 추론 설정으로 모델을 정의하는 완전한 참조예요.

전체 스키마 (Full Schema)

models:
  model_name:
    first_available: [list] # Optional: candidate model refs, tried in order by available credentials.
                            # Mutually exclusive with other model settings.
    provider: string        # Required unless using first_available. One of: openai, anthropic, google, amazon-bedrock,
                            # dmr, mistral, xai, nebius, nvidia, minimax, baseten, ovhcloud, groq, fireworks, deepseek, cerebras, together, huggingface, moonshot, vercel, cloudflare-workers-ai, cloudflare-ai-gateway, requesty, openrouter,
                            # azure, ollama, github-copilot, or a named provider defined
                            # under the top-level `providers:` section.
    model: string           # Required: model identifier
    description: string     # Optional: human-readable summary of the model's purpose or strengths
    temperature: float      # Optional: 0.0–2.0 (provider-dependent; e.g. Anthropic caps at 1.0)
    max_tokens: integer     # Optional: response length limit
    top_p: float            # Optional: 0.0–1.0
    frequency_penalty: float # Optional: -2.0–2.0
    presence_penalty: float # Optional: -2.0–2.0
    base_url: string        # Optional: custom API endpoint
    token_key: string       # Optional: env var for API token
    thinking_budget: string|int # Optional: reasoning effort
    task_budget: int|object # Optional: total task token budget (Anthropic)
    parallel_tool_calls: boolean # Optional: allow parallel tool calls
    track_usage: boolean    # Optional: track token usage
    routing: [list]         # Optional: rule-based model routing
    capabilities:           # Optional: override attachment capabilities
      image: boolean        # Optional: whether the model accepts image attachments
      pdf: boolean          # Optional: whether the model accepts PDF attachments
    cost:                   # Optional: explicit token pricing (USD per 1M tokens)
      input: float          # Optional: price per 1M input tokens
      output: float         # Optional: price per 1M output tokens
      cache_read: float     # Optional: price per 1M cached input tokens
      cache_write: float    # Optional: price per 1M cache-write tokens
    provider_opts:          # Optional: provider-specific options
      key: value
    title_model: string     # Optional: model used for session-title generation
    compaction_model: string # Optional: model used for session-compaction (summary generation)
    compaction_threshold: float # Optional: context-window fraction that triggers auto-compaction (0–1, default: 0.9)
    bypass_models_gateway: boolean # Optional: skip the models gateway for this model (implied by a custom base_url)

속성 참조 (Properties Reference)

속성 타입 필수 설명
first_available array ✗ 순서대로 시도할 후보 모델 참조 목록. 자격 증명이 구성된 첫 번째 것을 선택해요. 다른 모델 설정과 상호 배타적이에요.
provider string ✓/✗ 일반 모델 정의에 필수. first_available 선택자에서는 생략돼요. provider: openai, anthropic, google, amazon-bedrock, dmr, mistral, xai, nebius, nvidia, minimax, baseten, ovhcloud, groq, fireworks, deepseek, cerebras, together, huggingface, moonshot, vercel, cloudflare-workers-ai, cloudflare-ai-gateway, requesty, openrouter, azure, ollama, github-copilot, chatgpt, 또는 어떤 명명된 provider.
model string ✓/✗ 일반 모델 정의에 필수. first_available 선택자에서는 생략돼요. 모델 이름(예: gpt-4o, claude-sonnet-4-5, gemini-3.5-flash).
description string ✗ 정보 제공용, 사람이 읽는 모델의 용도·장점 요약(예: "fast and cheap, good for summaries"). 모델에는 보내지 않아요. first_available과 결합 가능(선택자가 해석될 때 description은 유지돼요).
temperature float ✗ 샘플링 무작위성. 범위는 provider마다 다르며 보통 0.0–2.0(Anthropic은 1.0 상한). 0.0은 결정적이에요.
max_tokens int ✗ 최대 응답 길이(토큰 단위).
top_p float ✗ nucleus 샘플링 임계값(0.0–1.0).
frequency_penalty float ✗ 반복 토큰 패널티(-2.0–2.0).
presence_penalty float ✗ 주제 다양성 장려(-2.0–2.0).
base_url string ✗ 사용자 지정 API 엔드포인트 URL(셀프 호스팅 또는 프록시 엔드포인트용).
token_key string ✗ API 토큰을 담는 환경 변수 이름(provider 기본값 재정의).
thinking_budget string/int ✗ 추론 노력 제어.
task_budget int/object ✗ 에이전트 작업의 총 토큰 예산(Anthropic에 전달; Task Budget 참조).
parallel_tool_calls boolean ✗ 모델이 한 번에 여러 도구를 호출하도록 허용.
track_usage boolean ✗ 이 모델의 토큰 사용을 추적·보고.
routing array ✗ 다른 모델로의 규칙 기반 라우팅. Model Routing 참조.
capabilities object ✗ 이 모델의 첨부 기능을 재정의. Attachment Capability Overrides 참조.
cost object ✗ 내장 카탈로그를 재정의하는 명시적 1M 토큰당 USD 가격. Custom Token Pricing 참조.
provider_opts object ✗ Provider별 옵션(provider 페이지 참조).
title_model string ✗ 세션 제목 생성에 사용하는 모델. models: 섹션의 명명된 모델 또는 인라인 provider/model 문자열일 수 있어요. 생략 시 에이전트의 기본 모델이 제목을 생성해요. first_available과는 결합할 수 없어요.
compaction_model string ✗ 세션 컴팩션(요약 생성)에 사용하는 모델. 명명된 모델 또는 인라인 provider/model 문자열일 수 있어요. 에이전트 수준의 compaction_model이 이 값보다 우선하고, 이 값은 provider 수준 기본값보다 우선해요. 아무것도 설정되지 않으면 기본 모델이 컴팩션해요. first_available과는 결합할 수 없어요. Context & Compaction 가이드 참조.
compaction_threshold float ✗ 이 모델을 실행하는 에이전트에서 사전(auto) 컴팩션이 트리거되는 컨텍스트 윈도우 비율. 0보다 크고 최대 1이어야 해요. 에이전트 수준 compaction_threshold보다 우선해요. first_available과는 결합할 수 없어요. 기본: 0.9. Context & Compaction 가이드 참조.
bypass_models_gateway boolean ✗ true면 이 모델은 models gateway(--models-gateway / DOCKER_AGENT_MODELS_GATEWAY)가 구성되어 있어도 provider에 직접 연결해요. 커스텀 base_url이 이를 암시해요. Gateway Bypass 참조.

첨부 기능 재정의 (Attachment Capability Overrides)

커스텀 OpenAI 호환 provider, 로컬 모델(Ollama, DMR), 그리고 내장 카탈로그가 설명하지 않는 어떤 모델에 대해서도 Docker Agent는 엔드포인트가 이미지나 PDF 첨부를 받아들이는지 자동 감지할 수 없어요. 모델이 카탈로그에 없으면 Docker Agent는 진단을 로그하고 텍스트 전용으로 폴백하며 첨부를 조용히 버려요.

캐페이빌리티를 선언하면 모델의 첨부 지원을 결정적으로 만들고 카탈로그 조회를 완전히 건너뛰어요:

models:
  llava-local:
    provider: ollama
    model: llava
    capabilities:
      image: true # accepts image attachments
      pdf: false # does not accept PDFs

  proxy-vision:
    provider: vision-proxy
    model: gpt-4o
    capabilities:
      image: true
      pdf: true
필드 타입 설명
capabilities.image boolean 모델이 이미지 첨부를 받아들이는지 여부
capabilities.pdf boolean 모델이 PDF 첨부를 받아들이는지 여부

플래그는 엔드포인트가 실제로 받아들이는 것과 일치해야 해요. 엔드포인트가 지원하지 않는 모달리티를 주장하면 provider 쪽 API 오류로 이어져요. capabilities를 생략하면 동작은 변함없어요(카탈로그 조회 후 보수적 텍스트 전용 폴백).

전체 예제는 examples/capability-overrides.yaml을 참조하세요.

커스텀 토큰 가격 (Custom Token Pricing)

Docker Agent는 각 모델 호출을 models.dev 카탈로그로 가격을 매겨요. 카탈로그가 모르는 모델(커스텀 OpenAI 호환 provider, 로컬 모델, 프라이빗 배포)은 "unpriced"예요. 토큰을 소비하는데도 매 호출이 $0으로 기록되고 로그 경고만 남아요.

cost를 선언하면 모델 가격을 1M 토큰당 USD로 명시적으로 책정해요. 설정하면 카탈로그보다 우선하고 카탈로그에 없는 모델도 가격이 매겨져요:

models:
  internal-gpt:
    provider: internal-llm
    model: gpt-4o
    cost:
      input: 1.25 # USD per 1M input tokens
      output: 5.00 # USD per 1M output tokens
      cache_read: 0.125 # USD per 1M cached input tokens
      cache_write: 1.5625 # USD per 1M cache-write tokens

  # Also works for catalogued models, e.g. a negotiated enterprise discount:
  discounted-sonnet:
    provider: anthropic
    model: claude-sonnet-4-5
    cost:
      input: 2.4
      output: 12.0
필드 타입 설명
cost.input float 1M 입력 토큰당 USD 가격
cost.output float 1M 출력 토큰당 USD 가격
cost.cache_read float 1M 캐시된 입력 토큰당 USD 가격
cost.cache_write float 1M 캐시 쓰기 토큰당 USD 가격

선언된 가격은 턴당 비용 계산, 세션 비용 추적, /model 피커, after_llm_call 훅의 cost 필드에 반영돼요. 가격은 음수일 수 없고, 생략된 필드는 0으로 기본 설정돼요. 전부 0인 테이블은 "유료, 무료"를 뜻해요 — cost를 아예 생략한 것(무가격)과는 구별돼요. first_available과는 결합할 수 없어요(대신 후보 모델에 설정하세요).

전체 예제는 examples/custom-pricing.yaml을 참조하세요.

세션 제목 생성 위임 (Delegating Session-Title Generation)

title_model 필드는 무거운 기본 모델이 값싼 제목 생성 호출을 더 작고 빠른 모델에 넘겨줘요:

model: anthropic/claude-opus-4-7
title_model: anthropic/claude-haiku-4-5

값은 models: stanza의 명명된 항목이거나 인라인 provider/model 문자열일 수 있어요. 생략 시 에이전트의 기본 모델이 제목을 생성해요.

경고 — 제약: title_model은 first_available 모델 선택과 결합할 수 없어요 — 검증 시점에 조합이 거부돼요.

세션 컴팩션 위임 (Delegating Session Compaction)

팁 — 전체 가이드: 자동 vs 온디맨드 컴팩션, 도구 결과 트리밍, 컨텍스트 게이지 읽기에 대한 작업 중심 워크스루는 Managing Context & Compaction을 보세요. 이 섹션은 compaction_model과 compaction_threshold 필드 자체를 다뤄요.

compaction_model 필드는 무거운 기본 모델이 값비싼 컴팩션(요약 생성) 호출을 더 작고 빠른 모델에 넘겨줘요:

models:
  primary:
    provider: anthropic
    model: claude-sonnet-4-5
    compaction_model: fast
  fast:
    provider: anthropic
    model: claude-haiku-4-5

값은 models: stanza의 명명된 항목이거나 인라인 provider/model 문자열일 수 있어요. 해석 우선순위: 에이전트 수준 compaction_model이 이기고, 그다음 모델 수준 값, 그다음 providers: 섹션에 설정된 provider 수준 기본값이에요. 아무것도 설정되지 않으면 기본 모델이 컴팩션해요. 여러 모델을 나열하는 에이전트(model: a,b)의 경우, 값(또는 provider 기본값)을 설정한 첫 번째 나열된 모델이 그 수준에서 이겨요.

providers:
  my_anthropic:
    provider: anthropic
    # Default for every agent whose model uses this provider.
    compaction_model: anthropic/claude-haiku-4-5

컴팩션 모델의 컨텍스트 윈도우가 기본 모델보다 작다면 Docker Agent는 더 작은 윈도우에 맞춰 컴팩션을 트리거해서 요약 호출이 항상 전체 대화를 소화할 수 있게 해요. 윈도우가 기본 모델만큼 큰 컴팩션 모델과 짝지어 사전 트리거가 기본 모델의 윈도우와 정렬되게 하세요.

기본적으로 사전 트리거는 추정 토큰 사용이 컨텍스트 윈도우의 90%를 넘을 때 발화해요. compaction_threshold 필드는 그 비율을 조정해요(0보다 크고 최대 1): 낮은 값은 더 일찍 컴팩션해 요청을 더 작게 유지하고, 높은 값은 더 나중에 컴팩션해 더 많은 원문 기록을 보존해요. 모델(위처럼, 우선함)이나 에이전트에 설정할 수 있고, 자동 컴팩션은 에이전트당 session_compaction: false로 완전히 비활성화할 수 있어요 — Agent Config 참조.

models:
  primary:
    provider: anthropic
    model: claude-sonnet-4-5
    compaction_model: fast
    # Compact at 80% of the window instead of the default 90%.
    compaction_threshold: 0.8

경고 — 제약: compaction_model은 first_available 모델 선택과 결합할 수 없어요 — 검증 시점에 조합이 거부돼요.

전체 예제는 examples/compaction_model.yaml와 examples/compaction_threshold.yaml을 참조하세요.

게이트웨이 우회 (Gateway Bypass)

models gateway(--models-gateway / DOCKER_AGENT_MODELS_GATEWAY)가 구성되면 커스텀 base_url이 없는 모델은 기본적으로 이를 통과해 라우팅돼요. 특정 모델에 bypass_models_gateway: true를 설정하면 대신 provider에 직접 연결해요:

models:
  gateway-model:
    provider: openai
    model: gpt-5

  direct-model:
    provider: anthropic
    model: claude-sonnet-4-5
    bypass_models_gateway: true # uses ANTHROPIC_API_KEY directly

우회된 모델은 게이트웨이의 단기 토큰이 아니라 provider 자신의 자격 증명(OPENAI_API_KEY, ANTHROPIC_API_KEY, token_key 등)으로 인증해요. 에이전트의 나머지 모델은 이전처럼 게이트웨이로 계속 라우팅돼요.

우회는 라우터 모델을 통해 투명하게 전파돼요: bypass 플래그가 있는 라우팅 모델은 그 플래그를 라우팅 대상 모두에 자동으로 전달해요.

경고 — 보안 참고: 신뢰할 수 없는 구성에서 악의적인 base_url과 bypass_models_gateway: true의 결합은 provider 자격 증명을 공격자 제어 엔드포인트로 라우팅할 수 있어요. 자신이 제어하는 구성에서만 이 기능을 켜세요.

경고 — 제약: bypass_models_gateway: true는 first_available과 결합할 수 없어요 — 검증 시점에 조합이 거부돼요.

전체 예제는 examples/bypass_models_gateway.yaml을 참조하세요.

최초 사용 가능 모델 (First Available Models)

같은 에이전트가 현재 환경에 있는 어느 provider 자격 증명이든 함께 동작해야 할 때 first_available을 사용해요. Docker Agent는 로드 시 후보를 순서대로 확인하고, 필수 환경 변수가 구성된 첫 번째 후보로 선택자를 대체해요.

models:
  smart:
    first_available:
    - anthropic/claude-sonnet-4-6
    - openai/gpt-5
    - google/gemini-3.5-flash
    - dmr/ai/qwen3 # local fallback; no API key required

agents:
  root:
    model: smart
    instruction: You are a helpful assistant.

후보는 인라인 provider/model 참조 또는 같은 models: 섹션의 이름일 수 있어요. dmr와 ollama 같은 로컬 provider는 자격 증명이 필요 없으므로 최종 폴백으로 유용해요.

어떤 후보에도 자격 증명이 구성되지 않았으면 Docker Agent는 후보별로 누락된 환경 변수를 그룹화해 보고해요. 목록의 모든 provider가 아니라 하나의 자격 증명 그룹만 구성하면 돼요.

first_available 모델은 선택자일 뿐이에요. 정보 제공용 description을 제외하고는 provider, model, routing, token_key, 예산, 샘플링 옵션, 그 외 모델 설정과 결합할 수 없어요. 그런 설정은 명명된 후보 모델에 두세요:

models:
  claude:
    provider: anthropic
    model: claude-sonnet-4-6
    max_tokens: 64000

  gpt:
    provider: openai
    model: gpt-5
    thinking_budget: low

  smart:
    first_available:
    - claude
    - gpt
    - dmr/ai/qwen3

전체 예제는 examples/first_available.yaml을 참조하세요.

Thinking 예산 (Thinking Budget)

모델이 응답하기 전에 얼마나 추론하는지 제어해요. provider마다 달라요:

OpenAI

effort 레벨을 문자열로 사용해요:

models:
  gpt:
    provider: openai
    model: gpt-5.6
    thinking_budget: low # none | minimal | low | medium | high | xhigh | max (xhigh needs gpt-5.2+; none/max need gpt-5.6+; minimal dropped on gpt-5.6+)

Anthropic

정수 토큰 예산(1024–32768)을 사용하거나, adaptive 지원 모델(Opus 4.6+)에서는 adaptive, adaptive/<effort>, 또는 단순 effort 레벨을 사용해요:

models:
  claude:
    provider: anthropic
    model: claude-sonnet-4-5
    thinking_budget: 16384 # must be < max_tokens

  opus:
    provider: anthropic
    model: claude-opus-4-6
    thinking_budget: adaptive # or adaptive/<effort>, or low | medium | high | xhigh | max

Google Gemini 2.5

정수 토큰 예산을 사용해요. 0은 비활성화, -1은 모델이 결정:

models:
  gemini:
    provider: google
    model: gemini-2.5-flash
    thinking_budget: -1 # dynamic (default)

Google Gemini 3

OpenAI처럼 effort 레벨을 사용해요:

models:
  gemini3:
    provider: google
    model: gemini-3-flash
    thinking_budget: medium # minimal | low | medium | high

Thinking 비활성화

thinking_budget: none # or 0

none과 0은 둘 다 Docker Agent의 로컬 thinking 구성을 비웁니다(thinking_budget을 생략하는 것과 같은 효과). 어느 쪽도 진짜 "off" 스위치로 API에 도달한다는 보장은 없어요:

  • OpenAI gpt-5.6+ (Sol/Terra/Luna) — 진짜 API 수준 none reasoning effort가 있는 유일한 경우. Docker Agent는 그대로 보내고 모델은 추론하지 않아요.
  • 구형 OpenAI reasoning 모델(o-series, gpt-5 ~ gpt-5.5) — 그런 스위치가 없어요. none / 0은 로컬 구성을 비울 뿐이고 모델은 API 자체 기본 effort로 폴백해 여전히 내부적으로 추론해요. 항상 추론하는 다른 모델(Gemini 3)도 마찬가지예요.
  • 진짜 선택적 thinking 스위치가 있는 provider(Gemini 2.5, Claude, 로컬 모델) — none / 0으로 완전히 비활성화돼요.
models:
  fast-responder:
    provider: openai
    model: gpt-5.6
    thinking_budget: none # real API-level disable on gpt-5.6+

AWS Bedrock과 Docker Model Runner를 포함한 provider별 세부 사항은 Thinking / Reasoning 가이드를 보세요.

작업 예산 (Task Budget)

Anthropic 전용.

task_budget은 다단계 에이전트 작업 전반에 걸쳐 모델이 쓸 수 있는 총 토큰 수를 제한해요 — thinking, 도구 호출, 최종 출력 토큰을 합쳐요. 장수 에이전트가 타이트한 per-call max_tokens를 고르지 않고도 스스로 노력을 조절하게 해줘요.

Anthropic의 output_config.task_budget 요청 필드로 전달돼요. Docker Agent는 이 필드가 설정될 때마다 필수 task-budgets-2026-03-13 beta 헤더를 자동으로 붙여요.

task_budget은 어떤 Claude 모델에도 구성할 수 있어요 — Docker Agent는 모델 이름으로 게이팅하지 않아요. 작성 시점에 실제로 그 필드를 적용하는 것은 Claude Opus 4.7뿐이에요. 다른 Claude 모델은 그것을 포함한 요청을 거부해요. 지원 모델의 현재 목록은 위에 링크된 Anthropic 릴리스 노트를 확인하세요.

정수 축약형 (Integer shorthand)

models:
  opus:
    provider: anthropic
    model: claude-opus-4-7
    task_budget: 128000 # total tokens for the whole task
    thinking_budget: adaptive # works nicely together

객체 형태 (Object form)

동등하며, 미래의 예산 유형과 호환됩니다:

models:
  opus:
    provider: anthropic
    model: claude-opus-4-7
    task_budget:
      type: tokens # only "tokens" is supported today
      total: 128000

task_budget: 0으로 설정하면(또는 필드를 생략) 기능이 비활성화돼요 — 모델은 provider의 기본 동작으로 폴백해요.

다른 상속 가능한 모델 설정처럼 task_budget도 provider 정의에 선언할 수 있고 그 provider를 참조하는 모든 모델이 상속해요.

전체 예제는 examples/task_budget.yaml을 참조하세요.

인터리브드 Thinking (Interleaved Thinking)

Anthropic과 Bedrock Claude 모델에서 interleaved thinking은 모델 추론 중 도구 호출을 허용해요. thinking 예산이 구성될 때마다 자동으로 활성화돼요:

models:
  claude:
    provider: anthropic
    model: claude-sonnet-4-5
    thinking_budget: 8192
    # interleaved_thinking is auto-enabled when thinking_budget is set
    provider_opts:
      interleaved_thinking: false # disable if needed

Thinking 표시 (Thinking Display, Anthropic)

Anthropic Claude 모델에서 thinking_display는 thinking이 활성화될 때 응답에 thinking 블록을 반환할지 제어해요. 새로운 Claude 모델(Opus 4.7+, Fable 5)은 기본적으로 thinking 콘텐츠를 숨겨요(omitted). Docker Agent는 adaptive/effort 기반 예산에 대해 기본적으로 요약된 thinking을 요청해 추론이 보이도록 해요. 이 provider 옵션을 설정해 재정의하세요:

models:
  opus-4-7:
    provider: anthropic
    model: claude-opus-4-7
    thinking_budget: adaptive
    provider_opts:
      thinking_display: omitted # "summarized" or "omitted" ("display" on pre-4.6 models only)

display(전체 thinking 블록)는 pre-4.6 토큰 thinking 모델(예: Sonnet 4.5, Haiku 4.5)만 받아들여요. 새로운 모델(Opus/Sonnet 4.6+, Sonnet 5, Fable 5)은 summarized와 omitted만 받아들이고, Docker Agent는 시작 시 구성을 거부해요.

자세한 내용은 Anthropic provider 페이지를 보세요.

커스텀 HTTP 헤더 (Custom HTTP Headers)

OpenAI 호환 provider(openai, github-copilot, mistral, xai, nebius, nvidia, minimax, baseten, ovhcloud, groq, fireworks, deepseek, cerebras, together, huggingface, moonshot, vercel, cloudflare-workers-ai, cloudflare-ai-gateway, requesty, openrouter, ollama, 그리고 OpenAI API를 사용하는 어떤 커스텀 provider)에서 provider_opts.http_headers는 모든 나가는 요청에 임의의 HTTP 헤더를 추가해요:

models:
  my_model:
    provider: openai
    model: gpt-4o
    provider_opts:
      http_headers:
        X-Request-Source: docker-agent
        X-Tenant-Id: my-team

헤더 이름은 대소문자 구분 없이 매칭돼요. github-copilot provider는 Copilot-Integration-Id: copilot-developer-cli를 자동으로 설정해요 — 자세한 내용은 GitHub Copilot provider 페이지를 보세요.

Provider별 예제 (Examples by Provider)

models:
  # OpenAI
  gpt:
    provider: openai
    model: gpt-5

  # Anthropic
  claude:
    provider: anthropic
    model: claude-sonnet-4-5
    max_tokens: 64000

  # Google Gemini
  gemini:
    provider: google
    model: gemini-3.5-flash
    temperature: 0.5

  # AWS Bedrock
  bedrock:
    provider: amazon-bedrock
    model: global.anthropic.claude-sonnet-4-5-20250929-v1:0
    provider_opts:
      region: us-east-1

  # OpenRouter
  openrouter:
    provider: openrouter
    model: meta-llama/llama-3.3-70b-instruct

  # Docker Model Runner (local)
  local:
    provider: dmr
    model: ai/qwen3
    max_tokens: 8192

자세한 provider 설정은 Model Providers 섹션을 보세요.

커스텀 엔드포인트 (Custom Endpoints)

base_url로 커스텀 또는 셀프 호스팅 엔드포인트를 가리켜요:

models:
  # Azure OpenAI
  azure_gpt:
    provider: openai
    model: gpt-4o
    base_url: https://my-resource.openai.azure.com/openai/deployments/gpt-4o
    token_key: AZURE_OPENAI_API_KEY

  # Self-hosted vLLM
  local_llama:
    provider: openai # vLLM is OpenAI-compatible
    model: meta-llama/Llama-3.2-3B-Instruct
    base_url: http://localhost:8000/v1

  # Proxy or gateway
  proxied:
    provider: openai
    model: gpt-4o
    base_url: https://proxy.internal.company.com/openai/v1
    token_key: INTERNAL_API_KEY

model과 base_url 필드는 ${env.VAR}(또는 ${VAR}) 참조를 받아들이고, 모델이 로드될 때 환경에서 치환돼요. 이렇게 하면 모델 id나 엔드포인트가 환경에서 제공될 때 구성에서 벗어나게 해줘요(예: Docker Compose / DMR 설정):

models:
  nemotron3:
    provider: dmr
    model: "${env.NEMOTRON3_MODEL}"
    base_url: "${env.DMR_BASE_URL}"

구성 필드의 전체 집합과 지원 문법은 Variable Expansion in Config Fields를 보세요.

커스텀 엔드포인트의 더 많은 예제는 Local Models를 보세요.

Provider 정의 상속 (Inheriting from Provider Definitions)

모델은 명명된 provider를 참조해 공유 기본값을 상속할 수 있어요. 모델 수준 설정이 항상 우선해요:

providers:
  my_anthropic:
    provider: anthropic
    token_key: MY_ANTHROPIC_KEY
    max_tokens: 16384
    thinking_budget: 8192
    temperature: 0.5

models:
  claude:
    provider: my_anthropic
    model: claude-sonnet-4-5
    # Inherits max_tokens, thinking_budget, temperature from provider

  claude_fast:
    provider: my_anthropic
    model: claude-haiku-4-5
    thinking_budget: 1024 # Overrides provider default

상속 가능한 속성의 전체 목록은 Provider Definitions를 보세요.

더 알아보기 (Learn more)