We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eaa4cf commit b668599Copy full SHA for b668599
langfuse/openai.py
@@ -172,7 +172,7 @@ def get_openai_args(self):
172
# If OpenAI model distillation is enabled, we need to add the metadata to the kwargs
173
# https://platform.openai.com/docs/guides/distillation
174
if self.kwargs.get("store", False):
175
- self.kwargs["metadata"] = self.args.get("metadata", {})
+ self.kwargs["metadata"] = {} if self.args.get("metadata", None) is None else self.args["metadata"]
176
177
# OpenAI does not support non-string type values in metadata when using
178
# model distillation feature
0 commit comments