Skip to content

Commit

Permalink
new api
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaPurtell committed Nov 13, 2024
1 parent c3ec740 commit 0bc5383
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "synth-sdk"
version = "0.2.61"
version = "0.2.64"
description = ""
authors = [{name = "Synth AI", email = "[email protected]"}]
license = {text = "MIT"}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="synth-sdk",
version="0.2.61",
version="0.2.64",
packages=find_packages(),
install_requires=[
"opentelemetry-api",
Expand Down
6 changes: 3 additions & 3 deletions synth_sdk/tracing/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def send_system_traces(
):
"""Send all system traces and dataset metadata to the server."""
# Get the token using the API key
token_url = f"{base_url}/token"
token_url = f"{base_url}/v1/auth/token"
token_response = requests.get(
token_url, headers={"customer_specific_api_key": api_key}
)
Expand All @@ -50,7 +50,7 @@ def send_system_traces(

# print("Traces: ", traces)
# Send the traces with the token
api_url = f"{base_url}/upload/"
api_url = f"{base_url}/v1/uploads/"

payload = createPayload(dataset, traces) # Create the payload

Expand Down Expand Up @@ -267,7 +267,7 @@ async def upload_helper(dataset: Dataset, traces: List[SystemTrace]=[], verbose:
if show_payload:
print("Payload sent to server: ")
pprint(payload)
return response, payload
return response, payload, dataset, traces
except ValueError as e:
if verbose:
print("Validation error:", str(e))
Expand Down

0 comments on commit 0bc5383

Please sign in to comment.