Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/agentscope/model/_ollama_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def _parse_ollama_stream_completion_response(
print(f"Error parsing tool call input: {e}")

# Generate response when there's new content or at final chunk
if chunk.done and contents:
if chunk.done or contents:
res = ChatResponse(
content=contents,
usage=usage,
Expand Down