Fix MusicGPT integration: v6/v6-pro models, per-conversion webhooks, store conversion IDs

This commit is contained in:
Troll (Hermes Agent) 2026-08-10 22:53:26 +00:00
parent f185232907
commit 5443c464bd
5 changed files with 81 additions and 43 deletions

View file

@ -55,6 +55,8 @@ CREATE TABLE IF NOT EXISTS requests (
stems_link TEXT,
stems_interest INTEGER DEFAULT 0,
musicgpt_task_id TEXT,
musicgpt_conversion_id_1 TEXT,
musicgpt_conversion_id_2 TEXT,
musicgpt_status TEXT,
musicgpt_cost REAL,
musicgpt_error TEXT,
@ -121,10 +123,10 @@ def init_db():
'customer_approved', 'approval_notified_at', 'preview_sent_at',
'delivery_sent_at', 'square_payment_ref', 'admin_alert_email',
'player_token', 'revision_count', 'revision_note', 'operator_notes',
'stems_link', 'stems_interest', 'musicgpt_task_id', 'musicgpt_status',
'musicgpt_cost', 'musicgpt_error', 'album_cover_url', 'song_a_wav_path',
'song_b_wav_path', 'deliver_wav', 'stems_task_id', 'stems_status',
'stems_cost', 'stems_url', 'stems_error'
'stems_link', 'stems_interest', 'musicgpt_task_id', 'musicgpt_conversion_id_1',
'musicgpt_conversion_id_2', 'musicgpt_status', 'musicgpt_cost', 'musicgpt_error',
'album_cover_url', 'song_a_wav_path', 'song_b_wav_path', 'deliver_wav',
'stems_task_id', 'stems_status', 'stems_cost', 'stems_url', 'stems_error'
],
'revision_history': [
'id', 'created_at', 'request_id', 'revision_count', 'note',