Skip to content

Commit

Permalink
fixes #1252 (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
hnalla authored Dec 16, 2024
1 parent bc7a7b3 commit f736fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instructor/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f736fc1

Please sign in to comment.