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

openai-python api doc #399

Open
1 task
irthomasthomas opened this issue Jan 20, 2024 · 0 comments
Open
1 task

openai-python api doc #399

irthomasthomas opened this issue Jan 20, 2024 · 0 comments
Labels
ai-platform model hosts and APIs openai OpenAI APIs, LLMs, Recipes and Evals python Python code, tools, info

Comments

@irthomasthomas
Copy link
Owner

Add error handling for failed API requests

Is this a bug or feature request?
Bug

What is the current behavior?
Currently, the application does not handle failed API requests, resulting in a poor user experience and potential loss of data.

What is the expected behavior?
The application should handle failed API requests gracefully, providing clear error messages to the user and, if possible, retrying the request.

What is the impact of this issue?
The lack of error handling can lead to confusion for users when API requests fail, and may cause them to lose data if they are not aware that the request has failed. Additionally, it can make it difficult for developers to diagnose and fix issues with the application.

Possible Solutions:

  1. Implement a global error handler that catches failed API requests and displays an appropriate error message to the user.
  2. If possible, implement a retry mechanism for failed API requests, to increase the chances of success on the second attempt.
  3. Log failed API requests for further analysis and debugging.

Steps to reproduce:

  1. Open the application.
  2. Trigger an API request (e.g. by submitting a form, or refreshing the page).
  3. Disconnect from the internet or otherwise prevent the API request from succeeding.
  4. Observe the lack of error handling and the poor user experience.

Additional context:
This issue has been identified as a priority for improving the reliability and user experience of the application. It is also an important step in ensuring that the application can be easily maintained and debugged by developers.

Suggested labels

{ "key": "ai-platform", "value": "Platforms and tools for implementing AI solutions" }

@irthomasthomas irthomasthomas added the New-Label Choose this option if the existing labels are insufficient to describe the content accurately label Jan 20, 2024
@irthomasthomas irthomasthomas changed the title openai-python/api.md at main · openai/openai-python openai-python api doc Jan 20, 2024
@irthomasthomas irthomasthomas added inbox-man openai OpenAI APIs, LLMs, Recipes and Evals python Python code, tools, info ai-platform model hosts and APIs and removed New-Label Choose this option if the existing labels are insufficient to describe the content accurately labels Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai-platform model hosts and APIs openai OpenAI APIs, LLMs, Recipes and Evals python Python code, tools, info
Projects
None yet
Development

No branches or pull requests

1 participant