MoneyPrinter: [BUG] get_search_terms() is returning the terms in a json script context

Describe the bug

Sometimes the get_search_terms function is returning something like this:

  ```json
  [
    "Supreme Court ruling",
    "Presidential immunity",
    "January 6 insurrection",
    "Judicial scrutiny",
    "High court decision",
    "Oval Office"
  ]```

To Reproduce Just try using more complex subjects.

Expected behavior Should return only in this format [“search term 1”, “search term 2”, “search term 3”]

Desktop (please complete the following information):

  • OS: Windows 11
  • AI Model: GPT 3.5 and 4

Additional context Changing the prompt is enough to fix it.

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Dude what is with closing stuff and not commenting on it

Ah so the ` marks are in the response. Got it. Probably an easy thing to check for.