From 34e1dc7326504bf5259a02a52b8088c2b1842c4a Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Fri, 6 Sep 2024 17:45:17 +0300 Subject: refactor(provider): use default model for code improvement prompt --- etc/tool/improve_code.py | 4 ++-- 1 file 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) -- cgit v1.2.3