Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions development/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ kubectl -n envoy-gateway-system port-forward service/envoy-aibrix-system-aibrix-
kubectl -n default port-forward svc/llama2-7b 8000:8000 &
```

> The default Bearer Token is test-key-1234567890, defined in [api-key-patch.yaml](./config/mock/api-key-patch.yaml)

1. Test model invocation

```shell
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer any_key" \
-H "Authorization: Bearer test-key-1234567890" \
-d '{
"model": "llama2-7b",
"messages": [{"role": "user", "content": "Say this is a test!"}],
Expand Down Expand Up @@ -113,7 +114,7 @@ Test request
```shell
curl -v http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer any_key" \
-H "Authorization: Bearer test-key-1234567890" \
-d '{
"model": "llama2-7b",
"messages": [{"role": "user", "content": "Say this is a test!"}],
Expand All @@ -128,7 +129,7 @@ valid options: `random`, `least-latency`, `throughput`
```shell
curl -v http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer any_key" \
-H "Authorization: Bearer test-key-1234567890" \
-H "routing-strategy: random" \
-d '{
"model": "llama2-7b",
Expand Down