feat: add support for supported ai provider models#353
Merged
andrii-bodnar merged 1 commit intocrowdin:masterfrom Dec 10, 2025
Merged
Conversation
* Created additional classes: AiSupportedModel - the model, AiSupportedModelResponseObject - for mapping as a ResponseObject, and AiSupportedModelResponseList - for mapping as a ResponseList; * Added support for the new GET endpoint per requirements; * Added a new JSON response file that matches the body response you would get from calling the new endpoint; * Unit-tested the new method to ensure correct functionality.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #353 +/- ##
============================================
+ Coverage 93.29% 93.32% +0.04%
- Complexity 904 906 +2
============================================
Files 202 203 +1
Lines 3261 3276 +15
Branches 70 70
============================================
+ Hits 3042 3057 +15
Misses 183 183
Partials 36 36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andrii-bodnar
approved these changes
Dec 10, 2025
Member
andrii-bodnar
left a comment
There was a problem hiding this comment.
@andreichirila0712 thank you for the contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds support for AI API. (closes: #349)
Changes:
AiSupportedModel.classto model the new resource,AiSupportedModelResponseObject.classto as aResponseObject, andAiSupportedModelResponseList.classto map as aResponseList;GETendpoint (listing) per requirements;Notes:
price, ormodalitiesand so on, I implemented them aspublic inner classesforAiSupportedModel.class, with addition that theModalityConfig.classhas an inner class as well, which makes it a bit nested. I considered making them "external" as separate files not necessarily since this new resource is only used in the context of this new API endpoint;