agent kind of working

This commit is contained in:
Kai Wu 2024-11-06 17:54:38 -08:00
parent 5a3e1c5f63
commit 9e24f31b8d
4 changed files with 111 additions and 78 deletions

View file

@ -117,7 +117,7 @@
"os.environ[\"BRAVE_SEARCH_API_KEY\"] = \"YOUR_SEARCH_API_KEY\"\n",
"\n",
"async def agent_example():\n",
" client = LlamaStackClient(base_url=\"http://{HOST}:{PORT}\")\n",
" client = LlamaStackClient(base_url=f\"http://{HOST}:{PORT}\")\n",
" models_response = client.models.list()\n",
" for model in models_response:\n",
" if model.identifier.endswith(\"Instruct\"):\n",