Skip to content

Commit

Permalink
no openai key required
Browse files Browse the repository at this point in the history
  • Loading branch information
zyddnys committed Aug 16, 2024
1 parent 9ade942 commit 7a07978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manga_translator/translators/sakura.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class SakuraTranslator(CommonTranslator):

def __init__(self):
super().__init__()
self.client = openai.AsyncOpenAI()
self.client = openai.AsyncOpenAI(api_key = openai.api_key or 'empty')
if "/v1" not in SAKURA_API_BASE:
self.client.base_url = SAKURA_API_BASE + "/v1"
else:
Expand Down

0 comments on commit 7a07978

Please sign in to comment.