docs: add smoke script and auth-aware verification steps

This commit is contained in:
2026-02-25 10:43:23 +00:00
parent 32af5fde6d
commit d1f4252f37
3 changed files with 43 additions and 1 deletions

View File

@@ -20,7 +20,7 @@
"models": {
"providers": {
"openai": {
"apiKey": "sk-xxxx",
"apiKey": "<AUTH_TOKEN_OR_PLACEHOLDER>",
"baseURL": "http://127.0.0.1:8787/v1"
}
}

View File

@@ -4,6 +4,8 @@
```bash
cd no-reply-api
# optional: enforce bearer token checks
# export AUTH_TOKEN='replace-with-strong-token'
npm start
```
@@ -16,6 +18,14 @@ curl -sS -X POST http://127.0.0.1:8787/v1/chat/completions \
-d '{"model":"whispergate-no-reply-v1","messages":[{"role":"user","content":"hi"}]}'
```
Or run bundled smoke check:
```bash
./scripts/smoke-no-reply-api.sh
# with auth:
# AUTH_TOKEN='replace-with-strong-token' ./scripts/smoke-no-reply-api.sh
```
Expected assistant text: `NO_REPLY`
## 3) Enable plugin