From 6c521e71b76da2f2d74820e4a9738b077e6a45c7 Mon Sep 17 00:00:00 2001 From: brandon Date: Thu, 14 Nov 2024 16:21:13 -0800 Subject: [PATCH] We can better provide support/versioning if we know the python version --- src/groundlight/internalapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/groundlight/internalapi.py b/src/groundlight/internalapi.py index 5952c264..eb98cd8e 100644 --- a/src/groundlight/internalapi.py +++ b/src/groundlight/internalapi.py @@ -1,6 +1,7 @@ import json import logging import os +import platform import random import time import uuid @@ -161,7 +162,7 @@ class GroundlightApiClient(ApiClient): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.user_agent = f"Groundlight-Python-SDK/{get_version()}" + self.user_agent = f"Groundlight-Python-SDK/{platform.platform()}/{platform.python_version()}/{get_version()}" REQUEST_ID_HEADER = "X-Request-Id"