diff --git a/src/comet_llm/experiment_api/comet_api_client.py b/src/comet_llm/experiment_api/comet_api_client.py index 514ebc1949..0be5ead36b 100644 --- a/src/comet_llm/experiment_api/comet_api_client.py +++ b/src/comet_llm/experiment_api/comet_api_client.py @@ -122,10 +122,13 @@ def log_experiment_other( def _request(self, method: str, path: str, *args, **kwargs) -> ResponseContent: # type: ignore url = urllib.parse.urljoin(self._comet_url, path) - request = requests.Request(method, url, headers=self._headers, *args, **kwargs) - - response = self._session.send(request.prepare()) - + response = self._session.request( + method=method, + url=url, + headers=self._headers, + *args, + **kwargs, + ) response.raise_for_status() return response.json()