mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 06:53:47 +00:00
agent kind of working
This commit is contained in:
parent
5a3e1c5f63
commit
9e24f31b8d
4 changed files with 111 additions and 78 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue