-
Notifications
You must be signed in to change notification settings - Fork 172
fix: deduplicate model ids in single response of azure #1134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: deduplicate model ids in single response of azure #1134
Conversation
📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughRemoves an early-return shortcut in aggregate list-model responses so deduplication always runs; also adds a formatting-only newline in the Azure models response file. No exported APIs changed. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related issues
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📚 Learning: 2025-12-09T17:07:42.007ZApplied to files:
🔇 Additional comments (2)
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 |
🧪 Test Suite AvailableThis PR can be tested by a repository admin. |
99408a3 to
484a234
Compare
Merge activity
|

Summary
Fix duplicate models in Azure provider response by adding deduplication logic based on model IDs.
Changes
seenIDsmap to track which model IDs have already been processedType of change
Affected areas
How to test
Test the Azure provider's model listing functionality to ensure no duplicate models appear:
You can also test manually by configuring the Azure provider with models that have multiple aliases and verifying that each model only appears once in the response.
Breaking changes
Related issues
Fixes an issue where Azure models could appear multiple times in model listings due to alias matching.
Security considerations
No security implications.
Checklist