diff --git a/content/Building Systems with the ChatGPT API/categories.json b/content/Building Systems with the ChatGPT API/categories.json new file mode 100644 index 0000000..ae73479 --- /dev/null +++ b/content/Building Systems with the ChatGPT API/categories.json @@ -0,0 +1 @@ +{"Billing": ["Unsubscribe or upgrade", "Add a payment method", "Explanation for charge", "Dispute a charge"], "Technical Support": ["General troubleshooting", "Device compatibility", "Software updates"], "Account Management": ["Password reset", "Update personal information", "Close account", "Account security"], "General Inquiry": ["Product information", "Pricing", "Feedback", "Speak to a human"]} \ No newline at end of file diff --git a/content/Building Systems with the ChatGPT API/utils_zh.py b/content/Building Systems with the ChatGPT API/utils_zh.py index 33be701..5cbbb39 100644 --- a/content/Building Systems with the ChatGPT API/utils_zh.py +++ b/content/Building Systems with the ChatGPT API/utils_zh.py @@ -113,21 +113,21 @@ def create_categories(): 'Explanation for charge', 'Dispute a charge'], 'Technical Support':[ - 'General troubleshooting' + 'General troubleshooting', 'Device compatibility', 'Software updates'], 'Account Management':[ - 'Password reset' + 'Password reset', 'Update personal information', 'Close account', 'Account security'], 'General Inquiry':[ - 'Product information' + 'Product information', 'Pricing', 'Feedback', 'Speak to a human'] } - + with open(categories_file, 'w') as file: json.dump(categories_dict, file)