From 51a8fe196b20e0396e76cefa791d729f29dc2f4e Mon Sep 17 00:00:00 2001 From: Bagus Indrayana Date: Tue, 11 Jul 2023 20:28:55 +0800 Subject: add wewordle --- testing/wewordle/testing.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testing/wewordle/testing.py (limited to 'testing/wewordle/testing.py') diff --git a/testing/wewordle/testing.py b/testing/wewordle/testing.py new file mode 100644 index 00000000..cebcaeed --- /dev/null +++ b/testing/wewordle/testing.py @@ -0,0 +1,30 @@ +from Wewordle import ChatCompletion + +# Test 1 +response = ChatCompletion.create(model="gpt-3.5-turbo", + provider="Wewordle", + stream=False, + messages=[{'role': 'user', 'content': 'who are you?'}]) + +print(response) + +# Test 2 +response = ChatCompletion.create(model="gpt-3.5-turbo", + provider="Wewordle", + stream=False, + messages=[{'role': 'user', 'content': 'what you can do?'}]) + +print(response) + + +# Test 3 +response = ChatCompletion.create(model="gpt-3.5-turbo", + provider="Wewordle", + stream=False, + messages=[ + {'role': 'user', 'content': 'now your name is Bob'}, + {'role': 'assistant', 'content': 'Hello Im Bob, you asistant'}, + {'role': 'user', 'content': 'what your name again?'}, + ]) + +print(response) -- cgit v1.2.3