Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Oct 21, 2023
2 parents eed8ef1 + 4957c21 commit 4ab2a4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions example-servers/nextjs/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Do not share your API key with anyone! It should remain a secret.
OPENAI_API_KEY=key-here
HUGGING_FACE_API_KEY=key-here
STABILITY_API_KEY=key-here
COHERE_API_KEY=key-here
4 changes: 2 additions & 2 deletions example-servers/nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ npm run dev

If you want to use the proxy functions:

<b>Local</b> - Replace the environment variables (`process.env.`) in the route handler functions with the corresponding API key values. E.g. if you want to use the OpenAI Chat, replace [`process.env.OPENAI_API_KEY`](https://github.com/OvidijusParsiunas/deep-chat/blob/d2fdd06dabbf30f3bd318c37e37dce99650d60f3/example-servers/nextjs/pages/api/openai/chat.ts#L24) with a string value of the key.
<b>Local</b> - Create a `.env.local` file and define the corresponding environment variables. E.g. if you want to use OpenAI API, define the `OPENAI_API_KEY` variable. See the `.env.example` file.

<b>Hosting Platform</b> - Add the environment variables to your deploy config. E.g. if you want to use the OpenAI Chat, add the `OPENAI_API_KEY` environment variable.
<b>Hosting Platform</b> - Add the environment variables to your deploy config. E.g. if you want to use the OpenAI Chat, add the `OPENAI_API_KEY` environment variable.

### :wrench: Improvements

Expand Down

0 comments on commit 4ab2a4d

Please sign in to comment.