diff --git a/docs/zero_to_hero_guide/00_Local_Cloud_Inference101.ipynb b/docs/zero_to_hero_guide/00_Local_Cloud_Inference101.ipynb index b8af6f5db..84ea7c808 100644 --- a/docs/zero_to_hero_guide/00_Local_Cloud_Inference101.ipynb +++ b/docs/zero_to_hero_guide/00_Local_Cloud_Inference101.ipynb @@ -15,6 +15,26 @@ "### Implementation" ] }, + { + "cell_type": "markdown", + "id": "bfac8382", + "metadata": {}, + "source": [ + "### 0. Configuration\n", + "Set up your connection parameters:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d80c0926", + "metadata": {}, + "outputs": [], + "source": [ + "HOST = \"localhost\" # Replace with your host\n", + "PORT = 5000 # Replace with your port" + ] + }, { "cell_type": "markdown", "id": "df89cff7", diff --git a/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb b/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb index de9583a20..b121d088a 100644 --- a/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb +++ b/docs/zero_to_hero_guide/03_Tool_Calling101.ipynb @@ -33,7 +33,7 @@ "outputs": [], "source": [ "HOST = \"localhost\" # Replace with your host\n", - "PORT = 5001 # Replace with your port" + "PORT = 5000 # Replace with your port" ] }, { @@ -146,7 +146,7 @@ "\n", "# Example usage\n", "async def search_example():\n", - " client = LlamaStackClient(base_url=\"http://localhost:5001\")\n", + " client = LlamaStackClient(base_url=\"http://{HOST}:{PORT}\")\n", " agent = await create_search_agent(client)\n", "\n", " # Create a session\n", @@ -307,7 +307,7 @@ "\n", "# Example usage\n", "async def weather_example():\n", - " client = LlamaStackClient(base_url=\"http://localhost:5001\")\n", + " client = LlamaStackClient(base_url=\"http://{HOST}:{PORT}\")\n", " agent = await create_weather_agent(client)\n", " session_id = agent.create_session(\"weather-session\")\n", "\n", diff --git a/docs/zero_to_hero_guide/04_Memory101.ipynb b/docs/zero_to_hero_guide/04_Memory101.ipynb index dd4cfb922..cdbb88be1 100644 --- a/docs/zero_to_hero_guide/04_Memory101.ipynb +++ b/docs/zero_to_hero_guide/04_Memory101.ipynb @@ -45,7 +45,7 @@ "outputs": [], "source": [ "HOST = \"localhost\" # Replace with your host\n", - "PORT = 5001 # Replace with your port" + "PORT = 5000 # Replace with your port" ] }, { @@ -152,7 +152,7 @@ "source": [ "# Configure connection parameters\n", "HOST = \"localhost\" # Replace with your host if using a remote server\n", - "PORT = 5001 # Replace with your port if different\n", + "PORT = 5000 # Replace with your port if different\n", "\n", "# Initialize client\n", "client = LlamaStackClient(\n", diff --git a/docs/zero_to_hero_guide/05_Safety101.ipynb b/docs/zero_to_hero_guide/05_Safety101.ipynb index 14fa03e36..beb513b9e 100644 --- a/docs/zero_to_hero_guide/05_Safety101.ipynb +++ b/docs/zero_to_hero_guide/05_Safety101.ipynb @@ -100,7 +100,7 @@ "outputs": [], "source": [ "HOST = \"localhost\" # Replace with your host\n", - "PORT = 5001 # Replace with your port" + "PORT = 5000 # Replace with your port" ] }, { diff --git a/docs/zero_to_hero_guide/06_Agents101.ipynb b/docs/zero_to_hero_guide/06_Agents101.ipynb index 0f8effd8c..b00596990 100644 --- a/docs/zero_to_hero_guide/06_Agents101.ipynb +++ b/docs/zero_to_hero_guide/06_Agents101.ipynb @@ -51,7 +51,7 @@ "outputs": [], "source": [ "HOST = \"localhost\" # Replace with your host\n", - "PORT = 5001 # Replace with your port" + "PORT = 5000 # Replace with your port" ] }, {