Skip to content

Commit ca04ca9

Browse files
committed
Updates from PR comments
1 parent cfe68f6 commit ca04ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/neo4j_graphrag/llm/openai_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def invoke_with_tools(
174174
# If there's no tool call, return the content as a regular response
175175
if not message.tool_calls or len(message.tool_calls) == 0:
176176
return ToolCallResponse(
177-
tool_calls=[ToolCall(name="", arguments={})],
178-
content=message.content or "",
177+
tool_calls=[],
178+
content=message.content,
179179
)
180180

181181
# Process all tool calls

0 commit comments

Comments
 (0)