Skip to content

Commit 749e581

Browse files
Rename max_tokens to max_completion_tokens
1 parent f5547c3 commit 749e581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def generate_solution_with_ai(problem_info, api_key):
115115
{"role": "user", "content": prompt}
116116
],
117117
temperature=0.7,
118-
max_tokens=2000
118+
max_completion_tokens=2000
119119
)
120120

121121
return response.choices[0].message.content

0 commit comments

Comments
 (0)