Update openai key name

This commit is contained in:
Jackson Harper
2024-03-12 13:55:09 +08:00
parent 416adaa042
commit c033f095aa
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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),