Skip to content

feat: centralize Anthropic request building and move bedrock to messages api for claude models#3309

Open
Pratham-Mishra04 wants to merge 1 commit into
devfrom
05-08-feat_shifted_to_anthropic_endpoints_in_bedrock_for_claude_models_and_refactors
Open

feat: centralize Anthropic request building and move bedrock to messages api for claude models#3309
Pratham-Mishra04 wants to merge 1 commit into
devfrom
05-08-feat_shifted_to_anthropic_endpoints_in_bedrock_for_claude_models_and_refactors

Conversation

@Pratham-Mishra04
Copy link
Copy Markdown
Collaborator

Summary

This PR consolidates Anthropic-family request building across all providers (Anthropic native, Azure, Vertex, Bedrock) into two shared builder functions — BuildAnthropicChatRequestBody and BuildAnthropicResponsesRequestBody — eliminating duplicated inline logic and provider-specific wrapper helpers that previously scattered the same field-stripping, beta-header injection, and model-field manipulation across multiple files.

Changes

  • Introduced AnthropicProviderRequestDefaults and AnthropicProviderRequestDefaultsMap to encode static, per-provider request-shaping flags (e.g. DeleteModelField, DeleteStreamField, AddAnthropicVersion, InjectBetaHeadersIntoBody) in one place. Callers no longer pass these flags directly; the builder looks them up by cfg.Provider.
  • Renamed Deployment to Model in AnthropicRequestBuildConfig for clarity, since all providers now use the same field for model/deployment overrides.
  • Added BuildAnthropicChatRequestBody as the chat-completion analogue of BuildAnthropicResponsesRequestBody, covering both raw-body and typed paths, including field stripping, beta-header injection, streaming flag handling, and fallbacks deletion.
  • Bedrock now routes Anthropic models through the Anthropic Messages API format (invoke / invoke-with-response-stream endpoints) for both chat and responses, rather than the Bedrock Converse API. This includes proper response parsing via AcquireAnthropicMessageResponse and streaming via AnthropicStreamState / AnthropicResponsesStreamState.
  • Removed private wrapper functions getRequestBodyForResponses (Anthropic), getRequestBodyForAnthropicResponses (Azure, Vertex), and the inline CheckContextAndGetRequestBody closures for Anthropic models in Vertex and Azure, replacing all call sites with direct BuildAnthropicChatRequestBody / BuildAnthropicResponsesRequestBody calls.
  • Exported AcquireAnthropicResponsesStreamState, ReleaseAnthropicResponsesStreamState, AcquireAnthropicMessageResponse, and ReleaseAnthropicMessageResponse so Bedrock can reuse the Anthropic stream state pool.
  • Removed DefaultVertexAnthropicVersion constant from the Vertex package; the canonical version string now lives in AnthropicProviderRequestDefaultsMap.
  • Bedrock's releaseBedrockChatResponse now zeroes the struct before returning it to the pool.
  • stripUnsupportedAnthropicFields is now called inside BuildAnthropicResponsesRequestBody on the typed path, making field stripping symmetric across raw and typed paths and across both APIs.

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (React)
  • Docs

How to test

go test ./core/providers/anthropic/...
go test ./core/providers/azure/...
go test ./core/providers/bedrock/...
go test ./core/providers/vertex/...
go test ./...

Run integration tests against Anthropic, Azure (Anthropic models), Vertex (Claude models), and Bedrock (Claude models) for chat completion, streaming, responses, responses streaming, and count-tokens endpoints. Verify that raw-body passthrough requests produce the same field stripping and beta-header injection as typed requests.

Breaking changes

  • Yes
  • No

AnthropicRequestBuildConfig has a breaking field rename: DeploymentModel. Any external code constructing this struct directly must update the field name. The static shaping flags (DeleteModelField, DeleteRegionField, AddAnthropicVersion, AnthropicVersion, StripCacheControlScope, RemapToolVersions, InjectBetaHeadersIntoBody) have been removed from AnthropicRequestBuildConfig and are now looked up internally via AnthropicProviderRequestDefaultsMap; callers that set these fields must remove them.

Related issues

Security considerations

No new auth flows, secrets handling, or PII exposure introduced. Field stripping ensures provider-unsupported fields are not forwarded to external APIs.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown
Collaborator Author

Pratham-Mishra04 commented May 7, 2026

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 7, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5b30ed4b-046a-436b-8101-118c9cd2e111

📥 Commits

Reviewing files that changed from the base of the PR and between 359f49d and 5484331.

