Conversation
…dropping them Co-authored-by: Tony Coder <407243179@qq.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan includes up to 8 reviews per rolling hour; 5 remain after this review. WalkthroughThe change updates Bedrock and SageMaker parameter conversion to preserve explicit ChangesSampling parameter conversion
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change preserves explicit zero values for temperature and top_p so greedy decoding is requested as intended; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 31 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Brings in upstream's merges of our mozilla-ai#1291/mozilla-ai#1292/mozilla-ai#1310 plus mozilla-ai#1297, mozilla-ai#1299, mozilla-ai#1301, mozilla-ai#1302, mozilla-ai#1303, mozilla-ai#1305. Carried-until-merged fork work stays: mozilla-ai#1294 (gemini reasoning_effort=none), mozilla-ai#1308 (aresponses timeout), mozilla-ai#1309 (gemini native tool dicts), and the mozilla-ai#1300 carry. One conflict in tests/unit/test_responses.py: kept our mozilla-ai#1308 timeout test next to upstream's flatten test. Unit suite: 2234 passed. Claude-Session: https://claude.ai/code/session_018D3FGNvb1hRZQmsXFoA44J
Description
Bedrock and SageMaker
_convert_paramsgatedtemperatureandtop_pon truthiness, so0.0was dropped and the request used the model default (e.g. Claude 1.0 on Bedrock) instead of greedy decoding. Other providers already useis not None.max_tokensandstopstay on truthiness:0and empty sequences are rejected by both providers.PR Type
Relevant issues
No open issue. Distinct from #1292 (Anthropic tool_choice) and our #1296/#1297/#1298.
Checklist
AI Usage Information
uv run pytest tests/unit→ 2161 passed, 69 skipped. Target files fail on current main (KeyError: inferenceConfig/ missing keys) and pass after.Summary by CodeRabbit
Bug Fixes
Tests