fix: add fallback download URLs and mid-stream retry for model downloads#407
Open
dcondrey wants to merge 1 commit intoZackriya-Solutions:mainfrom
Open
fix: add fallback download URLs and mid-stream retry for model downloads#407dcondrey wants to merge 1 commit intoZackriya-Solutions:mainfrom
dcondrey wants to merge 1 commit intoZackriya-Solutions:mainfrom
Conversation
The primary download server (meetily.towardsgeneralintelligence.com) is failing TLS handshakes, causing all first-run model downloads to fail during onboarding. This breaks both Parakeet transcription and Gemma summary model setup for new users. Changes: - Add HuggingFace fallback URLs for Parakeet v3 (istupakov) and Gemma models (ggml-org), verified publicly accessible - Wrap entire download (connection + streaming) in URL fallback loop so mid-stream failures (timeout, dropped connection) also trigger fallback instead of just erroring out - Re-check file size before each URL attempt so resume works correctly after partial downloads from a failed server - Fix bug where 416 Range Not Satisfiable retry used the original 416 response for streaming instead of the fresh retry response - Improve error messages to say "server issue" instead of misleading "check your internet" when all download servers are unreachable Relates to Zackriya-Solutions#405, Zackriya-Solutions#318
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.
Summary
meetily.towardsgeneralintelligence.com) is failing TLS handshakes, causing all first-run model downloads to fail during onboarding for new usersChanges
parakeet_engine.rs— Parakeet transcription model download:base_url(single) →base_urls(Vec) with HuggingFace fallback (istupakov/parakeet-tdt-0.6b-v3-onnx)'url_loop— mid-stream failures continue to next URL with resumeexisting_sizebefore each URL attempt so resume works after partial downloadsrespso streaming reads from the correct responsemodel_manager.rs— Gemma summary model download:'url_looprestructure wrapping connection + streamingmodels.rs— Model definitions:fallback_urls: Vec<String>field toModelDef(with#[serde(default)])ggml-org/gemma-3-1b-it-GGUF(verified public, no auth)ggml-org/gemma-3-4b-it-GGUF(verified public, no auth)Verified fallback URLs
huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnxhuggingface.co/ggml-org/gemma-3-1b-it-GGUFhuggingface.co/ggml-org/gemma-3-4b-it-GGUFRelated issues
Test plan