fix: support xhigh reasoning effort in usage records for Claude Messages API

Closes #1732
This commit is contained in:
erio
2026-04-19 18:05:25 +08:00
parent 51af8df31d
commit 6530776a62
3 changed files with 11 additions and 3 deletions

View File

@@ -193,7 +193,9 @@ export function formatReasoningEffort(effort: string | null | undefined): string
return 'High'
case 'xhigh':
case 'extrahigh':
return 'Xhigh'
return 'XHigh'
case 'max':
return 'Max'
case 'none':
case 'minimal':
return '-'