Move OpenAITTSService instructions into Settings in the example
Mirrors the deprecation in ``OpenAITTSService.__init__``: ``instructions`` is now a Settings field. The constructor still accepts it for backward compatibility but the canonical path is through ``Settings``.
This commit is contained in:
@@ -68,9 +68,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
|
|||||||
tts = OpenAITTSService(
|
tts = OpenAITTSService(
|
||||||
api_key=os.environ["OPENAI_API_KEY"],
|
api_key=os.environ["OPENAI_API_KEY"],
|
||||||
settings=OpenAITTSService.Settings(
|
settings=OpenAITTSService.Settings(
|
||||||
|
instructions="Please speak clearly and at a moderate pace.",
|
||||||
voice="ballad",
|
voice="ballad",
|
||||||
),
|
),
|
||||||
instructions="Please speak clearly and at a moderate pace.",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
llm = OpenAILLMService(
|
llm = OpenAILLMService(
|
||||||
|
|||||||
Reference in New Issue
Block a user