Skip to content

Commit

Permalink
assistant_turn variable is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Aug 19, 2024
1 parent b3eb28d commit fcdab94
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions script/claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def sample(
"anthropic-beta": "prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15"
},
) as stream:
assistant_turn = ""
current_tool: str | None = None
status: Status | None = None

Expand All @@ -127,7 +126,6 @@ def sample(
match event.type:
case "text":
console.out(event.text, end="", style="assistant")
assistant_turn += event.text

case "content_block_start":
if event.content_block.type == "tool_use":
Expand Down

0 comments on commit fcdab94

Please sign in to comment.