Skip to content

Rename injected transformer provider parameter to provider-id#2687

Merged
Krishanx92 merged 4 commits into
mainfrom
multi-provider-routing
Jul 15, 2026
Merged

Rename injected transformer provider parameter to provider-id#2687
Krishanx92 merged 4 commits into
mainfrom
multi-provider-routing

Conversation

@Arshardh

Copy link
Copy Markdown
Contributor

No description provided.

Aakashwije and others added 2 commits July 15, 2026 11:26
…er-provider-id

[AI Gateway] Rename injected transformer provider parameter to provider-id
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bdc00812-216b-4323-80a4-04ae5b4f970f

📥 Commits

Reviewing files that changed from the base of the PR and between b5c2b83 and 238e5ef.

📒 Files selected for processing (3)
  • gateway/examples/openai-multi-provider-proxy.yaml
  • gateway/gateway-controller/pkg/utils/llm_transformer.go
  • gateway/gateway-controller/pkg/utils/llm_transformer_multiprovider_test.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • gateway/gateway-controller/pkg/utils/llm_transformer_multiprovider_test.go
  • gateway/gateway-controller/pkg/utils/llm_transformer.go

📝 Walkthrough

Walkthrough

The additional provider transformer now passes and validates the selected upstream using the providerId parameter instead of id. Related comments and the multiprovider test assertion were updated accordingly.

Changes

Multi-provider transformer routing

Layer / File(s) Summary
Update providerId contract
gateway/gateway-controller/pkg/utils/llm_transformer.go, gateway/gateway-controller/pkg/utils/llm_transformer_multiprovider_test.go, gateway/examples/openai-multi-provider-proxy.yaml
The transformer policy uses providerId for the selected upstream name, with documentation, example comments, and test expectations updated.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: krishanx92, renuka-fernando, anugayan, chamilaadhi, malinthaprasan

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing entirely and does not include any required template sections or details. Add the full template sections: Purpose, Goals, Approach, User stories, Documentation, Automation tests, Security checks, Samples, Related PRs, and Test environment.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: renaming the injected transformer provider parameter.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ 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 multi-provider-routing

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.2)

level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain modules listed in go.work or their selected dependencies"


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

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

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 15, 2026
Aakashwije and others added 2 commits July 15, 2026 13:24
…er-provider-id-camelcase

     Pull requests list [AI Gateway] Rename injected transformer provider parameter to providerId
@Krishanx92
Krishanx92 merged commit 81c19c6 into main Jul 15, 2026
12 checks passed
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.

3 participants