From f736fc173d687be9349f0e2d4a03f133f212ca75 Mon Sep 17 00:00:00 2001 From: Harsha Nalla <90266580+hnalla@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:52:45 -0500 Subject: [PATCH] fixes #1252 (#1254) --- instructor/retry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instructor/retry.py b/instructor/retry.py index 205c7843f..853a73a54 100644 --- a/instructor/retry.py +++ b/instructor/retry.py @@ -73,7 +73,7 @@ def initialize_usage(mode: Mode) -> CompletionUsage | Any: """ total_usage = CompletionUsage(completion_tokens=0, prompt_tokens=0, total_tokens=0, completion_tokens_details = CompletionTokensDetails(audio_tokens=0, reasoning_tokens=0), - prompt_token_details = PromptTokensDetails(audio_tokens=0, cached_tokens=0) + prompt_tokens_details = PromptTokensDetails(audio_tokens=0, cached_tokens=0) ) if mode in {Mode.ANTHROPIC_TOOLS, Mode.ANTHROPIC_JSON}: from anthropic.types import Usage as AnthropicUsage