Repository navigation
chore: improve huggingface provider support - #2322
Conversation
|
The existing huggingface configuration was completely incorrect, and we confirmed that it works very well after modification. |
There was a problem hiding this comment.
Code Review
This pull request updates the HuggingFace provider configuration to support dynamic model discovery and refreshes the audio registry with newer ASR and TTS models. Feedback suggests retaining a few 'seed' models in the configuration to provide a fallback if remote discovery fails and highlights the need for automated tests to comply with the repository's style guide for production code changes.
1f27c34
into
cheaper-inference:release/v3.8.0
|
Obrigado @backryun pela contribuição! 🙌 O fix do HuggingFace foi integrado na Este fix estará no OmniRoute v3.8.0. 🚀 |
Integrated into release/v3.8.0 — migrates HuggingFace to router.huggingface.co/v1 endpoint, adds dynamic model discovery, refreshes ASR/TTS catalog
Integrated into release/v3.8.0 — migrates HuggingFace to router.huggingface.co/v1 endpoint, adds dynamic model discovery, refreshes ASR/TTS catalog
Integrated into release/v3.8.0 — migrates HuggingFace to router.huggingface.co/v1 endpoint, adds dynamic model discovery, refreshes ASR/TTS catalog
Summary
/v1/modelsdiscovery support so “Import from /models” fetches chat models from the Hugging Face router instead of falling back to unrelated local audio models.Validation
npm run lintnpm run test:unitnpm run test:coverage>= 60%for statements, lines, functions, and branchesValidation performed:
npx prettier --write open-sse/config/audioRegistry.ts open-sse/config/providerRegistry.ts 'src/app/api/providers/[id]/models/route.ts'node --import tsx/esm -e "await import('./open-sse/config/audioRegistry.ts'); await import('./open-sse/config/providerRegistry.ts'); console.log('changed registry imports ok')"prettier,eslint --fix, docs sync, any-budget, env/docs sync, CLI i18n, and UI i18n coverage checks.npm run typecheck:core -- --pretty falsewas attempted but failed on existingopen-sse/services/contextManager.tsnevertype errors unrelated to this change.Tests Added Or Updated
Coverage Notes
open-sse/provider registry data and a provider model-discovery route undersrc/.Reviewer Notes
https://router.huggingface.co/v1/chat/completions.https://router.huggingface.co/v1/models.