Can't use my OpenAI API keys in my React Native Expo app?

Getting this configuration error Here is my code
import { Configuration, OpenAIApi } from "openai";
import { OPENAI_API_KEY } from "/.env";

const configuration = new Configuration({
apiKey: OPENAI_API_KEY,
});

const openai = new OpenAIApi(configuration);
import { Configuration, OpenAIApi } from "openai";
import { OPENAI_API_KEY } from "/.env";

const configuration = new Configuration({
apiKey: OPENAI_API_KEY,
});

const openai = new OpenAIApi(configuration);
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server