Commit 8dd704d
committed
fix: resolve compile TS2532 and e2e glm-5-turbo max_tokens assertion
- Fix TS2532 'Object is possibly undefined' by extracting array element
to a local variable before accessing .maxTokens
- Update glm-5-turbo e2e expected max_tokens from 40000 to 40551
(Math.ceil(202752 * 0.2) = 40551, matching actual context window)1 parent 084cb0a commit 8dd704d
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
286 | | - | |
287 | | - | |
| 288 | + | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
0 commit comments