Skip to content

Commit

Permalink
Roll back to stateless requests. Reason: problem with SSL certificate…
Browse files Browse the repository at this point in the history
… verification which requires additional work and testing
  • Loading branch information
alexkuzmik committed Nov 30, 2023
1 parent 6af8e11 commit a0e9bb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/comet_llm/experiment_api/comet_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class CometAPIClient:
def __init__(self, api_key: str, comet_url: str):
self._headers = {"Authorization": api_key}
self._comet_url = comet_url
self._session = requests.Session()

def create_experiment(
self,
Expand Down Expand Up @@ -122,9 +121,7 @@ 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 = requests.request(method, url, headers=self._headers, *args, **kwargs)

response.raise_for_status()

Expand Down

0 comments on commit a0e9bb2

Please sign in to comment.