For programmers to need chatbot by Python using ChatGPT API,this tested source code is useful.
Specification
ID | STCD_0000000017 |
Language | Python |
Steps | 31 |
Purpose | Pay by PayPal |
Function | check Credit card number using Luhn algorithm. |
Environment | Ubuntu 20.04.4 LTS Anaconda3(Python 3.9.7) IDE : Visual Studio Code ChatGPT API |
Restriction | free license You can use source code copy as owner . You can customize and distribute it freely. |
Price | 7 dollars or 700 yen (Pay by PayPal) |
References | https://platform.openai.com/docs/api-reference |
Source Code


Test Result
NO | test case | result |
01 | new chat | OK |
02 | new char after reset | OK |
Test Code
*) Modify “path” along your PC environment.

History
25/5/2023 created
Provider Profile
Nick name is “Dead Fish” employed as an engineer in Japan.
I am grad if you need my code.
Thanks !
Download
Get download passwordFollowing files and data are zipped.
└── ChatbotClass.py
Remarks
None
Comments
You have a unique ability to bring clarity to complex topics. Great job on this post!