Skip to content

Commit

Permalink
perf(next/api): use OPENAI_PROXY instead of http_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
NotEvenANeko committed Nov 22, 2023
1 parent 5e68ad0 commit fdded7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/api/src/service/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class OpenAIService {

constructor() {
const apiKey = process.env.OPENAI_API_KEY;
const httpProxy = process.env.http_proxy;
const httpProxy = process.env.OPENAI_PROXY;

if (!apiKey) {
console.warn('OPENAI_API_KEY not provided, disabling openAIService...');
Expand Down

0 comments on commit fdded7a

Please sign in to comment.