feat(ai-bedrock): add Amazon Bedrock adapter (Converse default + OpenAI-compatible chat/responses) #665
MergedAlemTuzlakmerged 55 commits into
main fromrefs/pull/665/headmerged by AlemTuzlak View on GitHub- @@ -109,19 +95,3 @@109- {110- "label": "Structured Outputs",111- "children": [112- {113- "label": "Overview",114- "to": "structured-outputs/overview"115- },116- {117- "label": "One-Shot Extraction",118- "to": "structured-outputs/one-shot"119- },120- {121- "label": "Streaming UIs",122- "to": "structured-outputs/streaming"123- },124- {125- "label": "Multi-Turn Chat",126- "to": "structured-outputs/multi-turn"95+ "label": "Structured Outputs (Moved)",96+ "to": "chat/structured-outputs"12797 },@@ -0,0 +37,21 @@37+ "test:types": "tsc"38+ },39+ "keywords": [40+ "ai",41+ "ai-sdk",42+ "typescript",43+ "tanstack",44+ "bedrock",45+ "aws",46+ "adapter",47+ "llm",48+ "chat",49+ "tool-calling"50+ ],51+ "devDependencies": {52+ "@vitest/coverage-v8": "4.0.14",53+ "vite": "^7.3.3"54+ },55+ "peerDependencies": {56+ "@tanstack/ai": "workspace:^",57+ "zod": "^4.0.0"@@ -0,0 +53,21 @@53+54+ constructor(config: BedrockResponsesConfig, model: TModel) {55+ // Responses is mantle-only — force the mantle base URL (an explicit56+ // config.baseURL still wins, e.g. E2E pointing at aimock).57+ super(58+ model,59+ 'bedrock-responses',60+ new OpenAI(withBedrockDefaults(config, 'mantle')),61+ )62+ }63+}64+65+/** Responses adapter with an explicit API key (low-level; the public branching factory delegates here). */66+export function createBedrockResponsesText<67+ TModel extends BedrockResponsesModels,68+>(69+ model: TModel,70+ apiKey: string,71+ config?: Omit<BedrockResponsesConfig, 'apiKey'>,72+): BedrockResponsesTextAdapter<TModel> {73+ return new BedrockResponsesTextAdapter({ apiKey, ...config }, model)@@ -0,0 +77,21 @@77+ if (typeof choice !== 'object' || choice === null || !('delta' in choice))78+ return undefined79+ const delta = choice.delta80+ if (typeof delta !== 'object' || delta === null) return undefined81+ const raw =82+ 'reasoning' in delta && typeof delta.reasoning === 'string'83+ ? delta.reasoning84+ : 'reasoning_content' in delta &&85+ typeof delta.reasoning_content === 'string'86+ ? delta.reasoning_content87+ : undefined88+ return raw && raw.length > 0 ? { text: raw } : undefined89+}90+91+/** Chat adapter with an explicit API key (low-level; the public branching factory delegates here). */92+export function createBedrockChat<TModel extends BedrockChatModels>(93+ model: TModel,94+ apiKey: string,95+ config?: Omit<BedrockTextConfig, 'apiKey'>,96+): BedrockTextAdapter<TModel> {97+ return new BedrockTextAdapter({ apiKey, ...config }, model)@@ -0,0 +77,21 @@77+ model: BedrockChatModels,78+ apiKey: string,79+ config?: BedrockChatApiConfig | BedrockResponsesApiConfig,80+): AnyBedrockAdapter {81+ return build(model, apiKey, config)82+}83+84+// --- bedrockText: env-key counterpart, same overloads ---85+export function bedrockText<TModel extends BedrockChatModels>(86+ model: TModel,87+ config?: BedrockChatApiConfig,88+): BedrockTextAdapter<TModel>89+export function bedrockText<TModel extends BedrockResponsesModels>(90+ model: TModel,91+ config: BedrockResponsesApiConfig,92+): BedrockResponsesTextAdapter<TModel>93+export function bedrockText(94+ model: BedrockChatModels,95+ config?: BedrockChatApiConfig | BedrockResponsesApiConfig,96+): AnyBedrockAdapter {97+ return build(model, getBedrockApiKeyFromEnv(), config)@@ -0,0 +40,21 @@40+ * Requires the optional `aws-sigv4-fetch` dependency (install it yourself:41+ * `pnpm add aws-sigv4-fetch`). AWS credentials are resolved from the standard42+ * provider chain. Throws an actionable error if the dep is absent.43+ */44+export function bedrockSigV4Fetch(45+ options: BedrockSigV4Options,46+): NonNullable<ClientOptions['fetch']> {47+ const { service, region } = resolveSigV4Params(options)48+ let signedFetch: SignedFetcher | undefined49+50+ const fn: NonNullable<ClientOptions['fetch']> = async (url, init) => {51+ if (!signedFetch) {52+ let createSignedFetcher: CreateSignedFetcher53+ try {54+ const mod = await import('aws-sigv4-fetch')55+ createSignedFetcher = mod.createSignedFetcher56+ } catch {57+ throw new Error(58+ 'SigV4 auth for @tanstack/ai-bedrock requires the optional "aws-sigv4-fetch" ' +59+ 'package. Install it (`pnpm add aws-sigv4-fetch`) or use API-key auth via BEDROCK_API_KEY.',60+ )@@ -2,9 +2,9 @@22 name: ai-core/adapter-configuration33 description: >44 Provider adapter selection and configuration: openaiText, anthropicText,5- geminiText, ollamaText, grokText, groqText, openRouterText. Per-model6- type safety with modelOptions, reasoning/thinking configuration,5+ geminiText, ollamaText, grokText, groqText, openRouterText, bedrockText.6+ Per-model type safety with modelOptions, reasoning/thinking configuration,77 runtime adapter switching, extendAdapter() for custom models, createModel().88 API key env vars: OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY/GEMINI_API_KEY,9- XAI_API_KEY, GROQ_API_KEY, OPENROUTER_API_KEY, OLLAMA_HOST.9+ XAI_API_KEY, GROQ_API_KEY, OPENROUTER_API_KEY, OLLAMA_HOST, BEDROCK_API_KEY.1010 type: sub-skill@@ -0,0 +11,21 @@11+ * Why manual: ListFoundationModels carries modalities + inference types but no12+ * pricing, and per-account/region availability varies. The committed model-meta13+ * is a hand-transcribed seed; this script is the long-term source of truth.14+ * Responses-capable models are those with Responses=Yes in15+ * https://docs.aws.amazon.com/bedrock/latest/userguide/models-api-compatibility.html16+ */17+import {18+ BedrockClient,19+ ListFoundationModelsCommand,20+ ListInferenceProfilesCommand,21+} from '@aws-sdk/client-bedrock'22+23+async function main() {24+ const region = process.env['AWS_REGION'] ?? 'us-east-1'25+ const client = new BedrockClient({ region })26+27+ const models = await client.send(28+ new ListFoundationModelsCommand({ byOutputModality: 'TEXT' }),29+ )30+ const profiles = await client.send(new ListInferenceProfilesCommand({}))31+
AlemTuzlak changed the title
- @@ -0,0 +3,21 @@3+4+export const STRUCTURED_TOOL_NAME = 'structured_output'5+6+/**7+ * Converse has no native json_schema response_format. Structured output is8+ * achieved by forcing a single tool whose input schema is the requested output9+ * schema; the model's tool-use `input` is the structured result.10+ */11+export function buildStructuredToolConfig(schema: unknown): ToolConfiguration {12+ return {13+ tools: [14+ {15+ toolSpec: {16+ name: STRUCTURED_TOOL_NAME,17+ description: 'Return the final answer as structured JSON.',18+ inputSchema: { json: schema as DocumentType },19+ },20+ },21+ ],22+ toolChoice: { tool: { name: STRUCTURED_TOOL_NAME } },23+ }Resolvedby tombeckenham@@ -0,0 +23,21 @@23+ if (!tools.length) return undefined24+ const toolChoice = mapChoice(choice)25+ return {26+ tools: tools.map((t) => ({27+ toolSpec: {28+ name: t.name,29+ ...(t.description ? { description: t.description } : {}),30+ inputSchema: { json: t.inputSchema as DocumentType },31+ },32+ })),33+ ...(toolChoice ? { toolChoice } : {}),34+ }35+}36+37+function mapChoice(38+ choice: ToolChoiceInput | undefined,39+): ToolChoice | undefined {40+ if (!choice || choice === 'auto') return { auto: {} }41+ if (choice === 'required') return { any: {} }42+ if (choice === 'none') return undefined43+ return { tool: { name: choice.name } }@@ -0,0 +33,21 @@33+ new Headers(init?.headers).forEach((v, k) => (headers[k] = v))34+ headers['host'] = url.host35+36+ const body = init?.body ?? undefined37+38+ // Construct a plain object satisfying the @smithy/types HttpRequest interface —39+ // no @smithy/protocol-http needed.40+ const request: HttpRequest = {41+ method: init?.method ?? 'GET',42+ protocol: url.protocol,43+ hostname: url.hostname,44+ path: url.pathname + url.search,45+ headers,46+ body,47+ }48+49+ const signed = await signer.sign(request)50+ return baseFetch(url.toString(), {51+ ...init,52+ headers: signed.headers as Record<string, string>,53+ })testing/e2e/README.md lines 189 to 197@@ -184,3 +184,12 @@184184 **Add to `tests/test-matrix.ts`** — mirror the support matrix185185 **No fixture changes needed** — aimock translates to correct wire format186186187+### Bedrock Converse coverage gap188+189+The `bedrock` and `bedrock-responses` providers in this matrix use `createBedrockText` with a `baseURL` pointing at aimock — they speak Bedrock's **OpenAI-compatible** endpoint, which aimock's OpenAI replay handles fine.190+191+The default `bedrock-converse` adapter (introduced later) uses `@aws-sdk/client-bedrock-runtime` and speaks AWS's **binary event-stream (`vnd.amazon.eventstream`) Converse protocol**, which `@copilotkit/aimock` does not currently mock. Adding `bedrock-converse` to the live matrix would fail without a Converse-capable aimock provider.192+193+**Coverage today:** the Converse translation layer (message converter, tool converter, stream processor, structured output, adapter) is covered by unit tests in `packages/ai-bedrock/tests/converse/` (64 tests). The OpenAI-compatible `bedrock` and `bedrock-responses` entries remain in the E2E matrix as-is.194+195+**Follow-up:** a Bedrock/Converse provider will be added to aimock to close this gap and enable full E2E coverage of the Converse path.
- Resolvedby tombeckenham@@ -0,0 +120,21 @@120+ const endpoint = this.clientConfig.baseURL121+ // The installed @aws-sdk/client-bedrock-runtime (v3.1057) exposes a122+ // first-class `token: TokenIdentity | TokenIdentityProvider` config123+ // field (HttpAuthSchemeInputConfig) for Bedrock API-key bearer auth —124+ // no custom requestHandler/middleware needed. SigV4 uses the credential125+ // provider.126+ if (resolved.kind === 'bearer') {127+ return new BedrockRuntimeClient({128+ region,129+ token: { token: resolved.token },130+ ...(endpoint ? { endpoint } : {}),131+ })132+ }133+ return new BedrockRuntimeClient({134+ region: resolved.region,135+ credentials: resolved.credentials,136+ ...(endpoint ? { endpoint } : {}),137+ })138+ })()139+ }140+ return this.clientPromise
tombeckenham reviewed
Resolvedby tombeckenham@@ -0,0 +77,21 @@77+ private clientPromise?: Promise<BedrockRuntimeClient>78+ private readonly clientConfig: BedrockConverseConfig79+80+ constructor(config: BedrockConverseConfig, model: TModel) {81+ super({}, model)82+ // Defer client construction and auth resolution: the AWS SDK is Node/83+ // server-only, so we must not pull it into the static graph here. The84+ // client (and its dynamic import) is built lazily on first SDK call.85+ this.clientConfig = config86+ }87+88+ /**89+ * Dynamically import `@aws-sdk/client-bedrock-runtime`. The specifier is held90+ * in a variable (not a string literal) so bundler dep scanners (e.g. Vite/91+ * esbuild optimizeDeps) cannot statically discover the AWS SDK and try to92+ * pre-bundle it for the browser — it would fail on the SDK's Node-only93+ * `fromTokenFile` export chain. The SDK is Node/server-only and is only94+ * reached on a real request. `typeof import(...)` is a type-only reference95+ * (erased at emit) so the imported members keep full typing.96+ */97+ protected importBedrockRuntime(): Promise<typeof BedrockRuntime> {tombeckenham reviewed
Resolvedby tombeckenham@@ -0,0 +471,21 @@471+ )472+473+ const toolConfig = options.tools474+ ? toToolConfig(convertTools(options.tools), 'auto')475+ : undefined476+477+ const inferenceConfig =478+ options.temperature !== undefined ||479+ options.topP !== undefined ||480+ options.maxTokens !== undefined481+ ? {482+ ...(options.temperature !== undefined && {483+ temperature: options.temperature,484+ }),485+ ...(options.topP !== undefined && { topP: options.topP }),486+ ...(options.maxTokens !== undefined && {487+ maxTokens: options.maxTokens,488+ }),489+ }490+ : undefined491+tombeckenham reviewed
OutdatedResolvedby tombeckenham@@ -0,0 +119,21 @@119+ }120+ }121+122+ if (isDocumentPart(part)) {123+ const { source } = part124+ if (!isDataSource(source)) {125+ throw new Error(126+ 'Bedrock Converse requires inline document bytes; URL document sources are not supported.',127+ )128+ }129+ return {130+ document: {131+ format: documentFormat(source.mimeType),132+ name: `document-${docIndex}`,133+ source: { bytes: base64ToBytes(source.value) },134+ },135+ }136+ }137+138+ // Fail loud for unsupported part types (audio, video, etc.)139+ const unsupported = (part as ContentPart).typetombeckenham reviewed
Resolvedby tombeckenham@@ -0,0 +53,21 @@53+ throw new Error(54+ 'No Bedrock API key found. Set BEDROCK_API_KEY (or ' +55+ 'AWS_BEARER_TOKEN_BEDROCK), pass `apiKey`, or use auth: "sigv4".',56+ )57+ }58+ }59+60+ return {61+ kind: 'sigv4',62+ region,63+ service: sigv4Service(endpoint),64+ // Lazy credential provider: the AWS SDK is Node/server-only, so we defer the65+ // dynamic import until SigV4 actually needs to resolve credentials. The66+ // specifier is held in a variable (not a string literal) so bundler dep67+ // scanners (e.g. Vite/esbuild optimizeDeps) cannot statically discover the68+ // AWS SDK and try to pre-bundle it for the browser — it would fail on the69+ // SDK's Node-only `fromTokenFile` export chain. `typeof import(...)` is a70+ // type-only reference (erased at emit) so we keep full typing.71+ credentials: async (...args) => {72+ const mod = '@aws-sdk/credential-providers'73+ const { fromNodeProviderChain } = (await import(tombeckenham reviewed
OutdatedResolvedby tombeckenham@@ -0,0 +529,21 @@529+ res.output && 'message' in res.output ? res.output.message : undefined530+ const content: Array<ContentBlock> = message?.content ?? []531+ for (const block of content) {532+ if ('toolUse' in block && block.toolUse) {533+ // Prefer the forced tool by name, but fall back to any toolUse block so a534+ // provider that omits/renames the tool name still yields its structured535+ // input rather than failing loud on a name mismatch.536+ if (537+ block.toolUse.name === STRUCTURED_TOOL_NAME ||538+ block.toolUse.name === undefined539+ ) {540+ return block.toolUse.input541+ }542+ }543+ }544+ // Second pass: accept the first toolUse block regardless of name.545+ for (const block of content) {546+ if ('toolUse' in block && block.toolUse) {547+ return block.toolUse.input548+ }549+ }OutdatedResolvedby tombeckenham@@ -0,0 +56,21 @@56+ * (config.apiKey → BEDROCK_API_KEY → AWS_BEARER_TOKEN_BEDROCK → SigV4). No57+ * eager env-key fetch here, so `auth: 'sigv4'` never throws for a missing key.58+ *59+ * Default path → Converse adapter; opt-in via `api: 'chat'` or `api: 'responses'`.60+ */61+function build(62+ model: BedrockConverseModels,63+ config?: BedrockClientConfig & { api?: 'converse' | 'chat' | 'responses' },64+): AnyBedrockAdapter {65+ if (config?.api === 'responses') {66+ const rest = stripApi(config)67+ if (!isResponsesModel(model)) {68+ throw new Error(69+ `Model "${model}" is not available on the Bedrock Responses API. ` +70+ `Responses-capable models: ${BEDROCK_RESPONSES_MODELS.join(', ')}.`,71+ )72+ }73+ return new BedrockResponsesTextAdapter(rest, model)74+ }75+ if (config?.api === 'chat') {76+ return new BedrockTextAdapter(stripApi(config), model as BedrockChatModels)OutdatedResolvedby tombeckenham@@ -0,0 +53,21 @@53+54+### With Explicit API Key55+56+```typescript57+import { createBedrockText } from '@tanstack/ai-bedrock'58+59+const adapter = createBedrockText(60+ 'us.amazon.nova-pro-v1:0',61+ 'your-bedrock-api-key',62+ { region: 'us-west-2' },63+)64+```65+66+## Authentication67+68+Auth is resolved in this order:69+70+Explicit `apiKey` passed to the factory71+`BEDROCK_API_KEY` environment variable72+`AWS_BEARER_TOKEN_BEDROCK` environment variable73+SigV4 via the AWS credential chain (requires `pnpm add aws-sigv4-fetch`)OutdatedResolvedby tombeckenham@@ -0,0 +136,21 @@136+```typescript137+import { createBedrockText } from '@tanstack/ai-bedrock'138+139+const adapter = createBedrockText(140+ 'us.anthropic.claude-haiku-4-5-20251001-v1:0',141+ 'your-bedrock-api-key',142+ { region: 'us-west-2' },143+)144+```145+146+## Chat Completions API (`api: 'chat'`)147+148+Set `api: 'chat'` to use Bedrock's OpenAI-compatible Chat Completions endpoint. Returns a `bedrock` adapter.149+150+**Model scope:** Open-weight models only — gpt-oss, DeepSeek V3.x, Gemma, Qwen, Mistral open models, GLM, and similar. Claude, Nova, and Llama are NOT available on this endpoint. See the [AWS API compatibility matrix](https://docs.aws.amazon.com/bedrock/latest/userguide/models-api-compatibility.html) for the current list.151+152+```typescript153+import { bedrockText } from '@tanstack/ai-bedrock'154+import { chat } from '@tanstack/ai'155+156+const adapter = bedrockText('openai.gpt-oss-mini-1:0', {OutdatedResolvedby tombeckenham@@ -0,0 +8,21 @@8+export function sigv4Service(endpoint: BedrockEndpoint): string {9+ return endpoint === 'mantle' ? 'bedrock-mantle' : 'bedrock'10+}11+12+export type ResolvedBedrockAuth =13+ | { kind: 'bearer'; token: string }14+ | {15+ kind: 'sigv4'16+ region: string17+ service: string18+ credentials: AwsCredentialIdentityProvider19+ }20+21+const DEFAULT_REGION = 'us-east-1'22+23+function readApiKeyFromEnv(): string | undefined {24+ try {25+ return getApiKeyFromEnv('BEDROCK_API_KEY')26+ } catch {27+ try {28+ return getApiKeyFromEnv('AWS_BEARER_TOKEN_BEDROCK')OutdatedResolvedby tombeckenham@@ -0,0 +178,21 @@178+ }179+ }180+ // null → no text blocks181+182+ // Append toolUse blocks for assistant tool calls183+ if (msg.role === 'assistant' && msg.toolCalls) {184+ for (const call of msg.toolCalls) {185+ let input: DocumentType = {}186+ try {187+ const parsed = JSON.parse(call.function.arguments || '{}') as unknown188+ if (189+ parsed !== null &&190+ typeof parsed === 'object' &&191+ !Array.isArray(parsed)192+ ) {193+ input = parsed as DocumentType194+ }195+ } catch {196+ // Malformed / partial JSON — fall back to empty object so the call197+ // can still be forwarded rather than crashing the whole request.198+ input = {}OutdatedResolvedby tombeckenham@@ -0,0 +161,21 @@161+ ): Promise<ConverseCommandOutput> {162+ const { ConverseCommand } = await this.importBedrockRuntime()163+ const client = await this.getClient()164+ return client.send(new ConverseCommand(input))165+ }166+167+ // ---------------------------------------------------------------------------168+ // Public adapter surface169+ // ---------------------------------------------------------------------------170+171+ async *chatStream(172+ options: TextOptions<TProviderOptions>,173+ ): AsyncIterable<StreamChunk> {174+ try {175+ options.logger.request(176+ `activity=chat provider=${this.name} model=${this.model} messages=${options.messages.length} tools=${options.tools?.length ?? 0} stream=true`,177+ { provider: this.name, model: this.model },178+ )179+ const input = this.buildInput(options)180+ const stream = await this.sendStream(input)181+ yield* processConverseStream(stream, () => this.generateId())Resolvedby tombeckenham@@ -0,0 +184,21 @@184+185+ if ('contentBlockStop' in ev) {186+ const stopIndex = ev.contentBlockStop?.contentBlockIndex ?? 0187+ const toolCall = toolCallsByIndex.get(stopIndex)188+ if (toolCall?.started) {189+ yield {190+ type: EventType.TOOL_CALL_END,191+ toolCallId: toolCall.id,192+ toolCallName: toolCall.name,193+ toolName: toolCall.name,194+ timestamp: Date.now(),195+ }196+ toolCallsByIndex.delete(stopIndex)197+ }198+ continue199+ }200+201+ if ('messageStop' in ev) {202+ const stopReason = ev.messageStop?.stopReason203+ // Map Converse stopReason to AG-UI's narrower finishReason vocabulary.204+ finishReason =tombeckenham approved these changes
KevinVandy approved these changes
AlemTuzlak merged this27ba4c7
AlemTuzlak closed this
Sign in to join this conversation.
Note
Reviews paused#
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.Use the checkboxes below for quick actions:
📝 Walkthrough
Walkthrough#
Adds a new
@tanstack/ai-bedrockpackage with Converse, Chat Completions, and Responses adapters, generated model metadata, SigV4 authentication support, documentation updates, and E2E provider wiring.Changes#
Bedrock Adapter Implementation
packages/ai-bedrock/package.json,packages/ai-bedrock/tsconfig.json,packages/ai-bedrock/vite.config.ts,packages/ai-bedrock/README.md,package.json,knip.jsonscripts/bedrock-api-compatibility.json,scripts/fetch-bedrock-models.ts,packages/ai-bedrock/src/model-catalog.generated.ts,packages/ai-bedrock/src/model-meta.ts,packages/ai-bedrock/src/message-types.ts,packages/ai-bedrock/src/text/*,packages/ai-bedrock/tests/model-meta.test.tspackages/ai-bedrock/src/utils/auth.ts,packages/ai-bedrock/src/utils/openai-sigv4-fetch.ts,packages/ai-bedrock/src/utils/client.ts,packages/ai-bedrock/src/utils/index.ts,packages/ai-bedrock/tests/auth.test.ts,packages/ai-bedrock/tests/client.test.ts,packages/ai-bedrock/tests/openai-sigv4-fetch.test.tspackages/ai-bedrock/src/index.ts,packages/ai-bedrock/tests/factory.test.ts,packages/ai-bedrock/tests/adapter.test.tspackages/ai-bedrock/src/adapters/text.ts,packages/ai-bedrock/src/adapters/responses-text.ts,packages/ai-bedrock/tests/adapter.test.tspackages/ai-bedrock/src/adapters/converse-text.ts,packages/ai-bedrock/src/converse/*,packages/ai-bedrock/tests/converse/*docs/adapters/bedrock.md,docs/config.json,docs/getting-started/overview.md,.claude/*,packages/ai/skills/ai-core/adapter-configuration/SKILL.md,testing/e2e/README.mdtesting/e2e/package.json,testing/e2e/src/lib/types.ts,testing/e2e/src/lib/providers.ts,testing/e2e/src/lib/feature-support.ts,testing/e2e/tests/test-matrix.tsEstimated code review effort: 🎯 4 (Complex) | ⏱️ ~60 minutes
Possibly related PRs#
Poem#
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share