Skip to content

Commit

Permalink
Add comments to identify that detected keys are not real
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuller committed Jun 6, 2024
1 parent 9f872f1 commit dd333e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ with your own REST API domain or ALB. The `/v2/serve` is required at the end of
"title": "LISA",
"apiBase": "https://<lisa_serve_alb>/v2/serve",
"provider": "openai",
"apiKey": "your-api-token"
"apiKey": "your-api-token" // pragma: allowlist-secret
}
```

Expand All @@ -518,7 +518,7 @@ normally be instantiated and invoked with the following block.
from openai import OpenAI

client = OpenAI(
api_key="my_key"
api_key="my_key" # pragma: allowlist-secret not a real key
)
client.models.list()
```
Expand All @@ -535,9 +535,9 @@ The Code block will now look like this and you can continue to use the library w
from openai import OpenAI

client = OpenAI(
api_key="ignored", # LISA ignores this field, but it must be defined
api_key="ignored", # LISA ignores this field, but it must be defined # pragma: allowlist-secret not a real key
base_url="https://<lisa_serve_alb>/v2/serve",
default_headers={"Api-Key": "my_api_token"}
default_headers={"Api-Key": "my_api_token"} # pragma: allowlist-secret not a real key
)
client.models.list()
```
Expand Down

0 comments on commit dd333e4

Please sign in to comment.