From 63064860ef2e7056d1497efa5e39309bd527a434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 15 May 2026 14:50:42 -0700 Subject: [PATCH] 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``. --- examples/function-calling/function-calling-openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/function-calling/function-calling-openai.py b/examples/function-calling/function-calling-openai.py index 38c9d6385..20777eaca 100644 --- a/examples/function-calling/function-calling-openai.py +++ b/examples/function-calling/function-calling-openai.py @@ -68,9 +68,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): tts = OpenAITTSService( api_key=os.environ["OPENAI_API_KEY"], settings=OpenAITTSService.Settings( + instructions="Please speak clearly and at a moderate pace.", voice="ballad", ), - instructions="Please speak clearly and at a moderate pace.", ) llm = OpenAILLMService(