chore: sync sdk output for unified single-file upload guard#424
Conversation
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #424 +/- ##
=======================================
Coverage 91.75% 91.75%
=======================================
Files 105 105
Lines 9542 9542
=======================================
Hits 8755 8755
Misses 787 787
🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughConditionalized multipart file payload construction moved into several audio client methods (voiceprint_groups, its features, transcriptions, and voices): files are now set to {"file": _try_fix_file(file)} only when a truthy file is provided; otherwise files is an empty dict. No public signatures changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
…uard (#65) ## Summary - remove files_before_body from OperationMapping config schema - simplify Python operation renderer to always render files assignment after body preparation - remove all files_before_body entries from config/generator.yaml - optimize single-file upload rendering: always use guarded assignment (`if file else {}`) for consistent behavior across required/optional file fields - update renderer test coverage to assert the new fixed ordering and unified file guard expression ## Validation - ./scripts/fmt.sh - ./scripts/lint.sh - ./scripts/test.sh (coverage: 83.2%) - ./scripts/build.sh ## Downstream PR - coze-py: coze-dev/coze-py#424
Summary
coze-sdk-genfor single-file upload renderingfiles = {"file": _try_fix_file(file)} if file else {}Generator change
Changed SDK files
Validation
Summary by CodeRabbit