You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/gateway
Sebastian d0a4cce41e feat: add dynamic template variables to messages.responsePrefix (#923)
Adds support for template variables in `messages.responsePrefix` that
resolve dynamically at runtime with the actual model used (including
after fallback).

Supported variables (case-insensitive):
- {model} - short model name (e.g., "claude-opus-4-5", "gpt-4o")
- {modelFull} - full model identifier (e.g., "anthropic/claude-opus-4-5")
- {provider} - provider name (e.g., "anthropic", "openai")
- {thinkingLevel} or {think} - thinking level ("high", "low", "off")
- {identity.name} or {identityName} - agent identity name

Example: "[{model} | think:{thinkingLevel}]" → "[claude-opus-4-5 | think:high]"

Variables show the actual model used after fallback, not the intended
model. Unresolved variables remain as literal text.

Implementation:
- New module: src/auto-reply/reply/response-prefix-template.ts
- Template interpolation in normalize-reply.ts via context provider
- onModelSelected callback in agent-runner-execution.ts
- Updated all 6 provider message handlers (web, signal, discord,
  telegram, slack, imessage)
- 27 unit tests covering all variables and edge cases
- Documentation in docs/gateway/configuration.md and JSDoc

Fixes #923
10 months ago
..
authentication.md docs: clarify Claude CLI auth mode 10 months ago
background-process.md fix: rename bash tool to exec (#748) (thanks @myfunc) 10 months ago
bonjour.md Docs: fix internal links 11 months ago
bridge-protocol.md docs: add protocol docs 10 months ago
cli-backends.md chore: standardize Claude Code CLI naming (#915) 10 months ago
configuration-examples.md docs: complete channels rename sweep 10 months ago
configuration.md feat: add dynamic template variables to messages.responsePrefix (#923) 10 months ago
discovery.md refactor!: rename chat providers to channels 10 months ago
doctor.md fix: finalize channels rename cleanup 10 months ago
gateway-lock.md docs: reorganize documentation structure 11 months ago
health.md docs: complete channels rename sweep 10 months ago
heartbeat.md docs: complete channels rename sweep 10 months ago
index.md docs: complete channels rename sweep 10 months ago
local-models.md docs: simplify local models guidance 10 months ago
logging.md fix: finalize channels rename cleanup 10 months ago
openai-http-api.md Gateway: disable OpenAI HTTP chat completions by default (#686) 11 months ago
pairing.md docs: refresh and simplify docs 11 months ago
protocol.md refactor!: rename chat providers to channels 10 months ago
remote-gateway-readme.md docs: make remote host examples generic 10 months ago
remote.md refactor!: rename chat providers to channels 10 months ago
sandbox-vs-tool-policy-vs-elevated.md feat(tools): add tool profiles and group shorthands 10 months ago
sandboxing.md docs: clarify sandbox bind mounts (#790) 10 months ago
security.md Security: add detect-secrets scan 10 months ago
tailscale.md docs: update faq and install guidance 10 months ago
troubleshooting.md Security: add detect-secrets scan 10 months ago