Skip to content

Comments

feat: Improve model identification and deduplication#208

Merged
IonesioJunior merged 1 commit intomainfrom
fix-model-selector-duplicate-name-matching
Feb 18, 2026
Merged

feat: Improve model identification and deduplication#208
IonesioJunior merged 1 commit intomainfrom
fix-model-selector-duplicate-name-matching

Conversation

@IonesioJunior
Copy link
Member

Summary

This update enhances model handling by introducing a unique identifier based on full_path and updating deduplication logic across components and data sources to correctly handle models with identical slugs from different owners.

Changes

  • Added getModelUniqueId function in model-selector.tsx and use-models.ts to generate a consistent, unique ID for models.
  • Updated model comparison logic to use the new unique ID, ensuring proper selection and deduplication.
  • Modified endpoint-utils.ts to deduplicate data sources and models based on full_path instead of slug, preventing conflicts between models with the same slug from different owners.

Notes

These changes improve robustness in model selection and ensure data integrity when handling models with overlapping slugs.

… update deduplication logic to handle models with same slug but different owners
@IonesioJunior IonesioJunior merged commit f4893a6 into main Feb 18, 2026
21 checks passed
@IonesioJunior IonesioJunior deleted the fix-model-selector-duplicate-name-matching branch February 18, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant