Skip to content

Commit

Permalink
Add authentication instructions to GenAI-Perf tutorial (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyastremsky authored Nov 8, 2024
1 parent 5dfebe1 commit 0304415
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions genai-perf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,26 @@ inference. Other modes such as the [embeddings](docs/embeddings.md) and

</br>

<!--
======================
AUTHENTICATION
======================
-->

## Authentication

GenAI-Perf can benchmark secure endpoints such as OpenAI, which require API
key authentication. To do so, you must add your API key directly in the command.
At the end of your command, append the below flags. Replace the key with your
API key. The `--` flag allows arguments to pass directly into Perf Analyzer in
superuser mode. The `-H` flag is used to add HTTP headers.

```bash
-- -H "Authorization: Bearer ${API_KEY}" -H "Accept: text/event-stream"
```

</br>

<!--
======================
METRICS
Expand Down
20 changes: 20 additions & 0 deletions templates/genai-perf-templates/README_template
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,26 @@ inference. Other modes such as the [embeddings](docs/embeddings.md) and

</br>

<!--
======================
AUTHENTICATION
======================
-->

## Authentication

GenAI-Perf can benchmark secure endpoints such as OpenAI, which require API
key authentication. To do so, you must add your API key directly in the command.
At the end of your command, append the below flags. Replace the key with your
API key. The `--` flag allows arguments to pass directly into Perf Analyzer in
superuser mode. The `-H` flag is used to add HTTP headers.

```bash
-- -H "Authorization: Bearer ${API_KEY}" -H "Accept: text/event-stream"
```

</br>

<!--
======================
METRICS
Expand Down

0 comments on commit 0304415

Please sign in to comment.