openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Fix the incorrect string formatting and ensure the subcategories variable is embedded in the prompt

Open yuichielectric opened this issue 7 months ago • 0 comments

This cookbook is trying to use the subcategories variable in the prompt, but because the f-string wasn't specified, {subcategories} was being included in the prompt as a literal string. I've fixed this by making the prompt an f-string and escaping characters as needed.

yuichielectric avatar Apr 13 '25 04:04 yuichielectric