In the AWS Nova Sonic example, shorten the simulated weather function call delay
This commit is contained in:
@@ -44,7 +44,7 @@ async def fetch_weather_from_api(params: FunctionCallParams):
|
|||||||
# You can continue chatting while waiting for this to complete.
|
# You can continue chatting while waiting for this to complete.
|
||||||
# With Nova 2 Sonic (the default model), the assistant will respond
|
# With Nova 2 Sonic (the default model), the assistant will respond
|
||||||
# appropriately once the function call is complete.
|
# appropriately once the function call is complete.
|
||||||
await asyncio.sleep(10)
|
await asyncio.sleep(5)
|
||||||
await params.result_callback(
|
await params.result_callback(
|
||||||
{
|
{
|
||||||
"conditions": "nice",
|
"conditions": "nice",
|
||||||
|
|||||||
Reference in New Issue
Block a user