Skip to content

Commit 1ef88a7

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Completes OPEN-5706 Update llm_monitors for conceptual unity with the tracing experience
1 parent 0150455 commit 1ef88a7

File tree

4 files changed

+144
-402
lines changed

4 files changed

+144
-402
lines changed

examples/monitoring/llms/openai-assistant/openai_assistant.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"from openlayer import llm_monitors\n",
6666
"\n",
6767
"openai_client = openai.OpenAI()\n",
68-
"monitor = llm_monitors.OpenAIMonitor(client=openai_client, publish=True)"
68+
"monitor = llm_monitors.OpenAIMonitor(client=openai_client)"
6969
]
7070
},
7171
{
@@ -168,7 +168,7 @@
168168
"name": "python",
169169
"nbconvert_exporter": "python",
170170
"pygments_lexer": "ipython3",
171-
"version": "3.8.13"
171+
"version": "3.9.18"
172172
}
173173
},
174174
"nbformat": 4,

examples/monitoring/quickstart/llms/openai_llm_monitor.ipynb

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,15 @@
6767
"from openlayer import llm_monitors\n",
6868
"\n",
6969
"openai_client = openai.OpenAI()\n",
70-
"openai_monitor = llm_monitors.OpenAIMonitor(client=openai_client, publish=True) # with publish=True, every row gets published to Openlayer automatically"
70+
"openai_monitor = llm_monitors.OpenAIMonitor(client=openai_client)"
7171
]
7272
},
7373
{
7474
"cell_type": "markdown",
7575
"id": "72a6b954",
7676
"metadata": {},
7777
"source": [
78-
"## 3. Turn it on!"
79-
]
80-
},
81-
{
82-
"cell_type": "code",
83-
"execution_count": null,
84-
"id": "2cb5ce9b",
85-
"metadata": {},
86-
"outputs": [],
87-
"source": [
88-
"openai_monitor.start_monitoring()"
78+
"## 3. Use your monitored OpenAI client normally"
8979
]
9080
},
9181
{

0 commit comments

Comments
 (0)