Skip to content

Conversation

@lkuligin
Copy link
Collaborator

@lkuligin lkuligin commented Jul 5, 2023

@vercel
Copy link

vercel bot commented Jul 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jul 6, 2023 5:48am

else:
init = retry_if_exception_type(error_types[0])
retries = functools.reduce(
lambda x, y: x | retry_if_exception_type(y), # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a simpler way to do this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, take a look, maybe it's more readable without functools.

@hwchase17
Copy link
Contributor

like the refactor out

Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice - thanks!

@hwchase17 hwchase17 merged commit 8b19f6a into langchain-ai:master Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants