Skip to content

Commit 337bed1

Browse files
committed
fix
1 parent 17830ad commit 337bed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agentscope/model/_ollama_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ async def _parse_ollama_stream_completion_response(
261261
print(f"Error parsing tool call input: {e}")
262262

263263
# Generate response when there's new content or at final chunk
264-
if chunk.done and contents:
264+
if chunk.done or contents:
265265
res = ChatResponse(
266266
content=contents,
267267
usage=usage,

0 commit comments

Comments
 (0)