We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c989f33 commit 37187ccCopy full SHA for 37187cc
1 file changed
langfuse/openai.py
@@ -175,6 +175,10 @@ def get_openai_args(self):
175
if self.kwargs.get("store", False):
176
self.kwargs["metadata"] = self.args.get("metadata", {})
177
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
+
182
return self.kwargs
183
184
0 commit comments