mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 19:40:50 +00:00
Some checks failed
Development Build / extract-version (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Development Build / build-regular (push) Has been cancelled
Development Build / build-single (push) Has been cancelled
Development Build / summary (push) Has been cancelled
* feat(podcasts): integrate model registry for profiles and credential passthrough Replace loose provider/model string fields with record<model> references in podcast profiles, enabling credential passthrough to podcast-creator. Backend: - EpisodeProfile: outline_llm, transcript_llm (record<model>) replace outline_provider/outline_model strings. New language field (BCP 47). - SpeakerProfile: voice_model (record<model>) replaces tts_provider/ tts_model strings. Per-speaker voice_model override support. - Migration 14: schema changes making legacy fields optional, adding new record<model> fields. - Data migration (migration.py): auto-converts legacy profiles to model registry references on startup. Idempotent. - podcast_commands.py: resolves credentials for ALL profiles before calling podcast-creator. - New /api/languages endpoint (pycountry + babel) with BCP 47 locale codes (pt-BR, en-US, etc.). Frontend: - Episode/speaker profile forms use ModelSelector instead of manual provider/model dropdowns. - Language dropdown with BCP 47 codes in episode profile form. - Per-speaker TTS voice model override in speaker profile form. - "Templates" tab renamed to "Profiles". - Setup required badge on unconfigured profiles. - i18n updated across all 8 locales. Closes #486, closes #552 * fix(i18n): remove unused legacy podcast provider/model keys Remove 10 orphaned i18n keys across all 8 locales that were left behind after replacing manual provider/model dropdowns with ModelSelector. * fix: address review violations in podcast model registry - P1: Remove profiles with failed model resolution from dicts to prevent podcast-creator validation errors on unrelated profiles - P2: Use centralized QUERY_KEYS.languages instead of inline key - P3: Fix ISO 639-1 → BCP 47 in model field description and CLAUDE.md - P3: Update "templates" → "profiles" in locale string values (all 8) * chore: bump version to 1.8.0
27 lines
1.4 KiB
Text
27 lines
1.4 KiB
Text
-- Migration 14: Podcast profiles model registry integration
|
|
-- Adds record<model> references to replace loose provider/model strings
|
|
-- Adds language field to episode_profile
|
|
-- Adds per-speaker TTS override support
|
|
|
|
-- EPISODE PROFILE
|
|
-- Legacy fields: make optional (app ignores, preserved for data migration)
|
|
DEFINE FIELD OVERWRITE outline_provider ON TABLE episode_profile TYPE option<string>;
|
|
DEFINE FIELD OVERWRITE outline_model ON TABLE episode_profile TYPE option<string>;
|
|
DEFINE FIELD OVERWRITE transcript_provider ON TABLE episode_profile TYPE option<string>;
|
|
DEFINE FIELD OVERWRITE transcript_model ON TABLE episode_profile TYPE option<string>;
|
|
|
|
-- New fields: reference to Model registry
|
|
DEFINE FIELD IF NOT EXISTS outline_llm ON TABLE episode_profile TYPE option<record<model>>;
|
|
DEFINE FIELD IF NOT EXISTS transcript_llm ON TABLE episode_profile TYPE option<record<model>>;
|
|
DEFINE FIELD IF NOT EXISTS language ON TABLE episode_profile TYPE option<string>;
|
|
|
|
-- SPEAKER PROFILE
|
|
-- Legacy fields: make optional
|
|
DEFINE FIELD OVERWRITE tts_provider ON TABLE speaker_profile TYPE option<string>;
|
|
DEFINE FIELD OVERWRITE tts_model ON TABLE speaker_profile TYPE option<string>;
|
|
|
|
-- New field: reference to Model registry (profile-level)
|
|
DEFINE FIELD IF NOT EXISTS voice_model ON TABLE speaker_profile TYPE option<record<model>>;
|
|
|
|
-- Per-speaker TTS override
|
|
DEFINE FIELD IF NOT EXISTS speakers.*.voice_model ON TABLE speaker_profile TYPE option<record<model>>;
|