Skip to content

Commit

Permalink
Fix realtime websocket notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
sternakt committed Dec 24, 2024
1 parent a64a4f6 commit 10fa708
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions notebook/agentchat_realtime_websocket.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -48,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -57,7 +57,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -99,7 +99,7 @@
" audio_adapter=audio_adapter,\n",
" )\n",
"\n",
" @openai_client.register_handover(name=\"get_weather\", description=\"Get the current weather\")\n",
" @openai_client.register_realtime_function(name=\"get_weather\", description=\"Get the current weather\")\n",
" def get_weather(location: Annotated[str, \"city\"]) -> str:\n",
" ...\n",
" return \"The weather is cloudy.\" if location == \"Seattle\" else \"The weather is sunny.\"\n",
Expand Down Expand Up @@ -134,7 +134,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 10fa708

Please sign in to comment.