Issue Title: Exception Thrown: Error in Output Format
Description:
An exception is occurring in the application with the following error message:
Error: Output format not in an array of JSON
This issue arises when the strict_output function encounters an unexpected output format that is not in an array of JSON. The error is thrown at line 62 in the gpt.ts file.
Steps to Reproduce:
- Trigger the action that leads to the error.
- Observe the error message displayed.
Expected Behavior:
The strict_output function should handle various output formats gracefully and not throw an error when encountering an unexpected format.
Impact:
This issue sometimes doesn't load one or two chapters from API and show JSON format issue.
Issue Title: Exception Thrown: Error in Output Format
Description:
An exception is occurring in the application with the following error message:
This issue arises when the
strict_outputfunction encounters an unexpected output format that is not in an array of JSON. The error is thrown at line 62 in thegpt.tsfile.Steps to Reproduce:
Expected Behavior:
The
strict_outputfunction should handle various output formats gracefully and not throw an error when encountering an unexpected format.Impact:
This issue sometimes doesn't load one or two chapters from API and show JSON format issue.