diff --git a/backend/app/alembic/versions/063_seed_stt_tts_model_configs.py b/backend/app/alembic/versions/063_seed_stt_tts_model_configs.py index 7c6405f3a..23070924a 100644 --- a/backend/app/alembic/versions/063_seed_stt_tts_model_configs.py +++ b/backend/app/alembic/versions/063_seed_stt_tts_model_configs.py @@ -78,7 +78,10 @@ def upgrade(): "CREATE INDEX ix_model_config_output_modalities ON global.model_config USING gin (output_modalities)" ) - # 6. Seed rows — pricing per 1M tokens (USD): response/batch = text i/o; audio = audio-modal i/o + op.execute( + "SELECT setval(pg_get_serial_sequence('global.model_config', 'id'), MAX(id)) FROM global.model_config" + ) + op.execute( """ INSERT INTO global.model_config