diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-30 00:48:54 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-30 00:48:54 +0200 |
commit | 9489dda310af9d91a75390ae4c9388a25b45534a (patch) | |
tree | cd3c53b7fb27cb7b55f94fa5a6dfe3c0cf06dbd5 /testing/test_main.py | |
parent | _ (diff) | |
parent | Merge pull request #282 from DanielShemesh/patch-5 (diff) | |
download | gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.gz gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.bz2 gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.lz gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.xz gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.zst gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.zip |
Diffstat (limited to 'testing/test_main.py')
-rw-r--r-- | testing/test_main.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/testing/test_main.py b/testing/test_main.py index 612ec695..7c28f1d2 100644 --- a/testing/test_main.py +++ b/testing/test_main.py @@ -1,24 +1,27 @@ -from openai_rev import openai_rev, Provider, quora, forefront +import gpt4free +from gpt4free import Provider, quora, forefront # usage You -response = openai_rev.Completion.create(Provider.You, prompt='Write a poem on Lionel Messi') +response = gpt4free.Completion.create(Provider.You, prompt='Write a poem on Lionel Messi') print(response) # usage Poe token = quora.Account.create(logging=False) -response = openai_rev.Completion.create( - Provider.Poe, prompt='Write a poem on Lionel Messi', token=token, model='ChatGPT' -) +response = gpt4free.Completion.create(Provider.Poe, prompt='Write a poem on Lionel Messi', token=token, model='ChatGPT') print(response) # usage forefront token = forefront.Account.create(logging=False) -response = openai_rev.Completion.create( +response = gpt4free.Completion.create( Provider.ForeFront, prompt='Write a poem on Lionel Messi', model='gpt-4', token=token ) print(response) print(f'END') # usage theb -response = openai_rev.Completion.create(Provider.Theb, prompt='Write a poem on Lionel Messi') +response = gpt4free.Completion.create(Provider.Theb, prompt='Write a poem on Lionel Messi') +print(response) + +# usage cocalc +response = gpt4free.Completion.create(Provider.CoCalc, prompt='Write a poem on Lionel Messi', cookie_input='') print(response) |