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

feat: Rework error handling #48

Merged
merged 1 commit into from
Sep 15, 2024
Merged

feat: Rework error handling #48

merged 1 commit into from
Sep 15, 2024

Conversation

baxen
Copy link
Collaborator

@baxen baxen commented Sep 13, 2024

The previous implementation was too inclusive in many cases, and also squashed the original error output which made it hard to identify problems in setup. This approach should let us support retrying flakey errors while not squashing real issues like access, incorrect model ids, etc

Adding tenacity as a dep - it has an apache license, zero dependencies, and provides a great standard for error handling

Copy link
Collaborator

@zakiali zakiali left a comment

Choose a reason for hiding this comment

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

lgtm!

The previous implementation was too inclusive in many cases, and
also squashed the original error output which made it hard to identify
problems in setup. This approach should let us support retrying flakey
errors while not squashing real issues like access, incorrect model ids,
etc

Adding tenacity as a dep - it has an apache license, zero dependencies,
and provides a great standard for error handling
@baxen baxen merged commit ed8bbbf into main Sep 15, 2024
4 checks passed
lifeizhou-ap added a commit that referenced this pull request Sep 18, 2024
* main:
  feat: Rework error handling (#48)
  chore(release): release version 0.9.0 (#45)
  chore: add just command for releases and update pyproject for changelog (#43)
  feat: convert ollama provider to an openai configuration (#34)
  fix: Bedrock Provider request (#29)
  test: Update truncate and summarize tests to check for sytem prompt t… (#42)
  chore: update test_tools to read a file instead of get a password (#38)
  fix: Use placeholder message to check tokens (#41)
  feat: rewind to user message (#30)
  chore: Update LICENSE (#40)
  fix: shouldn't hardcode truncate to gpt4o mini (#35)
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