Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #285 +/- ##
==========================================
+ Coverage 91.20% 91.52% +0.32%
==========================================
Files 19 19
Lines 1592 1759 +167
==========================================
+ Hits 1452 1610 +158
- Misses 140 149 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks for the fix @DineshThumma9 . I think I updated the logic so that initialization no longer mislabels invalid models as lacking function-calling support, and invalid-model errors are raised later at Before I merge it, could you please verify that this works for you as expected? Thanks. |
|
Thanks @wang-boyu! I ran it locally too and it works as expected. No problems on my end. (Also, apologies—I closed this by mistake a moment ago!) |
|
No worries at all, and thanks for the quick confirmation. Merging this now. |
Note
Use this template for bug fixes only. For enhancements/new features, use the feature template and get maintainer approval in an issue/discussion before opening a PR.
Pre-PR Checklist
Summary
When given an invalid model name it throws Error with message not a function calling model it might trick user in thinking their model is valid but not function calling and does'nt address actual model invalid issue
Bug / Issue
Fix : #284
Implementation
I added an model validity check right after api key check i used
wrapped in try and except block and raise ValueError when caught an error and show a descriptive message
Testing
Additional Notes