summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--etc/tool/create_provider.py5
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)