Skip to content

Commit

Permalink
Replace asyncio.sleep with time.sleep in ChatFeed docs (#7439)
Browse files Browse the repository at this point in the history
* Remove asyncio sleep

* use time instead of asyncio
  • Loading branch information
ahuang11 authored Oct 28, 2024
1 parent d4e02f4 commit 8dd362f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/reference/chat/ChatFeed.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@
"source": [
"with chat_feed.add_step(title=\"Execute the plan\", status=\"running\") as step:\n",
" step.stream(\"\\n\\n...Executing plan...\")\n",
" await asyncio.sleep(1)\n",
" time.sleep(1)\n",
" step.stream(\"\\n\\n...Handing over to SQL Agent\")"
]
},
Expand All @@ -720,7 +720,7 @@
"source": [
"with chat_feed.add_step(title=\"Running SQL query\", user='SQL Agent') as step:\n",
" step.stream('Querying...')\n",
" await asyncio.sleep(1)\n",
" time.sleep(1)\n",
" step.stream('\\nSELECT * FROM TABLE')"
]
},
Expand Down

0 comments on commit 8dd362f

Please sign in to comment.