Skip to content

Bug : ( Exception Thrown: Error in Output Format from gpt and sometimes youtube api) #3

@lalitdotdev

Description

@lalitdotdev

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:

  1. Trigger the action that leads to the error.
  2. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions