From 21996af626e6d666595857724076b64f4965fb9e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 17 Mar 2026 14:27:48 +0000 Subject: [PATCH] stt init (#2306) * stt init * fix: limits * fix: errors * fix: error messages --- README.md | 6 +- application/api/user/agents/folders.py | 35 +- application/api/user/agents/routes.py | 10 +- application/api/user/attachments/routes.py | 507 ++++++++++- application/api/user/sources/upload.py | 46 +- application/api/user/utils.py | 15 +- application/api/user/workflows/routes.py | 17 +- application/app.py | 21 + application/core/settings.py | 6 + application/parser/file/audio_parser.py | 48 ++ application/parser/file/base_parser.py | 5 + application/parser/file/bulk.py | 12 + application/parser/file/constants.py | 27 + application/stt/__init__.py | 1 + application/stt/base.py | 15 + application/stt/constants.py | 15 + application/stt/faster_whisper_stt.py | 70 ++ application/stt/live_session.py | 201 +++++ application/stt/openai_stt.py | 60 ++ application/stt/stt_creator.py | 17 + application/stt/upload_limits.py | 43 + application/worker.py | 51 +- docs/content/Deploying/DocsGPT-Settings.mdx | 46 +- docs/content/index.mdx | 5 +- frontend/src/api/endpoints.ts | 4 + frontend/src/api/services/userService.ts | 50 ++ frontend/src/components/FileTree.tsx | 4 +- frontend/src/components/MessageInput.tsx | 806 ++++++++++++++++-- frontend/src/constants/fileUpload.ts | 74 ++ frontend/src/upload/Upload.tsx | 35 +- tests/api/user/attachments/test_routes.py | 437 ++++++++++ tests/api/user/sources/test_audio_upload.py | 71 ++ tests/api/user/test_exception_sanitization.py | 122 +++ tests/parser/file/test_audio_parser.py | 71 ++ tests/stt/test_live_session.py | 142 +++ tests/stt/test_stt_creator.py | 59 ++ tests/stt/test_upload_limits.py | 39 + tests/test_attachment_worker_audio.py | 91 ++ 38 files changed, 3096 insertions(+), 188 deletions(-) create mode 100644 application/parser/file/audio_parser.py create mode 100644 application/parser/file/constants.py create mode 100644 application/stt/__init__.py create mode 100644 application/stt/base.py create mode 100644 application/stt/constants.py create mode 100644 application/stt/faster_whisper_stt.py create mode 100644 application/stt/live_session.py create mode 100644 application/stt/openai_stt.py create mode 100644 application/stt/stt_creator.py create mode 100644 application/stt/upload_limits.py create mode 100644 frontend/src/constants/fileUpload.ts create mode 100644 tests/api/user/attachments/test_routes.py create mode 100644 tests/api/user/sources/test_audio_upload.py create mode 100644 tests/api/user/test_exception_sanitization.py create mode 100644 tests/parser/file/test_audio_parser.py create mode 100644 tests/stt/test_live_session.py create mode 100644 tests/stt/test_stt_creator.py create mode 100644 tests/stt/test_upload_limits.py create mode 100644 tests/test_attachment_worker_audio.py diff --git a/README.md b/README.md index b93c7b30..6e02cc9a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@

- DocsGPT is an open-source AI platform for building intelligent agents and assistants. Features Agent Builder, deep research tools, document analysis (PDF, Office, web content), Multi-model support (choose your provider or run locally), and rich API connectivity for agents with actionable tools and integrations. Deploy anywhere with complete privacy control. + DocsGPT is an open-source AI platform for building intelligent agents and assistants. Features Agent Builder, deep research tools, document analysis (PDF, Office, web content, and audio), Multi-model support (choose your provider or run locally), and rich API connectivity for agents with actionable tools and integrations. Deploy anywhere with complete privacy control.

@@ -35,7 +35,8 @@ Key Features: