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

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