Skip to content

Commit 8c58330

Browse files
authored
server : add api-key flag to documentation (#4832)
Document the api-key flag added to server in #4441
1 parent 18c2e17 commit 8c58330

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Command line options:
2323
- `--host`: Set the hostname or ip address to listen. Default `127.0.0.1`.
2424
- `--port`: Set the port to listen. Default: `8080`.
2525
- `--path`: path from which to serve static files (default examples/server/public)
26+
- `--api-key`: Set an api key for request authorization. By default the server responds to every request. With an api key set, the requests must have the Authorization header set with the api key as Bearer token.
2627
- `--embedding`: Enable embedding extraction, Default: disabled.
2728
- `-np N`, `--parallel N`: Set the number of slots for process requests (default: 1)
2829
- `-cb`, `--cont-batching`: enable continuous batching (a.k.a dynamic batching) (default: disabled)

0 commit comments

Comments
 (0)