update toml

This commit is contained in:
jhqxxx
2025-12-26 14:26:33 +08:00
parent 6b8381a765
commit 30a00d1ac7
3 changed files with 15 additions and 14 deletions
Generated
+11 -10
View File
@@ -19,7 +19,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
[[package]]
name = "aha"
version = "0.1.5"
version = "0.1.6"
dependencies = [
"aha_openai_dive",
"anyhow",
@@ -51,7 +51,8 @@ dependencies = [
[[package]]
name = "aha_openai_dive"
version = "1.4.0"
source = "git+https://github.com/jhqxxx/openai-client.git#023a3b07244e73605e89d6d457d76fa24217c9de"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06be555744ef37a775e05d920ac6d4e0c5765fdc00a12cd8e221b3a1f2eaf982"
dependencies = [
"bytes",
"derive_builder",
@@ -895,7 +896,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -1001,7 +1002,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -1801,7 +1802,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
"socket2 0.6.1",
"socket2 0.5.10",
"system-configuration",
"tokio",
"tower-service",
@@ -2065,7 +2066,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -2456,7 +2457,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -3354,7 +3355,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -3797,7 +3798,7 @@ dependencies = [
"getrandom 0.3.4",
"once_cell",
"rustix",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -4523,7 +4524,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "aha"
version = "0.1.5"
version = "0.1.6"
edition = "2024"
repository = "https://github.com/jhqxxx/aha"
license = "Apache-2.0"
@@ -21,7 +21,7 @@ base64 = "0.22.1"
num = "0.4.3"
minijinja = "2.12.0"
tokenizers = "0.22.1"
aha_openai_dive = { git ="https://github.com/jhqxxx/openai-client.git", features = ["stream"]}
aha_openai_dive = { version = "1.4", features = ["stream"]}
uuid = { version = "1.18.1", features = ["v4"]}
chrono = "0.4.42"
rocket = { version = "0.5.1", features = ["serde_json", "json"] }
+2 -2
View File
@@ -143,10 +143,10 @@ cargo run -F cuda -r -- [参数]
* 如果未指定 --weight-path,程序会自动下载指定模型
* 下载的模型默认保存在 ~/.aha/ 目录下(除非指定了 --save-dir
#### API接口介绍
### API接口介绍
项目提供基于 OpenAI API 兼容的 RESTful 接口,支持多种模型推理任务。
##### 接口列表
#### 接口列表
1. 对话接口
- **端点**: `POST /chat/completions`
- **功能**: 多模态对话和文本生成