Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

fix: remove endpoint from juypter notebook example

Shawn Qiub3ca6115e731
diff --git a/examples/openai-gpt.ipynb b/examples/openai-gpt.ipynb
index 9a6a063e..7e59b64f 100644
--- a/examples/openai-gpt.ipynb
+++ b/examples/openai-gpt.ipynb
@@ -13,7 +13,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 1,
"id": "c51dcbda80eb8c53",
"metadata": {
"ExecuteTime": {
@@ -42,7 +42,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 2,
"id": "cbc5d13679e269dc",
"metadata": {
"ExecuteTime": {
@@ -70,7 +70,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 3,
"id": "fe8116d5969f1d23",
"metadata": {
"ExecuteTime": {
@@ -82,7 +82,7 @@
"outputs": [],
"source": [
"openai = OpenAI(api_key=OPENAI_API_KEY)\n",
- "ao_client = agentops.Client(AGENTOPS_API_KEY, endpoint=\"http://localhost:8000\")\n"
+ "ao_client = agentops.Client(AGENTOPS_API_KEY)\n"
]
},
{
@@ -201,7 +201,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 4,
"id": "b45754a57148eed1",
"metadata": {
"ExecuteTime": {
@@ -210,7 +210,18 @@
},
"collapsed": false
},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "6"
+ ]
+ },
+ "execution_count": 4,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
"from agentops import record_function\n",
"\n",