📒 Files selected for processing (13)
  • core/providers/anthropic/anthropic.go
  • core/providers/anthropic/requestbuilder.go
  • core/providers/anthropic/requestbuilder_test.go
  • core/providers/anthropic/responses.go
  • core/providers/anthropic/utils.go
  • core/providers/anthropic/utils_test.go
  • core/providers/azure/azure.go
  • core/providers/azure/utils.go
  • core/providers/bedrock/bedrock.go
  • core/providers/bedrock/bedrock_test.go
  • core/providers/vertex/types.go
  • core/providers/vertex/utils.go
  • core/providers/vertex/vertex.go
💤 Files with no reviewable changes (4)
  • core/providers/vertex/types.go
  • core/providers/anthropic/utils.go
  • core/providers/vertex/utils.go
  • core/providers/azure/utils.go
✅ Files skipped from review due to trivial changes (1)
  • core/providers/bedrock/bedrock_test.go
🚧 Files skipped from review as they are similar to previous changes (8)
  • core/providers/anthropic/utils_test.go
  • core/providers/anthropic/anthropic.go
  • core/providers/anthropic/responses.go
  • core/providers/azure/azure.go
  • core/providers/vertex/vertex.go
  • core/providers/anthropic/requestbuilder.go
  • core/providers/anthropic/requestbuilder_test.go
  • core/providers/bedrock/bedrock.go

📝 Walkthrough

Summary by CodeRabbit

  • Refactor

    • Centralized Anthropic request/response builders for consistent behavior across providers (Azure, Bedrock, Vertex, core), including unified handling for chat, streaming, responses, and token counting.
    • Exposed pooled Anthropic stream-state acquisition/release for safer reuse.
  • Bug Fixes

    • Improved Bedrock streaming and response handling (more correct streaming modes, safer pooled object handling).
  • Tests

    • Updated Anthropic-related tests to align with the new request-build configuration and preserve expected JSON/output behaviors.

Walkthrough

This PR centralizes Anthropic request-body construction behind provider-driven builders and defaults, replaces per-provider helper paths with shared builders across Anthropic/Azure/Vertex/Bedrock, exports Anthropic stream-state pool accessors, and updates tests to the new config shape.

Changes

Centralized Anthropic Request Building

Layer / File(s) Summary
Configuration & Defaults
core/providers/anthropic/requestbuilder.go
AnthropicRequestBuildConfig restructured: DeploymentModel; static provider shaping flags moved into AnthropicProviderRequestDefaultsMap (delete/retain model/region/stream, anthropic_version injection, cache-control stripping, tool remap, beta header embedding).
Request Builders
core/providers/anthropic/requestbuilder.go
BuildAnthropicResponsesRequestBody and BuildAnthropicChatRequestBody refactored to apply provider defaults for raw and typed paths, handling field deletion/replacement, tool-version remapping, version/beta injection, excluded-field deletion, and count-tokens semantics.
Anthropic Provider Integration
core/providers/anthropic/anthropic.go, core/providers/anthropic/responses.go
ChatCompletion, ChatCompletionStream, Responses, ResponsesStream, and CountTokens now call centralized builders with AnthropicRequestBuildConfig; ResponsesStream and other stream code use exported AcquireAnthropicResponsesStreamState/ReleaseAnthropicResponsesStreamState.
Azure Provider Integration
core/providers/azure/azure.go, core/providers/azure/utils.go
Anthropic branches in Chat/Responses paths now call anthropic.BuildAnthropic*RequestBody with Azure-appropriate config; removed inline Anthropic helpers and related imports.
Vertex Provider Integration
core/providers/vertex/vertex.go, core/providers/vertex/{types.go,utils.go}
Anthropic flows for Chat/Responses/CountTokens now use centralized builders with Vertex-specific URL inlining and beta/header overrides; removed DefaultVertexAnthropicVersion and legacy helper functions.
Bedrock Dual-Pipeline Support
core/providers/bedrock/bedrock.go
Bedrock splits Anthropic vs Converse models: Anthropic models use Anthropic builders and Anthropic stream converters; Converse models use native Bedrock logic with structured-output tool-call interception; stream/event decoding and state management updated.
Cleanup & Tests
core/providers/anthropic/{utils.go,utils_test.go}, core/providers/anthropic/requestbuilder_test.go, core/providers/azure/utils.go, core/providers/vertex/{types.go,utils.go}, core/providers/bedrock/bedrock_test.go
Removes per-provider getRequestBodyForAnthropicResponses helpers and unused imports; updates tests to use Model in AnthropicRequestBuildConfig and provider-default-driven behaviors.

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly Related PRs

  • maximhq/bifrost#2937: Both PRs modify Anthropic request-builder centralization and related helpers.
  • maximhq/bifrost#3055: Overlapping changes to Anthropic request-building, beta-header handling, and unsupported-field stripping.
  • maximhq/bifrost#2182: Related Anthropic header/tool-version handling changes.

