clean99/TalkGuidanceGPT

Add fall back text

Opened this issue · 0 comments

Now when the prompt is failed, or internet failed, it won't feedback anything. To improve this, add fallback mechanism to our system:

  1. error handling: add error handling in prompt(other place that need network), when error happen, try to get as much information as possible, and report it.
  2. fallback translator: now we are using gpt to translate, if network failed, we can have a fallback translator(try to find the library) or just hard code some failback text in multi language, to let user know that what is wrong now.