From c09f6bf016ac763ade9ccf30fac50bb17a5483da Mon Sep 17 00:00:00 2001 From: Grey_D Date: Mon, 27 Feb 2023 14:34:44 +0800 Subject: [PATCH] initial setup --- example_chatgpt_api.py | 5 +++++ requirements.txt | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 example_chatgpt_api.py create mode 100644 requirements.txt diff --git a/example_chatgpt_api.py b/example_chatgpt_api.py new file mode 100644 index 0000000..cb30dd8 --- /dev/null +++ b/example_chatgpt_api.py @@ -0,0 +1,5 @@ +from chatgpt_wrapper import ChatGPT + +bot = ChatGPT() +response = bot.ask("Hello, world!") +print(response) # prints the response from chatGPT \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4da4cd1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +requests +pyyaml +playwright==1.28.0