Commit 36737fc
Feat/swipe anomaly 3 (#310)
* Enhance model management and transcription provider setup
- Added `add_or_update_model` method in `ConfigManager` to facilitate adding or updating models in the configuration.
- Updated `ChronicleSetup` to support a new OpenAI-Compatible transcription provider, allowing users to configure custom endpoints and API keys.
- Enhanced user prompts for API base URL and model name during setup, improving the configuration experience.
- Introduced unit tests for the new model management functionality and transcription provider setup, ensuring robust validation of the changes.
- Improved Docker configurations for ASR services, including support for customizable CUDA versions and DNS settings.
* Remove outdated unit tests for LLM custom provider and transcription URL configuration
* Enhance Docker Compose and service management for LangFuse integration
- Updated `services.py` to include new options for service management, allowing for forced recreation of containers during startup.
- Added LangFuse configuration options in the setup wizard, improving user experience for observability setup.
- Introduced new API endpoints for retrieving observability configuration, enhancing integration with the frontend.
- Enhanced error handling and logging for service startup processes, ensuring better visibility of configuration issues.
- Updated documentation to reflect changes in service management and LangFuse integration.
* Enhance README and add new ASR service configurations
- Updated README.md to include a new section for the Desktop Menu Bar Client with an accompanying screenshot.
- Added configuration options for the new `galileo` ASR provider in `pyproject.toml` and `uv.lock`, enhancing support for additional audio processing capabilities.
- Modified Dockerfile to include `galileo` as an extra dependency for both main and test environments, improving service management.
- Enhanced job handling in `queue_controller.py` to track batch progress for transcription jobs, providing better user feedback during processing.
- Updated Queue.tsx to display batch progress for audio transcription jobs, improving user experience in the web interface.
- Refactored System.tsx to allow for restarting both workers and backend services, enhancing service management capabilities.
* Refactor pre-commit configuration and enhance development scripts (#309)
* Refactor pre-commit configuration and enhance development scripts
- Removed local hooks for Robot Framework tests and cleanup from `.pre-commit-config.yaml`, streamlining the pre-commit setup.
- Updated `Makefile` to install pre-commit using the `uv` tool, improving dependency management.
- Enhanced `restart.sh`, `start.sh`, `status.sh`, and `stop.sh` scripts to source a new `check_uv.sh` script for better environment validation.
- Added new environment variables for Galileo observability in `.env.template`, improving observability setup.
- Introduced OpenTelemetry initialization in `app_factory.py` for enhanced observability during application runtime.
* Update button event handling and plugin architecture
- Changed button state terminology from `SINGLE_TAP` and `DOUBLE_TAP` to `SINGLE_PRESS` and `DOUBLE_PRESS` across various files, including documentation and code implementations.
- Enhanced the `send_button_event` method to reflect the updated button state values, ensuring consistency in event handling.
- Introduced new methods for managing button events in the plugin architecture, improving the overall interaction with device buttons.
- Updated tests to align with the new button state definitions, ensuring robust coverage for the updated functionality.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
- Enhanced the `Makefile` to include a new target for running specific tests by name, tag, or file, improving test execution flexibility.
- Created a shared prerequisite check script `check_uv.sh` to ensure the `uv` package manager is installed before running scripts, enhancing setup reliability.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
* Refactor Redis session handling and enhance error management
- Updated session retrieval logic in `queue_routes.py` to ensure proper closure of Redis connections using `await redis_client.aclose()`, improving resource management.
- Enhanced error handling during session data retrieval, providing clearer logging for issues encountered while fetching session information.
- Streamlined the session key scanning process, maintaining existing functionality while improving code readability and maintainability.
- Added optional parameters to the `transcribe` method in `mock_provider.py` for better flexibility in handling context information and progress callbacks during transcription tasks.
* Refactor test workflows to utilize Makefile targets and enhance documentation
- Replaced the `run-no-api-tests.sh` script with a Makefile target `make test-no-api` for executing tests without API keys, streamlining the testing process.
- Updated GitHub Actions workflows and README documentation to reflect the new Makefile usage, improving clarity for contributors.
- Removed the deprecated `run-no-api-tests.sh` script to reduce redundancy and simplify the codebase.
* Update user loop with keyboard shortcuts
- Added new service configuration for LangFuse in `services.py`, including path, compose file, description, and ports.
- Refactored the backend initialization process to improve observability and prompt management with LangFuse.
- Updated the `load_config_yml` function to ensure proper loading of LangFuse settings.
- Enhanced error handling and logging during service startup to provide better visibility into configuration issues.
* Feat/asr progress (#308)
* Enhance Docker Compose and service management for LangFuse integration
- Updated `services.py` to include new options for service management, allowing for forced recreation of containers during startup.
- Added LangFuse configuration options in the setup wizard, improving user experience for observability setup.
- Introduced new API endpoints for retrieving observability configuration, enhancing integration with the frontend.
- Enhanced error handling and logging for service startup processes, ensuring better visibility of configuration issues.
- Updated documentation to reflect changes in service management and LangFuse integration.
* Enhance README and add new ASR service configurations
- Updated README.md to include a new section for the Desktop Menu Bar Client with an accompanying screenshot.
- Added configuration options for the new `galileo` ASR provider in `pyproject.toml` and `uv.lock`, enhancing support for additional audio processing capabilities.
- Modified Dockerfile to include `galileo` as an extra dependency for both main and test environments, improving service management.
- Enhanced job handling in `queue_controller.py` to track batch progress for transcription jobs, providing better user feedback during processing.
- Updated Queue.tsx to display batch progress for audio transcription jobs, improving user experience in the web interface.
- Refactored System.tsx to allow for restarting both workers and backend services, enhancing service management capabilities.
* Refactor pre-commit configuration and enhance development scripts (#309)
* Refactor pre-commit configuration and enhance development scripts
- Removed local hooks for Robot Framework tests and cleanup from `.pre-commit-config.yaml`, streamlining the pre-commit setup.
- Updated `Makefile` to install pre-commit using the `uv` tool, improving dependency management.
- Enhanced `restart.sh`, `start.sh`, `status.sh`, and `stop.sh` scripts to source a new `check_uv.sh` script for better environment validation.
- Added new environment variables for Galileo observability in `.env.template`, improving observability setup.
- Introduced OpenTelemetry initialization in `app_factory.py` for enhanced observability during application runtime.
* Update button event handling and plugin architecture
- Changed button state terminology from `SINGLE_TAP` and `DOUBLE_TAP` to `SINGLE_PRESS` and `DOUBLE_PRESS` across various files, including documentation and code implementations.
- Enhanced the `send_button_event` method to reflect the updated button state values, ensuring consistency in event handling.
- Introduced new methods for managing button events in the plugin architecture, improving the overall interaction with device buttons.
- Updated tests to align with the new button state definitions, ensuring robust coverage for the updated functionality.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
- Enhanced the `Makefile` to include a new target for running specific tests by name, tag, or file, improving test execution flexibility.
- Created a shared prerequisite check script `check_uv.sh` to ensure the `uv` package manager is installed before running scripts, enhancing setup reliability.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
* Refactor Redis session handling and enhance error management
- Updated session retrieval logic in `queue_routes.py` to ensure proper closure of Redis connections using `await redis_client.aclose()`, improving resource management.
- Enhanced error handling during session data retrieval, providing clearer logging for issues encountered while fetching session information.
- Streamlined the session key scanning process, maintaining existing functionality while improving code readability and maintainability.
- Added optional parameters to the `transcribe` method in `mock_provider.py` for better flexibility in handling context information and progress callbacks during transcription tasks.
* Refactor test workflows to utilize Makefile targets and enhance documentation
- Replaced the `run-no-api-tests.sh` script with a Makefile target `make test-no-api` for executing tests without API keys, streamlining the testing process.
- Updated GitHub Actions workflows and README documentation to reflect the new Makefile usage, improving clarity for contributors.
- Removed the deprecated `run-no-api-tests.sh` script to reduce redundancy and simplify the codebase.
* Enhance Docker Compose and service management for LangFuse integration
- Updated `services.py` to include new options for service management, allowing for forced recreation of containers during startup.
- Added LangFuse configuration options in the setup wizard, improving user experience for observability setup.
- Introduced new API endpoints for retrieving observability configuration, enhancing integration with the frontend.
- Enhanced error handling and logging for service startup processes, ensuring better visibility of configuration issues.
- Updated documentation to reflect changes in service management and LangFuse integration.
* Refactor pre-commit configuration and enhance development scripts (#309)
* Refactor pre-commit configuration and enhance development scripts
- Removed local hooks for Robot Framework tests and cleanup from `.pre-commit-config.yaml`, streamlining the pre-commit setup.
- Updated `Makefile` to install pre-commit using the `uv` tool, improving dependency management.
- Enhanced `restart.sh`, `start.sh`, `status.sh`, and `stop.sh` scripts to source a new `check_uv.sh` script for better environment validation.
- Added new environment variables for Galileo observability in `.env.template`, improving observability setup.
- Introduced OpenTelemetry initialization in `app_factory.py` for enhanced observability during application runtime.
* Update button event handling and plugin architecture
- Changed button state terminology from `SINGLE_TAP` and `DOUBLE_TAP` to `SINGLE_PRESS` and `DOUBLE_PRESS` across various files, including documentation and code implementations.
- Enhanced the `send_button_event` method to reflect the updated button state values, ensuring consistency in event handling.
- Introduced new methods for managing button events in the plugin architecture, improving the overall interaction with device buttons.
- Updated tests to align with the new button state definitions, ensuring robust coverage for the updated functionality.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
- Enhanced the `Makefile` to include a new target for running specific tests by name, tag, or file, improving test execution flexibility.
- Created a shared prerequisite check script `check_uv.sh` to ensure the `uv` package manager is installed before running scripts, enhancing setup reliability.
* Add unit tests for Qwen3-ASR output parsing and repetition detection
- Introduced a new test file `test_qwen3_asr_parsing.py` to validate the functionality of the `_parse_qwen3_output` and `detect_and_fix_repetitions` methods.
- Implemented various test cases covering standard and edge cases for ASR output parsing, including language detection, handling of empty inputs, and unexpected text.
- Added tests for repetition detection to ensure proper functionality based on specified thresholds.
* Refactor Redis session handling and enhance error management
- Updated session retrieval logic in `queue_routes.py` to ensure proper closure of Redis connections using `await redis_client.aclose()`, improving resource management.
- Enhanced error handling during session data retrieval, providing clearer logging for issues encountered while fetching session information.
- Streamlined the session key scanning process, maintaining existing functionality while improving code readability and maintainability.
- Added optional parameters to the `transcribe` method in `mock_provider.py` for better flexibility in handling context information and progress callbacks during transcription tasks.
* lint
---------
Co-authored-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>1 parent 430027d commit 36737fc
File tree
43 files changed
+5548
-1334
lines changed- backends/advanced
- src/advanced_omi_backend
- controllers
- models
- routers/modules
- services
- utils
- workers
- webui
- src
- components
- layout
- pages
- config
- extras
- asr-services
- providers/vibevoice
- tests
- ml-training
- event-detection
- whisper-adapter-finetuning
- tests
- configuration
- endpoints
- libs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+5548
-1334
lines changedLarge diffs are not rendered by default.
Lines changed: 218 additions & 155 deletions
Large diffs are not rendered by default.
Lines changed: 65 additions & 175 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
| |||
112 | 131 | | |
113 | 132 | | |
114 | 133 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
127 | 137 | | |
128 | 138 | | |
129 | 139 | | |
| |||
184 | 194 | | |
185 | 195 | | |
186 | 196 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| |||
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
697 | 684 | | |
698 | 685 | | |
699 | 686 | | |
| |||
719 | 706 | | |
720 | 707 | | |
721 | 708 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
734 | 712 | | |
735 | 713 | | |
736 | 714 | | |
| |||
933 | 911 | | |
934 | 912 | | |
935 | 913 | | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
946 | 917 | | |
947 | 918 | | |
948 | 919 | | |
| |||
993 | 964 | | |
994 | 965 | | |
995 | 966 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
1007 | 970 | | |
1008 | 971 | | |
1009 | 972 | | |
| |||
1068 | 1031 | | |
1069 | 1032 | | |
1070 | 1033 | | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
| 1034 | + | |
| 1035 | + | |
1074 | 1036 | | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1037 | + | |
| 1038 | + | |
1088 | 1039 | | |
1089 | 1040 | | |
1090 | 1041 | | |
| |||
1137 | 1088 | | |
1138 | 1089 | | |
1139 | 1090 | | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
| 1091 | + | |
| 1092 | + | |
1143 | 1093 | | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
| 1094 | + | |
| 1095 | + | |
1158 | 1096 | | |
1159 | 1097 | | |
1160 | 1098 | | |
| |||
1205 | 1143 | | |
1206 | 1144 | | |
1207 | 1145 | | |
1208 | | - | |
1209 | | - | |
| 1146 | + | |
| 1147 | + | |
1210 | 1148 | | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
| 1149 | + | |
| 1150 | + | |
1225 | 1151 | | |
1226 | 1152 | | |
1227 | 1153 | | |
| |||
1349 | 1275 | | |
1350 | 1276 | | |
1351 | 1277 | | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
| 1278 | + | |
| 1279 | + | |
1355 | 1280 | | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
| 1281 | + | |
| 1282 | + | |
1369 | 1283 | | |
1370 | 1284 | | |
1371 | 1285 | | |
| |||
1401 | 1315 | | |
1402 | 1316 | | |
1403 | 1317 | | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
| 1318 | + | |
| 1319 | + | |
1407 | 1320 | | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
| 1321 | + | |
| 1322 | + | |
1421 | 1323 | | |
1422 | 1324 | | |
1423 | 1325 | | |
| |||
1449 | 1351 | | |
1450 | 1352 | | |
1451 | 1353 | | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
| 1354 | + | |
| 1355 | + | |
1455 | 1356 | | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
| 1357 | + | |
| 1358 | + | |
1469 | 1359 | | |
1470 | 1360 | | |
1471 | 1361 | | |
| |||
0 commit comments