@@ -75,13 +75,14 @@ kubectl -n envoy-gateway-system port-forward service/envoy-aibrix-system-aibrix-
7575kubectl -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
79801 . Test model invocation
8081
8182``` shell
8283curl 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
114115curl -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
129130curl -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