Skip to content

Commit 2950c15

Browse files
committed
Fix empty response bug
1 parent f8faf32 commit 2950c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/models/bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def _create_response(
452452
)
453453
message.tool_calls = tool_calls
454454
message.content = None
455-
else:
455+
elif content:
456456
message.content = content[0]["text"]
457457

458458
response = ChatResponse(

0 commit comments

Comments
 (0)