Poem

🐰 Builders hop as one,
Defaults tucked in every run,
Anthropic, Azure, Vertex, Bedrock — neat,
Helpers folded, builders meet,
One tidy hop, a unified beat.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 53.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main changes: centralizing Anthropic request building and moving Bedrock to the Messages API for Claude models.
Description check ✅ Passed The pull request description covers the problem, changes, affected areas, breaking changes, and testing guidance. The template's Summary, Changes, Type of change, Affected areas, How to test, and Breaking changes sections are all completed.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 05-08-feat_shifted_to_anthropic_endpoints_in_bedrock_for_claude_models_and_refactors

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.12.1)

level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies"


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🧪 Test Suite Available

This PR can be tested by a repository admin.

Run tests for PR #3309

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
core/providers/anthropic/requestbuilder.go (1)

152-163: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Preserve the request model in raw count-tokens mode when cfg.Model is empty.

AnthropicRequestBuildConfig.Model is documented as optional, but this branch always writes "model": cfg.Model. For native Anthropic raw-body count-tokens calls, that can replace a valid model with "" and produce an invalid request. Fall back to request.Model here, matching the typed path.

Suggested fix
-			jsonBody, err = providerUtils.SetJSONField(jsonBody, "model", cfg.Model)
+			model := cfg.Model
+			if model == "" {
+				model = request.Model
+			}
+			jsonBody, err = providerUtils.SetJSONField(jsonBody, "model", model)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@core/providers/anthropic/requestbuilder.go` around lines 152 - 163, In the
cfg.IsCountTokens branch don't blindly write cfg.Model; instead derive the model
to set by using cfg.Model if non-empty otherwise fall back to request.Model so
you don't overwrite a valid native Anthropic model with an empty string—i.e.
compute model := cfg.Model; if model == "" { model = request.Model } and pass
that model to providerUtils.SetJSONField (referencing
AnthropicRequestBuildConfig.Model, cfg.Model, request.Model,
providerUtils.SetJSONField and cfg.IsCountTokens).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@core/providers/bedrock/bedrock.go`:
- Around line 1366-1388: The Anthropic stream handling currently emits a
synthetic footer after processing each streamEvent even when
streamEvent.ToBifrostChatCompletionStream(...) already returned the terminal
Anthropic summary (isLastChunk == true), causing a duplicate final chunk; update
the logic in the loop that calls ToBifrostChatCompletionStream (and the similar
block at the other location) to: if isLastChunk is true, mark the returned
response as final (set the finish/terminal indicator on the Bifrost response),
send it once and skip emitting the synthetic footer (i.e., only emit the
synthetic footer for the Converse path), and ensure chunkIndex is not
incremented for the skipped footer so the terminal chunk index stays correct.

---

Outside diff comments:
In `@core/providers/anthropic/requestbuilder.go`:
- Around line 152-163: In the cfg.IsCountTokens branch don't blindly write
cfg.Model; instead derive the model to set by using cfg.Model if non-empty
otherwise fall back to request.Model so you don't overwrite a valid native
Anthropic model with an empty string—i.e. compute model := cfg.Model; if model
== "" { model = request.Model } and pass that model to
providerUtils.SetJSONField (referencing AnthropicRequestBuildConfig.Model,
cfg.Model, request.Model, providerUtils.SetJSONField and cfg.IsCountTokens).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 283d82a9-29c1-4e8b-b568-9dae4d5fc363

📥 Commits

Reviewing files that changed from the base of the PR and between c80c532 and 7aabd75.

📒 Files selected for processing (13)
  • core/providers/anthropic/anthropic.go
  • core/providers/anthropic/requestbuilder.go
  • core/providers/anthropic/requestbuilder_test.go
  • core/providers/anthropic/responses.go
  • core/providers/anthropic/utils.go
  • core/providers/anthropic/utils_test.go
  • core/providers/azure/azure.go
  • core/providers/azure/utils.go
  • core/providers/bedrock/bedrock.go
  • core/providers/bedrock/bedrock_test.go
  • core/providers/vertex/types.go
  • core/providers/vertex/utils.go
  • core/providers/vertex/vertex.go
💤 Files with no reviewable changes (4)
  • core/providers/vertex/types.go
  • core/providers/anthropic/utils.go
  • core/providers/vertex/utils.go
  • core/providers/azure/utils.go

Comment thread core/providers/bedrock/bedrock.go
Copy link
Copy Markdown
Collaborator Author

