Skip to content

docs: refresh outdated examples, missing env vars, and CLI options#2610

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:docs/fix-outdated-references
May 4, 2026
Merged

docs: refresh outdated examples, missing env vars, and CLI options#2610
dgageot merged 1 commit intodocker:mainfrom
dgageot:docs/fix-outdated-references

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented May 1, 2026

What this PR fixes

A pass through the docs surfaced a handful of issues that were either outdated, wrong, or simply missing. This PR brings the most-read pages back in sync with the codebase.

Outdated model examples

Most introductory pages still showed openai/gpt-4o / anthropic/claude-sonnet-4-0 everywhere, even though pkg/config/auto.go and the README itself default to openai/gpt-5-mini and anthropic/claude-sonnet-4-5. Updated:

  • getting-started/{introduction,quickstart,installation}
  • concepts/{agents,multi-agent,models,distribution}
  • configuration/{overview,agents,routing}
  • providers/{overview,openai,anthropic}
  • community/troubleshooting

Internally-inconsistent Anthropic page

docs/providers/anthropic/index.md had claude-sonnet-4-0 in the inline / named-model examples while the Available Models table called claude-sonnet-4-5 the default. The page now leads with claude-sonnet-4-5 and keeps claude-sonnet-4-0 in the table as a previous Sonnet generation, still supported entry.

Missing environment variables

docs/configuration/overview/index.md only listed 6 of the 11 supported provider keys and didn't mention several runtime env vars at all. Added:

New entry Where it comes from
GEMINI_API_KEY pkg/model/provider/gemini/client.go
MINIMAX_API_KEY, REQUESTY_API_KEY pkg/model/provider/aliases.go
AZURE_API_KEY pkg/model/provider/aliases.go
GITHUB_TOKEN (Copilot) pkg/model/provider/aliases.go
AWS_BEARER_TOKEN_BEDROCK bedrock provider
DOCKER_AGENT_DEFAULT_MODEL cmd/root/flags.go (envDefaultModel)
DOCKER_AGENT_HIDE_TELEMETRY_BANNER cmd/root/root.go
DOCKER_AGENT_MODELS_GATEWAY already documented for --models-gateway, now also in the env-var table

A short callout points readers at the legacy CAGENT_* aliases that the same code paths still accept.

CLI Reference gaps

  • docker agent alias add supports --hide-tool-results (see cmd/root/alias.go) but the Alias Options bullet list didn't mention it.
  • The row for --models-gateway now also notes the legacy CAGENT_MODELS_GATEWAY env var alias.

Troubleshooting nits

  • Context Length Exceeded claimed Claude 200K, Gemini 2M — Sonnet 4.5 is now 1M tokens.
  • Incorrect model name example used gpt-4 vs gpt-4o; updated to gpt-5-mini / gpt-4o.

How to verify

git diff upstream/main -- docs

No source code is touched, so existing tests and mise lint are unaffected.

- Update introductory and reference pages (intro, quickstart, concepts, configuration, providers/overview, troubleshooting) to use the current default models (openai/gpt-5-mini and anthropic/claude-sonnet-4-5) instead of the older gpt-4o / claude-sonnet-4-0 examples.

- Fix internal inconsistency on the Anthropic provider page: the inline example used claude-sonnet-4-0 while the Available Models table called claude-sonnet-4-5 the default. The page now leads with claude-sonnet-4-5 and keeps claude-sonnet-4-0 in the table as a 'previous Sonnet generation, still supported' entry.

- Configuration Overview: complete the API-key environment-variable table (added GEMINI_API_KEY, MINIMAX_API_KEY, REQUESTY_API_KEY, AZURE_API_KEY, GITHUB_TOKEN for Copilot, AWS_BEARER_TOKEN_BEDROCK), add a new 'Runtime overrides' table that documents DOCKER_AGENT_DEFAULT_MODEL, DOCKER_AGENT_MODELS_GATEWAY and DOCKER_AGENT_HIDE_TELEMETRY_BANNER, and call out the legacy CAGENT_* aliases.

- CLI Reference: add the missing --hide-tool-results option in the alias-options bullet list and mention the legacy CAGENT_MODELS_GATEWAY env var alias next to --models-gateway.

- Troubleshooting: fix the outdated context-window claim ('Claude 200K, Gemini 2M') and refresh the model-name examples.

- Installation: fix a column-alignment glitch in the API-keys block, note that GOOGLE_API_KEY and GEMINI_API_KEY are interchangeable, and link out to the full env-var reference.

Assisted-By: docker-agent
@dgageot dgageot requested a review from a team as a code owner May 1, 2026 04:12
@stasyu2009-ux
Copy link
Copy Markdown

Все вірно

@dgageot dgageot merged commit 70f36d6 into docker:main May 4, 2026
6 checks passed
@stasyu2009-ux
Copy link
Copy Markdown

все вірно

@stasyu2009-ux
Copy link
Copy Markdown

Я зробив

Copy link
Copy Markdown

@stasyu2009-ux stasyu2009-ux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я все зробив код правильний

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants