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 17830ad commit 337bed1Copy full SHA for 337bed1
src/agentscope/model/_ollama_model.py
@@ -261,7 +261,7 @@ async def _parse_ollama_stream_completion_response(
261
print(f"Error parsing tool call input: {e}")
262
263
# Generate response when there's new content or at final chunk
264
- if chunk.done and contents:
+ if chunk.done or contents:
265
res = ChatResponse(
266
content=contents,
267
usage=usage,
0 commit comments