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

Fix #100 #101

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Fix #100 #101

merged 1 commit into from
Jul 29, 2024

Conversation

goodniceweb
Copy link
Contributor

@goodniceweb goodniceweb commented Jul 29, 2024

Context
Linked issue: #100

When API experience latency and increased error rates, from time to time there is an error related closed connection happens.

Solution

  1. To fix "no function clause matching OpenaiEx.Http.Finch.to_error/2" in this commit you find an addition clause for the error building mechanism
  2. Also, there is a default function clause so other developers can can catch errors in a regular way and do not mess with the "try catch" statements.

**Context**
When API experience latency and increased error rates,
from time to time there is an error related closed connection
happens.

**Solution**
1. To fix "no function clause matching OpenaiEx.Http.Finch.to_error/2"
   in this commit you find an addition clause for the error building
   mechanism
2. Also, there is a default function clause so other developers can
   can catch errors in a regular way and do not mess with the "try catch"
   statements.
@restlessronin restlessronin merged commit d19bf73 into cyberchitta:main Jul 29, 2024
1 check failed
@restlessronin
Copy link
Member

@goodniceweb merged. Thank you for the PR! 🎉🎉🎉🎉

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