diff options
author | xtekky <98614666+xtekky@users.noreply.github.com> | 2023-07-11 20:25:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 20:25:59 +0200 |
commit | f6d626eff267d8047b3b42cc5bfadec8e4f1dce1 (patch) | |
tree | c144d1562c5afee68d92f6d036deb6a7a61315fd /testing/wewordle/testing.py | |
parent | Merge pull request #737 from AlephZero255/main (diff) | |
parent | add wewordle (diff) | |
download | gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.tar gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.tar.gz gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.tar.bz2 gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.tar.lz gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.tar.xz gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.tar.zst gpt4free-f6d626eff267d8047b3b42cc5bfadec8e4f1dce1.zip |
Diffstat (limited to 'testing/wewordle/testing.py')
-rw-r--r-- | testing/wewordle/testing.py | 30 |
1 files changed, 30 insertions, 0 deletions
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) |