Skip to content

Commit d9e3cee

Browse files
committed
Update OpenAI service initialization in openai.service.ts
1 parent 6e0cb7b commit d9e3cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: apps/api/src/services/openai.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const generateTranscription = async (file: File, apiKey: string, baseURL:
1313
}
1414

1515
export const generateAudio = async (input: string, apiKey: string, baseURL: string, bucket: R2Bucket) => {
16-
const openai = new OpenAI({ apiKey, baseURL: `${baseURL}/openai`});
16+
const openai = new OpenAI({ apiKey });
1717
const file = await openai.audio.speech.create({
1818
model: "tts-1",
1919
voice: "alloy",

0 commit comments

Comments
 (0)