Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 5f4c92a

Browse files
authored
fix: set settings.model to stream chunk model in openai instrumentation (#152)
* fix: streaming model.settings openai instrumentation * fix: remove print
1 parent e13c32a commit 5f4c92a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

literalai/instrumentation/openai.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ def streaming_response(
310310
and generation.model != chunk.model
311311
):
312312
generation.model = chunk.model
313+
if generation.settings:
314+
generation.settings["model"] = chunk.model
313315

314316
yield chunk
315317

0 commit comments

Comments
 (0)