-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
fixed in v4Issues addressed by v4Issues addressed by v4
Description
Getting this error when trying to run the following code:
Refused to set unsafe header "User-Agent"
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY,
});
const openai = new OpenAIApi(configuration);
const response = await openai.createCompletion("code-davinci-001", {
prompt: filePart,
temperature: 0.1,
max_tokens: 2000,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0.5,
});
DiegoVenancioVieira, briansunter, nick-cjyx9 and up-pro
Metadata
Metadata
Assignees
Labels
fixed in v4Issues addressed by v4Issues addressed by v4