Commit 63dd28d
authored
fix: handle potential None values for token usage metrics in OpenAI provider (AstrBotDevs#6788)
Such as: unsupported operand type(s) for -: 'int' and 'NoneType'
fixes: AstrBotDevs#67721 parent a2dae0f commit 63dd28d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
395 | 398 | | |
396 | 399 | | |
397 | 400 | | |
| |||
0 commit comments