diff --git a/haystack/preview/components/generators/openai/gpt.py b/haystack/preview/components/generators/openai/gpt.py index e5618f738..fd9224376 100644 --- a/haystack/preview/components/generators/openai/gpt.py +++ b/haystack/preview/components/generators/openai/gpt.py @@ -91,6 +91,12 @@ class GPTGenerator: self.streaming_callback = streaming_callback self.api_base_url = api_base_url + def _get_telemetry_data(self) -> Dict[str, Any]: + """ + Data that is sent to Posthog for usage analytics. + """ + return {"model": self.model_name} + def to_dict(self) -> Dict[str, Any]: """ Serialize this component to a dictionary.