anthropics / anthropics/claude-code-action

Incorrect `ANTHROPIC_FOUNDRY_BASE_URL` instructions

Open
#816 1 comment 0 reactions 0 assignees View on GitHub
area:installation bug documentation p2
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

# TL;DR

The docs for Foundry authentication should have the `ANTHROPIC_FOUNDRY_BASE_URL` variable set to `https://my-resource.services.ai.azure.com/anthropic`, not `https://my-resource.services.ai.azure.com`, or at least note that this is sometimes necessary.

# Bug report

**Describe the bug**
Docs on `ANTHROPIC_FOUNDRY_BASE_URL` format are incorrect.

**To Reproduce**
Copy the [PR review action](https://github.com/anthropics/claude-code-action/blob/main/docs/solutions.md#automatic-pr-code-review), then use the [Foundry authentication instructions](https://github.com/anthropics/claude-code-action/blob/main/docs/cloud-providers.md#oidc-authentication-for-cloud-providers), specifically the instructions to set the env variable `ANTHROPIC_FOUNDRY_BASE_URL: https://my-resource.services.ai.azure.com`.

After following these instructions, I get a "resource not found" error.

**Expected behavior**
Successful automatic code review.

**API Provider**

[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex
[x] Azure Foundry

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.