Commit Graph

4 Commits

Author SHA1 Message Date
XiaoYang 63a89b0c96 feat(api): add OpenAI-compatible ASR transcription endpoint
- Implement POST /audio/transcriptions and /v1/audio/transcriptions
  endpoints for automatic speech recognition
- Add support for multipart/form-data audio file uploads
- Support multiple audio formats (wav, mp3, m4a, etc.)
- Implement language detection with 29 supported languages
- Return transcription text in OpenAI-compatible JSON format
- Add proper error handling and validation
- Include comprehensive tests for ASR functionality

refactor(api): restructure API modules and export MODEL

- Move API declarations to src/api/mod.rs
- Add ASR module and type definitions
- Export MODEL static for use in ASR module
- Mount ASR routes at both /audio and /v1/audio endpoints
2026-03-06 11:41:32 +08:00
XiaoYang ca16051065 feat(cli): make weight path optional with default location
Change --weight-path argument from required to optional in both serv and run
subcommands. When not specified, it defaults to ~/.aha/{model_id}. Add
get_default_weight_path function to handle the default path resolution.
Update help text to reflect the optional nature of the weight path parameter.
2026-02-06 17:54:15 +08:00
XiaoYang f010087e97 ```
feat(cli): add direct model inference via new run subcommand

- Add `aha run` CLI subcommand for direct model inference without HTTP service
- Support multiple models including Qwen series, OCR models, ASR models, and voice generation
- Implement input/output handling with file path support and auto-generation
- Add comprehensive documentation in CLI_USAGE.md with examples
- Include performance timing for model loading and inference operations
- Add macOS build target to Makefile with Metal support
```
2026-01-21 18:41:11 +08:00
Yijun Zhao 9b9a8f2c73 unify cargo version and add some ci rules 2025-10-15 21:03:49 +08:00