Skip to content

Commit

Permalink
Easier local testing!
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaPurtell committed Dec 18, 2024
1 parent 2eebf7e commit f5b4a76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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.99"
version = "0.2.100"
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.99",
version="0.2.100",
packages=find_packages(),
install_requires=[
"opentelemetry-api",
Expand Down
5 changes: 4 additions & 1 deletion synth_sdk/tracing/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ def upload_helper(
api_key = os.getenv("SYNTH_API_KEY")
if not api_key:
raise ValueError("SYNTH_API_KEY environment variable not set")
base_url = os.getenv(
"SYNTH_ENDPOINT_OVERRIDE", "https://agent-learning.onrender.com"
)

# End all active events before uploading
from synth_sdk.tracing.decorators import _local
Expand Down Expand Up @@ -395,7 +398,7 @@ def upload_helper(
response, payload = send_system_traces_s3(
dataset=dataset,
traces=traces,
base_url="https://agent-learning.onrender.com",
base_url=base_url,
api_key=api_key,
system_id=traces[0].system_id,
verbose=verbose,
Expand Down

0 comments on commit f5b4a76

Please sign in to comment.