diff --git a/.gitignore b/.gitignore index a4e6065..c44ec32 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,8 @@ lib/*.pdb findings.md modify_test.md progress.md -task_plan.md \ No newline at end of file +task_plan.md + +aha-ui/node_modules +aha-ui/src-tauri/target/* +aha-ui/dist/* \ No newline at end of file diff --git a/README.md b/README.md index 3feeea1..1fd0b9c 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,12 @@ aha is a high-performance, cross-platform AI inference engine built with Rust an - **🧠 Attention Optimization** - Optional Flash Attention support for optimized long sequence processing ## Changelog +### 2026-05-09 +- merge pr/eastgold15/46, add aha-ui + +### 2026-04-25 +- VoxCPM update stream + ### 2026-04-17 - Qwen3ASR add vad data recognition @@ -67,15 +73,6 @@ aha is a high-performance, cross-platform AI inference engine built with Rust an ### 0.2.5 (2026-04-06) - add qwen3-embedding/qwen3-reranker/all-minilm-l6-v2 -### 2026-04-03 -- CLI update: subcommand must be specified -- ChatCompletionParameters add repeat_penalty and repeat_last_n -- generate add penalty repeat - -### 2026-04-02 -- refactor generate code -- \...\ The content of the thought chain is returned using the reasoning_content field. -- chat response add time info **[View full changelog](docs/changelog.md)** → @@ -127,7 +124,6 @@ aha run -m all-minilm-l6-v2 -i "Rust embedding test" --weight-path D:\model_down # Start service only (model already downloaded) aha serv -m Qwen/Qwen3-ASR-0.6B -p 10100 - ``` ### Chat @@ -149,6 +145,66 @@ curl http://localhost:10100/v1/chat/completions \ ' ``` +### aha-ui +```bash +cd aha-ui +``` + +#### use npm +##### install npm +refer to https://nodejs.org/en/download +```bash +# Download and install nvm: +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash +# in lieu of restarting the shell +\. "$HOME/.nvm/nvm.sh" +# Download and install Node.js: +nvm install 24 +# Verify the Node.js version: +node -v # Should print "v24.15.0". +# Verify npm version: +npm -v # Should print "11.12.1". +``` + +##### npm run aha-ui +```bash +# Make sure in the aha-ui directory +# and make sure that aha has been compiled +npm install +npm run tauri dev +``` + +##### npm build & install & run +```bash +npm run tauri build +# target in +# -- aha-ui/src-tauri/target/release/bundle/deb/aha-ui_0.1.0_amd64.deb +# -- aha-ui/src-tauri/target/release/bundle/rpm/aha-ui-0.1.0-1.x86_64.rpm +# -- aha-ui/src-tauri/target/release/bundle/appimage/aha-ui_0.1.0_amd64.AppImage +``` + +#### use pnpm +##### install pnpm +```bash +curl -fsSL https://get.pnpm.io/install.sh | sh - +``` + +##### pnpm run aha-ui +```bash +# Make sure in the aha-ui directory +# and make sure that aha has been compiled +pnpm run tauri dev +``` + +##### pnpm build & install & run +```bash +pnpm run tauri build +# target in +# -- aha-ui/src-tauri/target/release/bundle/deb/aha-ui_0.1.0_amd64.deb +# -- aha-ui/src-tauri/target/release/bundle/rpm/aha-ui-0.1.0-1.x86_64.rpm +# -- aha-ui/src-tauri/target/release/bundle/appimage/aha-ui_0.1.0_amd64.AppImage +``` + ## Documentation | Document | Description | diff --git a/README.zh-CN.md b/README.zh-CN.md index 6041b91..d92cfcd 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -47,6 +47,12 @@ aha 是一款基于 Rust 和 Candle 框架构建的高性能跨平台 AI 推理 - **🧠 注意力优化** - 可选 Flash Attention 支持,优化长序列处理 ## 更新日志 +### 2026-05-09 +- 合并 pr/eastgold15/46, 添加 aha-ui + +### 2026-04-25 +- VoxCPM 更新流式生成 + ### 2026-04-17 - Qwen3ASR 增加 vad 数据识别 @@ -65,16 +71,6 @@ aha 是一款基于 Rust 和 Candle 框架构建的高性能跨平台 AI 推理 ### 0.2.5 (2026-04-06) - 添加 qwen3-embedding/qwen3-reranker/all-minilm-l6-v2 -### 2026-04-03 -- CLI 更新: 必须指定子命令 -- ChatCompletionParameters 新增 repeat_penalty 和 repeat_last_n 参数 -- 生成添加重复惩罚代码 - -### 2026-04-02 -- 重构生成代码 -- \...\ 思维链内容使用reasoning_content字段返回。 -- 对话返回添加耗时信息 - **[查看完整更新日志](docs/changelog.zh-CN.md)** → @@ -146,6 +142,66 @@ curl http://localhost:10100/v1/chat/completions \ }' ``` +### aha-ui +```bash +cd aha-ui +``` + +#### 使用 npm +##### 安装 npm +参考 https://nodejs.org/en/download +```bash +# Download and install nvm: +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash +# in lieu of restarting the shell +\. "$HOME/.nvm/nvm.sh" +# Download and install Node.js: +nvm install 24 +# Verify the Node.js version: +node -v # Should print "v24.15.0". +# Verify npm version: +npm -v # Should print "11.12.1". +``` + +##### npm 运行 aha-ui +```bash +# 确定在 aha-ui目录 +# 确定 aha 编译完成 +npm install +npm run tauri dev +``` + +##### npm 编译 & 安装 & 运行 +```bash +npm run tauri build +# target in +# -- aha-ui/src-tauri/target/release/bundle/deb/aha-ui_0.1.0_amd64.deb +# -- aha-ui/src-tauri/target/release/bundle/rpm/aha-ui-0.1.0-1.x86_64.rpm +# -- aha-ui/src-tauri/target/release/bundle/appimage/aha-ui_0.1.0_amd64.AppImage +``` + +#### 使用 pnpm +##### 安装 pnpm +```bash +curl -fsSL https://get.pnpm.io/install.sh | sh - +``` + +##### pnpm 运行 aha-ui +```bash +# 确定在 aha-ui目录 +# 确定 aha 编译完成 +pnpm run tauri dev +``` + +##### pnpm 编译 & 安装 & 运行 +```bash +pnpm run tauri build +# target in +# -- aha-ui/src-tauri/target/release/bundle/deb/aha-ui_0.1.0_amd64.deb +# -- aha-ui/src-tauri/target/release/bundle/rpm/aha-ui-0.1.0-1.x86_64.rpm +# -- aha-ui/src-tauri/target/release/bundle/appimage/aha-ui_0.1.0_amd64.AppImage +``` + ## 文档 | 文档 | 描述 | diff --git a/docs/changelog.md b/docs/changelog.md index a624ea8..2cafca4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -5,6 +5,12 @@ All notable changes to aha will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### 2026-05-09 +- merge pr/eastgold15/46, add aha-ui + +### 2026-04-25 +- VoxCPM update stream + ### 2026-04-17 - Qwen3ASR add vad data recognition diff --git a/docs/changelog.zh-CN.md b/docs/changelog.zh-CN.md index eeab560..34665f7 100644 --- a/docs/changelog.zh-CN.md +++ b/docs/changelog.zh-CN.md @@ -5,6 +5,12 @@ 格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/), 本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/spec/v2.0.0.html)。 +### 2026-05-09 +- 合并 pr/eastgold15/46, 添加 aha-ui + +### 2026-04-25 +- VoxCPM 更新流式生成 + ### 2026-04-17 - Qwen3ASR 增加 vad 数据识别