Commit graph

9 commits

Author SHA1 Message Date
michael
a447994375 feat: Add per-pet-type prompt templates for song generation
Replace the generic song generation prompt with pet-specific prompt
templates. Each pet type (Dog, Cat, Fish, Bird, Hamster, Gerbil,
Guinea Pig, Rabbit, Bearded Dragon, Leopard Gecko, Corn Snake) now
has its own tailored prompt with pet-specific behaviors and content
restrictions.

Also fix typo: "Beared Dragon" → "Bearded Dragon" in schemas.py and
home.js. The prompts.py file includes backwards compatibility for the
old spelling to handle any pending database records.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 09:47:44 -06:00
michael
9354085694 fix: Remove tags field from Sonauto API request
Sonauto rejects custom tag values. The prompt already contains all
necessary style and content guidance, so tags are not needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 08:45:53 -06:00
michael
56bc3d6059 fix: Move music vibe from tags to prompt for Sonauto API
Sonauto only accepts specific predefined tags. The custom frontend
music vibes (Hip-Hop, Boy Band, etc.) were being rejected with 422.

Now using fixed tags ["love song", "valentine"] and including the
music vibe in the prompt text instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 08:43:10 -06:00
michael
9c5b054dcc feat: Add Sonauto streaming audio on waiting page
Enable users to listen to their song while video generation continues
in the background. Backend proxies authenticated Sonauto stream API
since HTML audio elements cannot send auth headers.

- Add streaming_ready_at column to track when stream becomes available
- Enable streaming in Sonauto API request payload
- Handle GENERATING_STREAMING_READY webhook status
- Add /api/stream/{session_id} proxy endpoint using httpx
- Update StatusResponse with streaming_ready and task_id fields
- Add audio player UI with autoplay fallback for mobile
- Fade out audio gracefully before redirect to result page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 08:23:14 -06:00
michael
318a1e1d8d celery: fix invalid Sonauto tags
Only use the music_vibe as the tag - "love song" and "valentine"
are not valid Sonauto API tags.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 08:22:59 -06:00
michael
3c7f4142aa celery: add error logging for Sonauto API responses
Also update CLAUDE.md to require commit+push after changes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 08:20:40 -06:00
michael
1b2bc8497c celery: bypass credit check for testing
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 08:11:31 -06:00
michael
70b0f665cb celery: fix task autodiscovery 2026-01-31 07:30:26 -06:00
michael
9d53adaaf3 Add backend API, video generator, and frontend updates
- Add Python/FastAPI backend with Celery workers
- Add video generation with FFmpeg (spinning record animation)
- Add API endpoints: submissions, status polling, webhook, results
- Add database schema and Alembic migrations
- Update frontend pages with API integration
- Add project documentation and spec

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 10:31:58 -06:00