Skip to content

Commit 250de5a

Browse files
fix: remove unsupported posthog_distinct_id kwarg from Mirascope example
Mirascope doesn't pass extra kwargs through to the OpenAI client. Tracking still works via the wrapped client.
1 parent ea6e447 commit 250de5a

File tree

1 file changed

+1
-4
lines changed
  • examples/example-ai-mirascope

1 file changed

+1
-4
lines changed

examples/example-ai-mirascope/chat.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ def recommend_book(genre: str):
1717
return f"Recommend a {genre} book."
1818

1919

20-
response = recommend_book(
21-
"fantasy",
22-
posthog_distinct_id="example-user",
23-
)
20+
response = recommend_book("fantasy")
2421

2522
print(response.content)
2623
posthog.shutdown()

0 commit comments

Comments
 (0)