Skip to content
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

- #100

Merged
merged 1 commit into from
Jul 17, 2023
Merged

- #100

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,20 +315,20 @@ def request_with_retries(
if response is not None and response.status_code == 500:
raise LangSmithAPIError(
f"Server error caused failure to {request_method} {url} in"
f" LangChain+ API. {e}"
f" LangSmith API. {e}"
)
else:
raise LangSmithUserError(
f"Failed to {request_method} {url} in LangChain+ API. {e}"
f"Failed to {request_method} {url} in LangSmith API. {e}"
)
except ConnectionError as e:
raise LangSmithConnectionError(
f"Connection error caused failure to {request_method} {url}"
" in LangChain+ API. Please confirm your LANGCHAIN_ENDPOINT."
" in LangSmith API. Please confirm your LANGCHAIN_ENDPOINT."
) from e
except Exception as e:
raise LangSmithError(
f"Failed to {request_method} {url} in LangChain+ API. {e}"
f"Failed to {request_method} {url} in LangSmith API. {e}"
) from e

def _get_with_retries(
Expand Down