diff options
Diffstat (limited to 'etc/tool')
-rw-r--r-- | etc/tool/create_provider.py | 2 | ||||
-rw-r--r-- | etc/tool/improve_code.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/tool/create_provider.py b/etc/tool/create_provider.py index ff04f961..797089cd 100644 --- a/etc/tool/create_provider.py +++ b/etc/tool/create_provider.py @@ -90,7 +90,7 @@ And replace "gpt-3.5-turbo" with `model`. 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, 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) |