@greptile

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 8, 2026

Confidence Score: 5/5

The refactoring is structurally sound — all provider paths correctly route through the new shared builders, previously identified variable-shadowing issues in ChatCompletion and Responses on Bedrock have been resolved, and stream-end finalization is correctly placed in the post-loop code for ChatCompletionStream.

The core change is a centralisation refactor with no new external dependencies or auth-boundary changes. All four providers' chat and responses paths were traced end-to-end and produce equivalent field stripping, model handling, and beta-header injection as before. Only two minor inconsistencies were found: a mutable exported defaults map and a potential cached-token additive adjustment in the new Bedrock Anthropic ResponsesStream path that diverges from the ChatCompletionStream behaviour.

core/providers/bedrock/bedrock.go — the new Anthropic ResponsesStream path's final-chunk usage accounting warrants a second look to confirm cached-token additive behaviour matches intent.

Important Files Changed

Filename Overview
core/providers/anthropic/requestbuilder.go Adds BuildAnthropicChatRequestBody and refactors AnthropicRequestBuildConfig; static per-provider flags moved to AnthropicProviderRequestDefaultsMap (exported mutable var).
core/providers/bedrock/bedrock.go Anthropic models routed via InvokeModel / InvokeModel-with-response-stream; ChatCompletion and Responses variable-shadowing issues from previous comments have been fixed.
core/providers/anthropic/anthropic.go Inline builder closures replaced with BuildAnthropicChatRequestBody and BuildAnthropicResponsesRequestBody calls; AcquireAnthropicMessageResponse pool functions exported for Bedrock reuse.
core/providers/vertex/vertex.go Anthropic-on-Vertex chat completion now uses BuildAnthropicChatRequestBody; inlineDocumentURLsResponses added for Responses-API document inlining; inlineDocumentURLs updated to accept *schemas.BifrostContext for raw-body short-circuit.
core/providers/azure/azure.go Anthropic chat/responses paths now delegate to BuildAnthropicChatRequestBody / BuildAnthropicResponsesRequestBody; intermediate wrapper removed.
core/providers/azure/utils.go getRequestBodyForAnthropicResponses wrapper removed; all Anthropic responses logic now lives inside the shared builder.
core/providers/vertex/utils.go getRequestBodyForAnthropicResponses wrapper removed; all logic now lives inside BuildAnthropicResponsesRequestBody.
core/providers/anthropic/requestbuilder_test.go Tests updated: Deployment to Model rename applied, static flag fields removed; test coverage for the refactored builder paths looks adequate.

Reviews (5): Last reviewed commit: "feat:shifted to anthropic endpoints in b..." | Re-trigger Greptile

Comment thread core/providers/bedrock/bedrock.go
@Pratham-Mishra04 Pratham-Mishra04 changed the base branch from main to graphite-base/3309 May 8, 2026 08:19
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-08-feat_shifted_to_anthropic_endpoints_in_bedrock_for_claude_models_and_refactors branch from 7aabd75 to 651517c Compare May 8, 2026 08:19
@Pratham-Mishra04 Pratham-Mishra04 changed the base branch from graphite-base/3309 to dev May 8, 2026 08:19
Comment thread core/providers/bedrock/bedrock.go
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (1)
core/providers/bedrock/bedrock.go (1)

1372-1549: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Verify the Anthropic stream path is not emitting a second terminal chunk.

isLastChunk only breaks the loop here; Lines 1541-1549 still send an unconditional synthetic footer afterward. If ToBifrostChatCompletionStream(...) already returns Anthropic’s terminal summary chunk on the last event, this path will emit two terminal chunks with duplicated usage/final-state data.

#!/bin/bash
set -euo pipefail

# Inspect the Anthropic helper's last-chunk behavior.
rg -n -C6 --type=go '\bToBifrostChatCompletionStream\s*\(' core/providers/anthropic

# Inspect the Bedrock caller's break + footer flow.
rg -n -C6 --type=go 'isLastChunk|CreateBifrostChatCompletionChunkResponse' core/providers/bedrock/bedrock.go

