Update openai key name
This commit is contained in:
@ -8,4 +8,4 @@ PG_DB=omnivore
|
||||
IMAGE_PROXY_URL=http://localhost:8080
|
||||
IMAGE_PROXY_SECRET_KEY=some-secret
|
||||
GCP_PROJECT_ID=omnivore-local
|
||||
OPEN_AI_API_KEY=some-key
|
||||
OPENAI_API_KEY=some-key
|
||||
|
||||
@ -31,7 +31,7 @@ const envParser =
|
||||
|
||||
if (throwOnUndefined) {
|
||||
throw new Error(
|
||||
`Missing ${varName} with a non-empty value in process environment`,
|
||||
`Missing ${varName} with a non-empty value in process environment`
|
||||
)
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ export function getEnv(): BackendEnv {
|
||||
return {
|
||||
pg,
|
||||
apiKey: parse('OMNIVORE_API_KEY')!,
|
||||
openAiApiKey: parse('OPEN_AI_KEY')!,
|
||||
openAiApiKey: parse('OPENAI_API_KEY')!,
|
||||
imageProxy: {
|
||||
url: parse('IMAGE_PROXY_URL', false),
|
||||
secretKey: parse('IMAGE_PROXY_SECRET', false),
|
||||
|
||||
Reference in New Issue
Block a user