From 5ab43fd12c5bf927df69e2741d1dd1e84361d279 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 18 Mar 2026 14:50:29 +0000 Subject: [PATCH] fix: lang overflows, sst (#2314) --- application/core/settings.py | 2 +- docs/content/Deploying/DocsGPT-Settings.mdx | 5 +- frontend/src/agents/NewAgent.tsx | 8 +- frontend/src/components/MessageInput.tsx | 186 +++++++++++++++++++- frontend/src/constants/fileUpload.ts | 8 + 5 files changed, 194 insertions(+), 15 deletions(-) diff --git a/application/core/settings.py b/application/core/settings.py index 41020ebc..6d260f77 100644 --- a/application/core/settings.py +++ b/application/core/settings.py @@ -159,7 +159,7 @@ class Settings(BaseSettings): STT_PROVIDER: str = "openai" # openai or faster_whisper OPENAI_STT_MODEL: str = "gpt-4o-mini-transcribe" STT_LANGUAGE: Optional[str] = None - STT_MAX_FILE_SIZE_MB: int = 25 + STT_MAX_FILE_SIZE_MB: int = 50 STT_ENABLE_TIMESTAMPS: bool = False STT_ENABLE_DIARIZATION: bool = False diff --git a/docs/content/Deploying/DocsGPT-Settings.mdx b/docs/content/Deploying/DocsGPT-Settings.mdx index f5cb0c07..b51f3d6d 100644 --- a/docs/content/Deploying/DocsGPT-Settings.mdx +++ b/docs/content/Deploying/DocsGPT-Settings.mdx @@ -111,7 +111,7 @@ For an end-to-end walkthrough, see the [Speech and Audio Guide](/Guides/speech-a | `STT_PROVIDER` | Speech-to-text backend provider. | `openai`, `faster_whisper` | | `OPENAI_STT_MODEL` | OpenAI transcription model used when `STT_PROVIDER=openai`. | `gpt-4o-mini-transcribe` | | `STT_LANGUAGE` | Optional language hint passed to the provider. Leave unset for auto-detection when supported. | `en`, `es`, unset | -| `STT_MAX_FILE_SIZE_MB` | Maximum file size accepted by the synchronous `/api/stt` endpoint. | `25` | +| `STT_MAX_FILE_SIZE_MB` | Maximum file size accepted by the synchronous `/api/stt` endpoint. | `50` | | `STT_ENABLE_TIMESTAMPS` | Include timestamp segments in the normalized transcript response and stored parser metadata. | `true`, `false` | | `STT_ENABLE_DIARIZATION` | Reserved provider option for speaker diarization. Some providers may ignore it. | `true`, `false` | @@ -122,7 +122,7 @@ STT_PROVIDER=openai OPENAI_API_KEY=YOUR_OPENAI_API_KEY OPENAI_STT_MODEL=gpt-4o-mini-transcribe STT_LANGUAGE= -STT_MAX_FILE_SIZE_MB=25 +STT_MAX_FILE_SIZE_MB=50 STT_ENABLE_TIMESTAMPS=false STT_ENABLE_DIARIZATION=false ``` @@ -224,4 +224,3 @@ These are just the basic settings to get you started. The `settings.py` file con - And many more! For a complete list of available settings and their descriptions, refer to the `settings.py` file in `application/core`. Remember to restart your Docker containers after making changes to your `.env` file or `settings.py` for the changes to take effect. - diff --git a/frontend/src/agents/NewAgent.tsx b/frontend/src/agents/NewAgent.tsx index d5d28647..af77f6a9 100644 --- a/frontend/src/agents/NewAgent.tsx +++ b/frontend/src/agents/NewAgent.tsx @@ -711,7 +711,7 @@ export default function NewAgent({ mode }: { mode: 'new' | 'edit' | 'draft' }) { {modeConfig[effectiveMode].showSaveDraft && (