summaryrefslogtreecommitdiffstats
path: root/testing/test_chat_completion.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-09-12 11:37:20 +0200
committerGitHub <noreply@github.com>2023-09-12 11:37:20 +0200
commitcf7ba76e7eb27a3e62bea900f5f7fbd3381783ba (patch)
tree0a1f1eb3639c34472884d8d3d7bd102b12c891ff /testing/test_chat_completion.py
parent~ | 0.0.2.8 (diff)
parentDisable not working providers: (diff)
downloadgpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.gz
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.bz2
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.lz
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.xz
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.tar.zst
gpt4free-cf7ba76e7eb27a3e62bea900f5f7fbd3381783ba.zip
Diffstat (limited to 'testing/test_chat_completion.py')
-rw-r--r--testing/test_chat_completion.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/testing/test_chat_completion.py b/testing/test_chat_completion.py
index 32c069be..fbaa3169 100644
--- a/testing/test_chat_completion.py
+++ b/testing/test_chat_completion.py
@@ -5,13 +5,8 @@ sys.path.append(str(Path(__file__).parent.parent))
import g4f
-stream = False
response = g4f.ChatCompletion.create(
- model="gpt-3.5-turbo",
- provider=g4f.Provider.Ails,
- messages=[{"role": "user", "content": "hello"}],
- stream=stream,
- active_server=5,
+ model=g4f.models.gpt_35_turbo,
+ messages=[{"role": "user", "content": "hello, are you GPT 4?"}]
)
-
-print(response)
+print(response) \ No newline at end of file