Skip to content

Commit 78dceb2

Browse files
committed
fix: only append text output
1 parent 57eb973 commit 78dceb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bigcodebench/provider/anthropic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def codegen(
5252
output = ""
5353
for chunk in ret:
5454
if chunk.type == "content_block_delta":
55-
if chunk.delta.type == "thinking_delta":
56-
output += chunk.delta.thinking
57-
elif chunk.delta.type == "text_delta":
55+
# if chunk.delta.type == "thinking_delta":
56+
# output += chunk.delta.thinking
57+
if chunk.delta.type == "text_delta":
5858
output += chunk.delta.text
5959
outputs.append(output)
6060
else:

0 commit comments

Comments
 (0)