Open Anushka-Pote opened 5 hours ago
Thank you for creating this issue! π We'll look into it as soon as possible.
I don't think this one is necessary. It can be handled on the client side.
Ohh.. I have worked with APIs before and thought Error handling and Logging of API calls etc like functions are crucial for Debugging issues, so thought to mention
You can work then
π Feature description
To improve robustness, this issue focuses on enhancing error handling mechanisms across all API calls in the chat_with_chatbot function. This includes catching network-related issues, providing meaningful error messages, and validating that the API key is present before making any requests.
π€ Why is this feature needed ?
To improve robustness, this issue focuses on enhancing error handling mechanisms across all API calls in the chat_with_chatbot function. This includes catching network-related issues, providing meaningful error messages, and validating that the API key is present before making any requests.
βοΈ How do you aim to achieve this?
API Key Validation: Check that the apiKey variable is not empty before any API requests are made, and raise an error if it is missing.
Error Handling for Network Requests: Add exception handling to catch network errors for all API calls, returning a clear error message in case of a failure.
ποΈ Additional Information
No response
π Have you spent some time to check if this feature request has been raised before?
Are you willing to submit PR?
Yes I am willing to submit a PR!