Skip to content

Commit

Permalink
fix: Use a more descriptive OpenAI API_KEY env (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Apr 1, 2023
1 parent 50e8dc5 commit 9255a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ It aims to help find `kubectl` commands for what you are trying to accomplish, w

2. Move it somewhere in your `PATH`.

3. Generate an API Key [here](https://platform.openai.com/account/api-keys).
3. Generate an OpenAI API Key [here](https://platform.openai.com/account/api-keys).

4. Run `kubectl assistant`

```txt
$ export OPENAI_API_KEY=<>
$ kubectl assistant
Begin by typing what you want to accomplish in your Kubernetes cluster and then hit "Enter".
For example:
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import (
)

const (
apiKeyEnv = "API_KEY"
//nolint:gosec // Not a hardcoded credentials
apiKeyEnv = "OPENAI_API_KEY"
)

func main() {
Expand Down

0 comments on commit 9255a5e

Please sign in to comment.