Merge pull request #1023 from YanzheL/fix/claude-output-effort-logging

fix: extract and log Claude output_config.effort in usage records
This commit is contained in:
Wesley Liddick
2026-03-15 16:45:37 +08:00
committed by GitHub
7 changed files with 156 additions and 4 deletions

View File

@@ -100,8 +100,9 @@ type UsageLog struct {
Model string
// ServiceTier records the OpenAI service tier used for billing, e.g. "priority" / "flex".
ServiceTier *string
// ReasoningEffort is the request's reasoning effort level (OpenAI Responses API),
// e.g. "low" / "medium" / "high" / "xhigh". Nil means not provided / not applicable.
// ReasoningEffort is the request's reasoning effort level.
// OpenAI: "low" / "medium" / "high" / "xhigh"; Claude: "low" / "medium" / "high" / "max".
// Nil means not provided / not applicable.
ReasoningEffort *string
// InboundEndpoint is the client-facing API endpoint path, e.g. /v1/chat/completions.
InboundEndpoint *string