Skip to content

Commit 37187cc

Browse files
authored
fix(openai): remove response_format in model distil feat (#1045)
1 parent c989f33 commit 37187cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

langfuse/openai.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def get_openai_args(self):
175175
if self.kwargs.get("store", False):
176176
self.kwargs["metadata"] = self.args.get("metadata", {})
177177

178+
# OpenAI does not support non-string type values in metadata when using
179+
# model distillation feature
180+
self.kwargs["metadata"].pop("response_format", None)
181+
178182
return self.kwargs
179183

180184

0 commit comments

Comments
 (0)