Skip to content

Commit c4f8230

Browse files
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 809606f commit c4f8230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posthog/ai/openai/openai_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ async def _capture_streaming_event(
449449
posthog_trace_id = str(uuid.uuid4())
450450

451451
# Use model from kwargs, fallback to model from response
452-
model = kwargs.get("model") or model_from_response
452+
model = kwargs.get("model") or model_from_response or "unknown"
453453

454454
event_properties = {
455455
"$ai_provider": "openai",

0 commit comments

Comments
 (0)