Skip to content

(feat) Add vertex provider#108

Merged
sd-st merged 4 commits intoanthropics:nextfrom
JPVenson:save/vertex_1
Feb 6, 2026
Merged

(feat) Add vertex provider#108
sd-st merged 4 commits intoanthropics:nextfrom
JPVenson:save/vertex_1

Conversation

@JPVenson
Copy link
Contributor

@JPVenson JPVenson commented Feb 3, 2026

Adds googles vertex platform as supported provider
Adds Examples as own project (as discussed in the #77 pr)
Adds inclusion into tests.
Note: As vertex the same as bedrock does not follow the same api structure as anthropic does, testing with the internal test server isn't possible as of now. The code has been manually tested for compliance for all supported endpoints

@JPVenson JPVenson requested a review from a team as a code owner February 3, 2026 15:43
Copy link
Collaborator

@sd-st sd-st left a comment

Choose a reason for hiding this comment

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

Nice! Just had a few minor comments

@sd-st
Copy link
Collaborator

sd-st commented Feb 5, 2026

LGTM! Needs a rebase (which may require some small code changes; they updated their spec)

@sd-st
Copy link
Collaborator

sd-st commented Feb 5, 2026

Also how did you test this locally with an access token/project ID/region?

@JPVenson
Copy link
Contributor Author

JPVenson commented Feb 5, 2026

ahrrrrg i JUST rebased it like 30 minutes ago!

i am currently writing an doc on steps to get the nessesary google stuff setup but i can send you the test stuff on slack. The vertex example holds everything nessesary for it in its comment

@sd-st
Copy link
Collaborator

sd-st commented Feb 5, 2026

Yeah sorry they just did a release so there were some changes 😅

Add vertex example

Add explicit body check for vertex

Readd explicit check for model value in bedrock client

lint

reintroduce null forgiving operator as required by build
@sd-st
Copy link
Collaborator

sd-st commented Feb 6, 2026

Tested locally. A few things to address:

  • model name needs to be updated in examples
  • we should add the ability to use ANTHROPIC_VERTEX_PROJECT_ID instead of specifying the project id in the code
  • we should document in the example the fact that you can configure auth using the respective environment variables (CLOUD_ML_REGION, ANTHROPIC_VERTEX_PROJECT_ID, VERTEX_ACCESS_TOKEN)

@JPVenson
Copy link
Contributor Author

JPVenson commented Feb 6, 2026

@sd-st

  • Model name updated to claude-3-7-sonnet@20250219
  • Added DefaultAnthropicVertexCredentials.FromEnvAsync in line with foundry and bedrock
  • Added additional documentation on the new method of variables and references to google documentation

@sd-st sd-st merged commit 51f66c3 into anthropics:next Feb 6, 2026
3 checks passed
@sd-st
Copy link
Collaborator

sd-st commented Feb 6, 2026

Thanks!

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.

2 participants