Skip to content

Commit

Permalink
feat(openai): add response_format to metadata (#846)
Browse files Browse the repository at this point in the history
feat(openai): add response_format to metada
  • Loading branch information
hassiebp authored Aug 7, 2024
1 parent ab48173 commit bca50da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion langfuse/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ def __init__(
):
self.args = {}
self.args["name"] = name
self.args["metadata"] = metadata
self.args["metadata"] = (
metadata
if "response_format" not in kwargs
else {**(metadata or {}), "response_format": kwargs["response_format"]}
)
self.args["trace_id"] = trace_id
self.args["session_id"] = session_id
self.args["user_id"] = user_id
Expand Down

0 comments on commit bca50da

Please sign in to comment.