Commit Graph
18 Commits
Author SHA1 Message Date
XiaoYang 8ec2ef6ad3 fmt: format code according to rustfmt standards 2026-03-10 21:45:04 +08:00
XiaoYang 2f452ab925 feat(cli): add model download verification and update model listing output(cli/json) 2026-03-10 21:34:03 +08:00
XiaoYang e66ff27288 docs(api): add audio transcription API documentation 2026-03-10 21:34:03 +08:00
XiaoYang b559376438 feat(asr): add text response format support and improve code formatting 2026-03-06 12:00:39 +08:00
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 da32a35b45 feat(cli): add 'list' subcommand to display supported models with optional JSON output 2026-02-09 21:35:58 +08:00
XiaoYang b81f63fcbd feat(cli): add delete subcommand to remove downloaded models 2026-02-08 13:56:57 +08:00
XiaoYang ba16c9edf5 feat: add graceful shutdown endpoint and cli service management
- Add /shutdown endpoint for graceful server shutdown
- Add 'aha ps' command to list running services
- Add comprehensive API documentation for shutdown endpoint
- Enhance CLI with --allow-remote-shutdown flag
- Implement process management module with service discovery
- Add graceful shutdown handling for Ctrl+C signals
2026-02-08 13:24:29 +08:00
XiaoYang 390d916ea6 feat(api): add health check and models endpoints with documentation
- Add /health endpoint to check service status for orchestration systems
- Add /models endpoint with OpenAI API compatible format
- Document new endpoints in both English and Chinese API docs
- Include example usage and response formats in documentation
- Add comprehensive test coverage for health and models endpoints
- Refactor model storage to include type information alongside instance
- Move model ID and type methods to WhichModel implementation
- Update API calls to access model instance through stored wrapper
2026-02-08 12:10:40 +08:00
XiaoYang 38ea72e407 refactor: reorganize imports and improve code formatting across multiple modules 2026-02-08 11:07:53 +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 fd3ebc8d1c docs: update supported models documentation with new models and licensing info 2026-02-06 17:05:08 +08:00
XiaoYang f940bc6fe8 docs(README): reorder badges to move license badge to end 2026-02-06 16:42:23 +08:00
XiaoYang 746dd1491c chore(docs): restructure README files and add Chinese documentation 2026-02-06 16:39:52 +08:00
XiaoYang c582c4cd0a docs: update and optimize README and project documentation system
- Update README.md with improved formatting, logo, badges,
  and comprehensive documentation
- Add README.en.md with English translation of the documentation
- Include detailed quick start guide, CLI reference,
  and supported models table
- Add changelog information highlighting recent features
- Add script directory and adjust script file locations
2026-02-06 16:13:50 +08:00
XiaoYang da6229abee ## feat(cli): add **list** subcommand to show supported models
- Add 'list' subcommand to display all available models with their
  ModelScope IDs
- Implement run_list() function to print formatted table of models
- Update main() to handle the new List command variant
- Add ValueEnum import for clap functionality

style(models): hide internal model variants from CLI help

- Add hide = true attribute to all WhichModel enum variants to
  prevent showing internal model names in CLI help output
- Keep the functionality intact while cleaning up user interface
2026-01-22 17:09:03 +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
XiaoYang 861c411ba2 feat: CLI Subcommand Support
- **CLI Subcommand Support**: Added three new subcommands for better command organization:
  - `aha cli` - Download model and start HTTP service (default, backward compatible)
  - `aha serv` - Start HTTP service only (requires `--weight-path`)
  - `aha download` - Download model only (no service start)
2026-01-20 22:15:45 +08:00