You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I'm experiencing a couple of issues with configuring and using OpenAI in a Firebase function.
When trying to access the OpenAI API key in the openaiConfig.ts file, I get the error:
Here's the relevant part of the code:
I set the environment variable using the command:
firebase functions:config:set openai.key="KEY"
Additional Information:
The functions execute normally when deployed to the cloud.
The issue occurs only when running locally with the command:
firebase emulators:start
Version:
firebase-admin: "^12.1.0",
firebase-functions: "^5.0.0",
openai: "^4.56.0"
Beta Was this translation helpful? Give feedback.
All reactions