Merge pull request #95 from CelebrityPunks/fix/model-size-selection-ignored

Fix: selecting 0.6B model still downloads and uses 1.7B
This commit is contained in:
Jamie Pine
2026-02-23 11:12:12 -08:00
committed by GitHub
+2
View File
@@ -599,6 +599,8 @@ async def generate_speech(
profile = await profiles.get_profile(data.profile_id, db)
if not profile:
raise HTTPException(status_code=404, detail="Profile not found")
# Generate audio
# Resolve model size and load the correct model FIRST.
# This must happen before create_voice_prompt_for_profile because that