Skip to content

Commit 1e73b4d

Browse files
committed
chore black
1 parent 39005bb commit 1e73b4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llm_observability_examples.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
posthog_client=posthog,
2323
)
2424

25+
2526
def main_sync():
2627
trace_id = str(uuid.uuid4())
2728
print("Trace ID:", trace_id)
@@ -187,13 +188,12 @@ async def embedding_async_openai_call(posthog_distinct_id, posthog_trace_id, pos
187188
return response
188189

189190

190-
# TODO: add beta client
191-
192191
class CalendarEvent(BaseModel):
193192
name: str
194193
date: str
195194
participants: list[str]
196195

196+
197197
def beta_openai_call(distinct_id, trace_id, properties, groups):
198198
response = openai_client.beta.chat.completions.parse(
199199
model="gpt-4o-mini",
@@ -210,6 +210,7 @@ def beta_openai_call(distinct_id, trace_id, properties, groups):
210210
print(response)
211211
return response
212212

213+
213214
# HOW TO RUN:
214215
# comment out one of these to run the other
215216

0 commit comments

Comments
 (0)