We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7af5ea commit 10672d6Copy full SHA for 10672d6
scrapegraphai/models/openai_tts.py
@@ -21,7 +21,8 @@ class OpenAITextToSpeech:
21
def __init__(self, tts_config: dict):
22
23
# convert model_name to model
24
- self.client = OpenAI(api_key=tts_config.get("api_key"))
+ self.client = OpenAI(api_key=tts_config.get("api_key"),
25
+ base_url=tts_config.get("base_url", None))
26
self.model = tts_config.get("model", "tts-1")
27
self.voice = tts_config.get("voice", "alloy")
28
0 commit comments