From 53192b86b129380660f7454170fa987faf2da3c5 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 10 Oct 2023 09:49:29 +0200 Subject: Some small fixes --- etc/tool/create_provider.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/tool/create_provider.py b/etc/tool/create_provider.py index 62cfd605..ca20099a 100644 --- a/etc/tool/create_provider.py +++ b/etc/tool/create_provider.py @@ -86,15 +86,16 @@ Replace "hello" with `format_prompt(messages)`. And replace "gpt-3.5-turbo" with `model`. """ + print("Create code...") response = [] for chunk in g4f.ChatCompletion.create( model=g4f.models.gpt_35_long, messages=[{"role": "user", "content": prompt}], timeout=300, - stream=True + stream=True, ): - response.append(chunk) print(chunk, end="", flush=True) + response.append(chunk) print() response = "".join(response) -- cgit v1.2.3