From 618addd001077d9e4ed4d2a7aa03769a0ee0901b Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 12 Sep 2023 04:40:10 +0200 Subject: Disable not working providers: EasyChat, Equing, GetGpt, Liaobots and Wuguokai No and random best provider for a model Update providers in Readme --- testing/test_chat_completion.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'testing/test_chat_completion.py') 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 -- cgit v1.2.3