diff options
author | Bagus Indrayana <bagusindrayanaindo@gmail.com> | 2023-07-11 16:40:42 +0200 |
---|---|---|
committer | Bagus Indrayana <bagusindrayanaindo@gmail.com> | 2023-07-11 16:40:42 +0200 |
commit | 42a5bad4eaf27af4b46811ca11bb8aab0d076a76 (patch) | |
tree | 46ebddba8c3f612a70a1d91138050534ac038216 /testing | |
parent | add provider and helper (diff) | |
download | gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.tar gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.tar.gz gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.tar.bz2 gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.tar.lz gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.tar.xz gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.tar.zst gpt4free-42a5bad4eaf27af4b46811ca11bb8aab0d076a76.zip |
Diffstat (limited to '')
-rw-r--r-- | testing/binghuan/testing.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/binghuan/testing.py b/testing/binghuan/testing.py index e69de29b..e03c598d 100644 --- a/testing/binghuan/testing.py +++ b/testing/binghuan/testing.py @@ -0,0 +1,30 @@ +from BingHuan 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)
\ No newline at end of file |