feat: add CLI versioning header and update client initialization#29
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughGladiaClient's constructor now accepts a cliVersion parameter, stored as a new CLIVersion field defaulting to "dev". A new setRequestHeaders method sets both x-gladia-key and x-gladia-version headers and is now used by UploadFile, createAndExecuteRequest, and ListTranscriptions. Callers and tests updated accordingly. ChangesCLI version header propagation
Estimated code review effort: 2 (Simple) | ~12 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Add missing header to track usage and versions of the CLI
Summary by CodeRabbit