From 5db34bb6ad4c9521ea1871ca4d1894901027206a Mon Sep 17 00:00:00 2001 From: duanzhicheng200506 Date: Tue, 27 Jun 2023 19:44:09 +0800 Subject: [PATCH 1/2] add categories json --- content/Building Systems with the ChatGPT API/categories.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 content/Building Systems with the ChatGPT API/categories.json 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 From 9af4576a3464bc3e15cb4c1788420b76229ee384 Mon Sep 17 00:00:00 2001 From: duanzhicheng200506 Date: Tue, 27 Jun 2023 19:44:28 +0800 Subject: [PATCH 2/2] fix ignore dot --- content/Building Systems with the ChatGPT API/utils_zh.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)