File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- # Do not share your OpenAI API key with anyone! It should remain a secret.
1
+ # see process.d.ts
2
2
OPENAI_API_KEY = YOUR_OPENAI_API_KEY
3
- # Optional.
4
- # OPENAI_API_ENDPOINT=YOUR_OPENAI_API_ENDPOINT
5
- # USAGE_DATABASE_URL=postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=sqlchat_usage
6
- # NEXT_PUBLIC_API_KEY=YOUR_API_KEY
Original file line number Diff line number Diff line change
1
+ declare namespace NodeJS {
2
+ export interface ProcessEnv {
3
+ // Required. Do not share your OpenAI API key with anyone! It should remain a secret.
4
+ OPENAI_API_KEY : string ;
5
+ // Optional. OpenAI API endpoint. Defaults to https://api.openai.com.
6
+ OPENAI_API_ENDPOINT : string ;
7
+ // Optional. Database connection string to store the usage data.
8
+ USAGE_DATABASE_URL : string ;
9
+ // Optional. API key to protect the backend API endpoint.
10
+ // This needs to be exposed to the frontend and must be prefixed with NEXT_PUBLIC_.
11
+ NEXT_PUBLIC_API_KEY : string ;
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments