🔧(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:
committed by
aleb_the_flash
parent
e87d0519ff
commit
3368a9b6af
@@ -315,7 +315,7 @@ def process_audio_transcribe_summarize_v2(
|
|||||||
metadata_manager.track_transcription_metadata(task_id, transcription)
|
metadata_manager.track_transcription_metadata(task_id, transcription)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"title": "Transcription",
|
"title": settings.document_title,
|
||||||
"content": formatted_transcription,
|
"content": formatted_transcription,
|
||||||
"email": email,
|
"email": email,
|
||||||
"sub": sub,
|
"sub": sub,
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ class Settings(BaseSettings):
|
|||||||
webhook_api_token: str
|
webhook_api_token: str
|
||||||
webhook_url: str
|
webhook_url: str
|
||||||
|
|
||||||
|
# Output related settings
|
||||||
|
document_title: Optional[str] = "Transcription"
|
||||||
|
|
||||||
# Sentry
|
# Sentry
|
||||||
sentry_is_enabled: bool = False
|
sentry_is_enabled: bool = False
|
||||||
sentry_dsn: Optional[str] = None
|
sentry_dsn: Optional[str] = None
|
||||||
|
|||||||
Reference in New Issue
Block a user