Skip to content

Commit 809606f

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

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
@@ -198,7 +198,7 @@ async def _capture_streaming_event(
198198
posthog_trace_id = str(uuid.uuid4())
199199

200200
# Use model from kwargs, fallback to model from response
201-
model = kwargs.get("model") or model_from_response
201+
model = kwargs.get("model") or model_from_response or "unknown"
202202

203203
event_properties = {
204204
"$ai_provider": "openai",

0 commit comments

Comments
 (0)