openai-cookbook
openai-cookbook copied to clipboard
Fix the incorrect string formatting and ensure the subcategories variable is embedded in the prompt
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.