Commit 63b03bc
committed
Fix SSL certificate verification issue and token limit in auto_solver
This commit fixes issue #39 by addressing two critical problems:
1. SSL Certificate Verification: Configure httpx client to disable SSL
verification when running behind a proxy with self-signed certificates.
This fixes the "CERTIFICATE_VERIFY_FAILED" error that was preventing
the auto_solver from connecting to the OpenAI API.
2. Token Limit: Increase max_completion_tokens from 2000 to 8000 to
accommodate the GPT-5-mini model's reasoning tokens. The model uses
separate reasoning tokens (internal thinking) before generating the
actual output, and the previous limit was insufficient.
Tested successfully with real daily LeetCode problem #3321 and confirmed
that the auto_solver now generates complete solutions.1 parent 1faf23a commit 63b03bc
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
117 | | - | |
| 122 | + | |
118 | 123 | | |
119 | | - | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
0 commit comments