🔧(summary) extract hardcoded title to configurable setting

Replace hardcoded title with configurable option to enable custom
branding for different deployments of the microservice.
This commit is contained in:
lebaudantoine
2025-07-11 10:38:36 +02:00
committed by aleb_the_flash
parent e87d0519ff
commit 3368a9b6af
2 changed files with 4 additions and 1 deletions

View File

@@ -315,7 +315,7 @@ def process_audio_transcribe_summarize_v2(
metadata_manager.track_transcription_metadata(task_id, transcription)
data = {
"title": "Transcription",
"title": settings.document_title,
"content": formatted_transcription,
"email": email,
"sub": sub,

View File

@@ -45,6 +45,9 @@ class Settings(BaseSettings):
webhook_api_token: str
webhook_url: str
# Output related settings
document_title: Optional[str] = "Transcription"
# Sentry
sentry_is_enabled: bool = False
sentry_dsn: Optional[str] = None