Skip to content

Commit

Permalink
Fix openai init
Browse files Browse the repository at this point in the history
  • Loading branch information
ionic-bond committed Dec 11, 2024
1 parent b2b2021 commit 5022e80
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stream_translator_gpt/audio_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class RemoteOpenaiWhisper(OpenaiWhisper):
# https://platform.openai.com/docs/api-reference/audio/createTranscription?lang=python

def __init__(self, language: str, proxy: str) -> None:
self.client = OpenAI()
self.client = OpenAI(http_client=DefaultHttpxClient(proxy=proxy))
self.language = language

Expand Down

0 comments on commit 5022e80

Please sign in to comment.