Skip to content

Conversation

@vlukashov
Copy link
Contributor

This example includes only the images/generations API.

This example imcludes only the `images/generations` API.
configurationset:
- configuration:
name: openai_config
openai_auth: Bearer STEPZEN_OPENAI_API_KEY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would rename to OPENAI_API_KEY to prevent confusion with the stepzen key

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to use an env var in config.yaml it has to start with STEPZEN_ - the CLI only substitutes such vars.
If starting with STEPZEN_ is a problem, then we should consider dropping / changing this CLI feature.

You also need an OpenAI account and an API key. You can get one from the [OpenAPI web site](https://beta.openai.com/account/api-keys). Once you have it, please create a `.env` file and save it there:

```bash
echo "STEPZEN_OPENAI_API_KEY=sk-s6-yourkey-yourkey-yourkey-H3" > .env
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typically I add a .env.sample file too

Copy link
Contributor

@SamuelGHill SamuelGHill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vlukashov vlukashov merged commit 79ac64a into main Dec 12, 2022
@vlukashov vlukashov deleted the feat/add-openai branch December 12, 2022 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants