diff options
author | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-10 09:49:29 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-10 09:49:29 +0200 |
commit | 53192b86b129380660f7454170fa987faf2da3c5 (patch) | |
tree | 5797a34479840692f2ae5db9e63deacac9732bd7 /etc | |
parent | ~ | g4f `v-0.1.5.7` (diff) | |
download | gpt4free-53192b86b129380660f7454170fa987faf2da3c5.tar gpt4free-53192b86b129380660f7454170fa987faf2da3c5.tar.gz gpt4free-53192b86b129380660f7454170fa987faf2da3c5.tar.bz2 gpt4free-53192b86b129380660f7454170fa987faf2da3c5.tar.lz gpt4free-53192b86b129380660f7454170fa987faf2da3c5.tar.xz gpt4free-53192b86b129380660f7454170fa987faf2da3c5.tar.zst gpt4free-53192b86b129380660f7454170fa987faf2da3c5.zip |
Diffstat (limited to '')
-rw-r--r-- | etc/tool/create_provider.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |