Skip to content

Commit 74e8754

Browse files
Handle empty content in AIMessage creation (#34)
1 parent c694b3f commit 74e8754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/oci/langchain_oci/chat_models/oci_generative_ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ def _generate(
12811281
for tool_call in self._provider.chat_tool_calls(response)
12821282
]
12831283
message = AIMessage(
1284-
content=content,
1284+
content=content or "",
12851285
additional_kwargs=generation_info,
12861286
tool_calls=tool_calls,
12871287
)

0 commit comments

Comments
 (0)