Repository navigation
fix(providers): centralize Google endpoint classification - #59556
Conversation
Greptile SummaryThis PR centralizes Google-family endpoint classification by introducing Key observations:
Confidence Score: 4/5
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4788e90f65
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aebd3b24af
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
* fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
…9556) * fix(providers): centralize Google endpoint classification * fix(providers): tighten Google endpoint fallback parsing * fix(security): harden provider endpoint fallback parsing
Summary
src/agents/provider-attribution.ts, exported the minimal classifier seam throughopenclaw/plugin-sdk/provider-http, and migrated Gemini normalization plus Anthropic Vertex region parsing onto that seam.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause / Regression History (if applicable)
git blame, prior PR, issue, or refactor if known): follows the provider request-policy work landed in refactor(providers): centralize request attribution policy #59433, refactor(providers): add internal request config seam #59454, fix(providers): centralize media request shaping #59469, and fix(providers): centralize stream request headers #59542.Regression Test Plan (if applicable)
src/agents/provider-attribution.test.ts,extensions/google/api.test.ts,extensions/anthropic-vertex/region.test.ts,src/infra/google-api-base-url.test.tsUser-visible / Behavior Changes
Diagram (if applicable)
Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, explain risk + mitigation:Repro + Verification
Environment
baseUrlvs native Google/Vertex hostsSteps
pnpm buildandpnpm check.Expected
Actual
Evidence
Human Verification (required)
google-generative-aiandgoogle-vertexfor native hosts; Gemini normalization still appends/v1betaonly for native Gemini; Anthropic Vertex resolves regional/global hosts and ignores proxies.global; proxy Gemini/Vertex URLs do not get native classification.Review Conversations
Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoRisks and Mitigations
provider-httpbroadens the public SDK surface.buildexport verification plus focused tests.