We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3c5b1 commit 89da281Copy full SHA for 89da281
langfuse/openai.py
@@ -170,6 +170,11 @@ def get_langfuse_args(self):
170
return {**self.args, **self.kwargs}
171
172
def get_openai_args(self):
173
+ # If OpenAI model distillation is enabled, we need to add the metadata to the kwargs
174
+ # https://platform.openai.com/docs/guides/distillation
175
+ if self.kwargs.get("store", False):
176
+ self.kwargs["metadata"] = self.args.get("metadata", {})
177
+
178
return self.kwargs
179
180
0 commit comments