Skip to content

docs: fix the example-config URL and document Anthropic auto-config on the aigw run page - #2963

Open
dcoric wants to merge 2 commits into
theagentrouter:mainfrom
dcoric:docs-aigw-run-page
Open

dcoric wants to merge 2 commits into
theagentrouter:mainfrom
dcoric:docs-aigw-run-page

Conversation

@dcoric

@dcoric dcoric commented Nov 2, 2026

Copy link
Copy Markdown

Description

The aigw run page has three problems that make its "Modify an Example Configuration" section fail for a reader who follows it:

  • The download command is in a plain fenced code block, so {vars.aigwGitRef} is never substituted and the rendered URL contains the placeholder literally. This change renders the command with CodeBlock and _vars.json, the same way the provider pages under getting-started do, and drops the refs/heads/ segment so the reference works for both branch names and tags.
  • The two example diffs point at @@ -88,7 +88,7 @@, but the model matcher in examples/aigw/ollama.yaml is now at line 138. The hunk headers now say @@ -135,7 +135,7 @@.
  • The "Supported Environment Variables" section documents only OpenAI and Azure OpenAI, while aigw run also auto-configures from ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL (internal/autoconfig/anthropic.go), and the CLI help already names ANTHROPIC_API_KEY. The section now has an Anthropic table and states the precedence from cmd/aigw/config.go: OpenAI or Azure OpenAI wins when set together with Anthropic, and Azure wins over OpenAI.

The versioned copies of this page under site/versioned_docs have the same placeholder problem. They are left untouched here so this change stays small; happy to follow up on them if wanted.

Related Issues/PRs (if applicable)

Fixes #2876

Special notes for reviewers (if applicable)

Docs only, no code change. The environment-variable section was checked against cmd/aigw/config.go and internal/autoconfig/anthropic.go, and the hunk headers against the current examples/aigw/ollama.yaml.

…n the aigw run page

Signed-off-by: Denis Ćorić <denis85@gmail.com>
@dcoric
dcoric requested a review from a team as a code owner November 2, 2026 13:19
@netlify

netlify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for theagentrouter ready!

Name Link
🔨 Latest commit 2ce4b9e
🔍 Latest deploy log https://app.netlify.com/projects/theagentrouter/deploys/6aef9fdb62cb039410cb7805
😎 Deploy Preview https://deploy-preview-2963--theagentrouter.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Denis Ćorić <denis85@gmail.com>
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.

docs(cli): aigw run page has a broken example-config URL and doesn't document Anthropic auto-config

1 participant