From b2009cc2d488a419f0af086caa8fd651dc9acb8d Mon Sep 17 00:00:00 2001 From: David Yastremsky Date: Thu, 7 Nov 2024 15:21:03 -0800 Subject: [PATCH] Move authentication guide to README --- genai-perf/README.md | 18 +++++++++++++++ genai-perf/docs/tutorial.md | 22 ------------------- .../genai-perf-templates/README_template | 20 +++++++++++++++++ .../genai-perf-templates/tutorial_template | 22 ------------------- 4 files changed, 38 insertions(+), 44 deletions(-) diff --git a/genai-perf/README.md b/genai-perf/README.md index 3029d3fe..9097cb5c 100644 --- a/genai-perf/README.md +++ b/genai-perf/README.md @@ -309,6 +309,24 @@ inference. Other modes such as the [embeddings](docs/embeddings.md) and
+ + +## Authentication + +GenAI-Perf can benchmark secure endpoints such as OpenAI, which requires 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" +``` + + +## Authentication + +GenAI-Perf can benchmark secure endpoints such as OpenAI, which requires 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" +``` + +
+