14 Commits
Author SHA1 Message Date
Dymas 0c7f93d067 Add model auto-download and English logging 2026-06-06 12:47:59 +02:00
Dymas d8b92d5025 Add Docker deployment support 2026-06-06 11:44:30 +02:00
Serge Zaigraeff c533da9d86 README: add recommended model link, remove project structure section 2026-03-31 12:05:52 +03:00
Serge Zaigraeff 2c6f7aee8e Update README: add missing config params, async endpoints, fix default values 2026-03-31 11:52:02 +03:00
Serge ZaigraeffandClaude Opus 4.6 2138651474 Fix code review issues: security, race conditions, resource leaks
- Fix race condition: pass return_timestamps as parameter instead of mutating shared state
- Remove /local/transcriptions endpoint (path traversal vulnerability)
- Add timeout=30 and URL scheme validation to prevent SSRF
- Add temp file cleanup via try/finally in all route handlers
- AsyncTaskManager: add threading.Lock and TTL cleanup for completed tasks
- Change audio_rate to 16000 (matches Whisper's expected sample rate)
- Extract filename from URL via Content-Disposition/path
- Detect base64 audio format via python-magic
- Fix response_size_bytes to use json.dumps instead of str()
- Move scipy import to module level
- Clamp temperature to [0.0, 1.0]
- Deduplicate _load_model() code
- Fix docstrings, README structure, typo, log level

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 00:54:50 +03:00
Serge ZaigraeffandClaude Opus 4.6 2e2bad8255 Simplify architecture: remove overengineering, flatten structure
- Remove dead code: cache.py, context_managers.py, decorators.py, flask-limiter
- Replace AudioSource ABC + FakeFile (5 classes) with 4 plain functions
- Replace TempFileManager class with create_temp_file/cleanup_temp_files functions
- Simplify RequestLogger from 233 to 65 lines, remove file reading side-effect
- Convert HistoryLogger and AudioUtils classes to module-level functions
- Remove unused speed_up_audio and audio_speed_factor config
- Flatten single-file directories: shared/, api/, storage/, validation/, async_tasks/, logging/
- Merge logging config + request_logger into single infrastructure/log.py
- Fix request_logging config key (was request_logger)
- Trim CLAUDE.md to high-level only

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 05:28:34 +03:00
Serge Zaigraeff 852f7975b9 Refactor project structure and add new features 2025-10-23 00:42:09 +03:00
Serge Zaigraeff 1af3ebd80e settings optimization 2025-03-04 16:29:36 +03:00
Serge Zaigraeff 9207892552 add models url 2025-03-02 12:39:11 +03:00
Serge Zaigraeff eed8dd2813 add description 2025-03-02 12:35:37 +03:00
Serge Zaigraeff 846ee25201 refactoring server structure 2025-03-01 23:59:46 +03:00
Serge Zaigraeff e0f872b87d . 2025-03-01 19:48:35 +03:00
Serge Zaigraeff 2838f64922 . 2025-03-01 19:31:04 +03:00
Serge Zaigraeff 3f8b28730f first commit 2025-03-01 19:24:03 +03:00