If the helper's isLastChunk branch returns a non-nil final response, gate the synthetic footer to the Converse path or return immediately after sending the helper-produced terminal chunk.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@core/providers/bedrock/bedrock.go` around lines 1372 - 1549, The Anthropic
stream path can already produce a terminal chunk via
ToBifrostChatCompletionStream (checked by isLastChunk) but the code always emits
an unconditional synthetic footer later via
CreateBifrostChatCompletionChunkResponse, producing duplicate terminal chunks;
fix by recording or returning immediately when the Anthropic branch emits a
final chunk: in the block that handles the Anthropic stream (where
ToBifrostChatCompletionStream, isLastChunk, and
providerUtils.ProcessAndSendResponse are used), either set a local boolean
(e.g., emittedFinalChunk=true) or return after sending the final response when
isLastChunk is true, and then gate the final synthetic footer (the
CreateBifrostChatCompletionChunkResponse / ProcessAndSendResponse at the end) to
run only when no prior terminal chunk was emitted (check the boolean or context
key / schemas.BifrostContextKeyStreamEndIndicator).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@core/providers/bedrock/bedrock.go`:
- Around line 1105-1106: The pooled BedrockConverseResponse instances are
returned to the pool without clearing their contents; update the release path to
zero all fields of BedrockConverseResponse before putting it back (either by
implementing/using a Reset method on BedrockConverseResponse or adding explicit
zeroing inside releaseBedrockChatResponse), ensuring you clear slices, maps,
strings, and any nested structs so no prior request/response data remains in
memory; apply the same change for the other call site that uses
acquireBedrockChatResponse/releaseBedrockChatResponse (the second occurrence
noted around the other lines) so every release path resets the object prior to
pool.Put().

In `@core/providers/vertex/vertex.go`:
- Around line 892-900: The Anthropic request build call is using the original
BifrostResponsesRequest which may contain URL-backed documents that Vertex
(Claude) rejects; before calling anthropic.BuildAnthropicResponsesRequestBody in
the Responses/ResponsesStream/CountTokens branches (the call sites shown using
BuildAnthropicResponsesRequestBody), run the same URL inlining used elsewhere by
calling inlineDocumentURLs(ctx, request) (or the existing helper used for chat
conversions) and use the returned/modified request when invoking
BuildAnthropicResponsesRequestBody; apply this change at the shown location and
the other two locations referenced (around lines 1175-1184 and 2502-2511) so
URL-backed documents are converted to base64 inline content before building the
Anthropic request.

---

Duplicate comments:
In `@core/providers/bedrock/bedrock.go`:
- Around line 1372-1549: The Anthropic stream path can already produce a
terminal chunk via ToBifrostChatCompletionStream (checked by isLastChunk) but
the code always emits an unconditional synthetic footer later via
CreateBifrostChatCompletionChunkResponse, producing duplicate terminal chunks;
fix by recording or returning immediately when the Anthropic branch emits a
final chunk: in the block that handles the Anthropic stream (where
ToBifrostChatCompletionStream, isLastChunk, and
providerUtils.ProcessAndSendResponse are used), either set a local boolean
(e.g., emittedFinalChunk=true) or return after sending the final response when
isLastChunk is true, and then gate the final synthetic footer (the
CreateBifrostChatCompletionChunkResponse / ProcessAndSendResponse at the end) to
run only when no prior terminal chunk was emitted (check the boolean or context
key / schemas.BifrostContextKeyStreamEndIndicator).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0bdbd678-4c9c-4a17-9e8b-1aa47813f16a

📥 Commits

Reviewing files that changed from the base of the PR and between 7aabd75 and 651517c.

📒 Files selected for processing (13)
  • core/providers/anthropic/anthropic.go
  • core/providers/anthropic/requestbuilder.go
  • core/providers/anthropic/requestbuilder_test.go
  • core/providers/anthropic/responses.go
  • core/providers/anthropic/utils.go
  • core/providers/anthropic/utils_test.go
  • core/providers/azure/azure.go
  • core/providers/azure/utils.go
  • core/providers/bedrock/bedrock.go
  • core/providers/bedrock/bedrock_test.go
  • core/providers/vertex/types.go
  • core/providers/vertex/utils.go
  • core/providers/vertex/vertex.go
💤 Files with no reviewable changes (4)
  • core/providers/anthropic/utils.go
  • core/providers/vertex/types.go
  • core/providers/azure/utils.go
  • core/providers/vertex/utils.go
✅ Files skipped from review due to trivial changes (2)
  • core/providers/bedrock/bedrock_test.go
  • core/providers/anthropic/utils_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • core/providers/azure/azure.go

Comment thread core/providers/bedrock/bedrock.go
Comment thread core/providers/vertex/vertex.go
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-08-feat_shifted_to_anthropic_endpoints_in_bedrock_for_claude_models_and_refactors branch from 651517c to 359f49d Compare May 8, 2026 08:50
Comment thread core/providers/bedrock/bedrock.go Outdated
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-08-feat_shifted_to_anthropic_endpoints_in_bedrock_for_claude_models_and_refactors branch from 359f49d to 5484331 Compare May 8, 2026 08:59
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