fix(providers): preserve fallback base URLs - #1345
Conversation
|
@cmondragon023 is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughFallback provider creation now resolves OpenAI and Anthropic base URLs from their environment variables. Tests capture provider constructor values and verify configured and absent fallback base URL behavior. ChangesFallback base URL resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Fallback OpenAI and Anthropic providers now use their own configured endpoints instead of inheriting the primary provider endpoint, with coverage for configured and absent overrides. The change is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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. Comment |
Summary
OPENAI_BASE_URLandANTHROPIC_BASE_URLindependently for fallback providersVerification
npx vitest run test/fallback-model-resolution.test.ts— 8 tests passednpm test— full non-integration suite passed outside the restricted sandboxnpm run buildgit diff --check upstream/main...HEADCloses #1338
Summary by CodeRabbit