summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-09-06 16:45:17 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-09-06 16:45:17 +0200
commit34e1dc7326504bf5259a02a52b8088c2b1842c4a (patch)
tree56ffa8f3eeec1aad07d5f955ca7159e14efaba64
parentrefactor(provider): use default model in code generation (diff)
downloadgpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.tar
gpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.tar.gz
gpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.tar.bz2
gpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.tar.lz
gpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.tar.xz
gpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.tar.zst
gpt4free-34e1dc7326504bf5259a02a52b8088c2b1842c4a.zip
-rw-r--r--etc/tool/improve_code.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/tool/improve_code.py b/etc/tool/improve_code.py
index b2e36f86..8578b478 100644
--- a/etc/tool/improve_code.py
+++ b/etc/tool/improve_code.py
@@ -30,7 +30,7 @@ Don't remove license comments.
print("Create code...")
response = []
for chunk in g4f.ChatCompletion.create(
- model=g4f.models.gpt_35_long,
+ model=g4f.models.default,
messages=[{"role": "user", "content": prompt}],
timeout=300,
stream=True
@@ -42,4 +42,4 @@ response = "".join(response)
if code := read_code(response):
with open(path, "w") as file:
- file.write(code) \ No newline at end of file
+ file.write(code)