- 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
- 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
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.
- 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
- 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
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
```
- **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)