diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-10-10 16:29:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 16:29:51 +0200 |
commit | 26cd71c7f48f7d8417d1f0348d2d1f89636e54d6 (patch) | |
tree | 891c9e1aaf8fec34bac0b4031cfeb1ca8354e402 /etc/testing/test_chat_completion.py | |
parent | ~ | g4f `v-0.1.5.7` (diff) | |
parent | fix html (diff) | |
download | gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.tar gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.tar.gz gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.tar.bz2 gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.tar.lz gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.tar.xz gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.tar.zst gpt4free-26cd71c7f48f7d8417d1f0348d2d1f89636e54d6.zip |
Diffstat (limited to 'etc/testing/test_chat_completion.py')
-rw-r--r-- | etc/testing/test_chat_completion.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/testing/test_chat_completion.py b/etc/testing/test_chat_completion.py index ee523b86..7058ab4c 100644 --- a/etc/testing/test_chat_completion.py +++ b/etc/testing/test_chat_completion.py @@ -7,10 +7,10 @@ import g4f, asyncio print("create:", end=" ", flush=True) for response in g4f.ChatCompletion.create( - model=g4f.models.default, - provider=g4f.Provider.GptForLove, - messages=[{"role": "user", "content": "send a bunch of emojis. i want to test something"}], - temperature=0.0, + model=g4f.models.gpt_4_32k_0613, + provider=g4f.Provider.Aivvm, + messages=[{"role": "user", "content": "write a poem about a tree"}], + temperature=0.1, stream=True ): print(response, end="", flush=True) |