Skip to content

Commit 9164a68

Browse files
Xunzhuojolfr
authored andcommitted
[Docs]: fix vllm mock app Unauthorized response (vllm-project#817)
* [DOC]: fix vllm mock Unauthorized Signed-off-by: bitliu <[email protected]> Signed-off-by: jolfr <[email protected]>
1 parent 8bdf32f commit 9164a68

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

development/app/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ kubectl -n envoy-gateway-system port-forward service/envoy-aibrix-system-aibrix-
7575
kubectl -n default port-forward svc/llama2-7b 8000:8000 &
7676
```
7777

78+
> The default Bearer Token is test-key-1234567890, defined in [api-key-patch.yaml](./config/mock/api-key-patch.yaml)
7879
7980
1. Test model invocation
8081

8182
```shell
8283
curl http://localhost:8000/v1/chat/completions \
8384
-H "Content-Type: application/json" \
84-
-H "Authorization: Bearer any_key" \
85+
-H "Authorization: Bearer test-key-1234567890" \
8586
-d '{
8687
"model": "llama2-7b",
8788
"messages": [{"role": "user", "content": "Say this is a test!"}],
@@ -113,7 +114,7 @@ Test request
113114
```shell
114115
curl -v http://localhost:8000/v1/chat/completions \
115116
-H "Content-Type: application/json" \
116-
-H "Authorization: Bearer any_key" \
117+
-H "Authorization: Bearer test-key-1234567890" \
117118
-d '{
118119
"model": "llama2-7b",
119120
"messages": [{"role": "user", "content": "Say this is a test!"}],
@@ -128,7 +129,7 @@ valid options: `random`, `least-latency`, `throughput`
128129
```shell
129130
curl -v http://localhost:8000/v1/chat/completions \
130131
-H "Content-Type: application/json" \
131-
-H "Authorization: Bearer any_key" \
132+
-H "Authorization: Bearer test-key-1234567890" \
132133
-H "routing-strategy: random" \
133134
-d '{
134135
"model": "llama2-7b",

0 commit comments

Comments
 (0)