We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e386b48 commit ab0b7feCopy full SHA for ab0b7fe
libs/oci/langchain_oci/chat_models/oci_generative_ai.py
@@ -815,7 +815,12 @@ def messages_to_oci_params(
815
message.tool_calls or message.additional_kwargs.get("tool_calls")
816
):
817
# Process content and tool calls for assistant messages
818
- content = self._process_message_content(message.content)
+ if message.content:
819
+ content = self._process_message_content(message.content)
820
+ # Issue 78 fix: Check if original content is empty BEFORE processing
821
+ # to prevent NullPointerException in OCI backend
822
+ else:
823
+ content = [self.oci_chat_message_text_content(text=".")]
824
tool_calls = []
825
for tool_call in message.tool_calls:
826
tool_calls.append(
0 commit comments