-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py tracer fixes #5377
py tracer fixes #5377
Conversation
raise_for_status_with_text(response) | ||
response = None | ||
try: | ||
response = requests.get(endpoint_ + "/tenants", headers=headers_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be removed, or is that another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -72,6 +119,8 @@ def __init__( | |||
self.example_id = example_id | |||
self.session_name = session_name or os.getenv("LANGCHAIN_SESSION", "default") | |||
self.session_extra = session_extra | |||
# set max_workers to 1 to process tasks in order |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does order matter? Can we rely on every user of the api being as strict about order as we are being here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll fail if a child run gets posted before a parent run at least, right? (parent_run_id not found)
run_dict = run.dict() | ||
del run_dict["child_runs"] | ||
run_create = RunCreate(**run_dict, session_id=session.id) | ||
run.reference_example_id = self.example_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this, (I think) we should be only assigning if there is no parent_run_id, otherwise it links all the nested child runs to an example
Not merging yet due to two issues:
cc @vowelparrot