port standardization

This commit is contained in:
Justin Lee 2024-11-05 16:41:42 -08:00
parent b556cd91fd
commit 67f727578c
5 changed files with 27 additions and 7 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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"
]
},
{

View file

@ -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"
]
},
{