diff options
Diffstat (limited to 'g4f/.v1/gpt4free/usesless/test.py')
-rw-r--r-- | g4f/.v1/gpt4free/usesless/test.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/g4f/.v1/gpt4free/usesless/test.py b/g4f/.v1/gpt4free/usesless/test.py new file mode 100644 index 00000000..ade1e0c5 --- /dev/null +++ b/g4f/.v1/gpt4free/usesless/test.py @@ -0,0 +1,10 @@ +# Fix by @enganese +# Import Account class from __init__.py file +from gpt4free import usesless + +# Create Account and enable logging to see all the log messages (it's very interesting, try it!) +# New account credentials will be automatically saved in account.json file in such template: {"email": "username@1secmail.com", "token": "token here"} +token = usesless.Account.create(logging=True) + +# Print the new token +print(token) |