fac30sb / discord-chatbot-emma-egbie

0 stars 0 forks source link

error handling for prompt function #45

Closed otam-mato closed 7 months ago

otam-mato commented 7 months ago

A suggestion to implement the error handling for the "async prompt" method within the "OpenAiManager" class.

I noticed that "_generateReply(messages)" method has its own error handling, but since the "prompt"involves also caching mechanism and other validations, it would make sense to include error handling for it as well.

And It will be probably needed for writing the test case :)