fix: 修复 CPA 用量与请求终态关联
This commit is contained in:
@@ -13,5 +13,5 @@ function Resolve-Tool([string]$Name) {
|
||||
|
||||
$go = Resolve-Tool 'go'
|
||||
Write-Host "Go: $(& $go version)"
|
||||
Write-Host 'CLIProxyAPI target: ABI 1 / RPC schema 3'
|
||||
Write-Host 'CLIProxyAPI target: ABI 1 / RPC schema 4'
|
||||
Write-Warning '本项目默认在 WSL/Linux 构建;请优先运行 wsl bash ./scripts/build.sh。'
|
||||
|
||||
@@ -13,4 +13,4 @@ command -v gcc >/dev/null 2>&1 || {
|
||||
echo "Go bootstrap: $(go version)"
|
||||
echo "Go effective: $(go env GOVERSION)"
|
||||
echo "GCC: $(gcc --version | head -n 1)"
|
||||
echo 'CLIProxyAPI target: ABI 1 / RPC schema 3'
|
||||
echo 'CLIProxyAPI target: ABI 1 / RPC schema 4'
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ printf '%s\n' \
|
||||
"version=$version" \
|
||||
"target=linux/amd64" \
|
||||
"native_abi=1" \
|
||||
"rpc_schema=3" \
|
||||
"cliproxyapi_revision=f43aad7637ad813745bf7d341acb5663617570c5" \
|
||||
"rpc_schema=4" \
|
||||
"cliproxyapi_revision=78f0c4079e3e6273d65d03b5549cffc898703264+usage-context+usage-identity+request-lifecycle-cancel" \
|
||||
>"$package_dir/VERSION.txt"
|
||||
|
||||
archive="$root/dist/$name.tar.gz"
|
||||
|
||||
@@ -16,6 +16,10 @@ if [[ -n "$pid" ]] && kill -0 "$pid" 2>/dev/null; then
|
||||
kill -0 "$pid" 2>/dev/null || break
|
||||
sleep 0.25
|
||||
done
|
||||
if kill -0 "$pid" 2>/dev/null; then
|
||||
echo "CPA test host did not stop within 5 seconds (PID $pid)." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
rm -f "$pid_file"
|
||||
echo 'CPA test host stopped.'
|
||||
|
||||
Reference in New Issue
Block a user