diff --git a/python/packages/autogen-ext/src/autogen_ext/models/ollama/_ollama_client.py b/python/packages/autogen-ext/src/autogen_ext/models/ollama/_ollama_client.py index fbd4300c10b0..8cab4c990fb8 100644 --- a/python/packages/autogen-ext/src/autogen_ext/models/ollama/_ollama_client.py +++ b/python/packages/autogen-ext/src/autogen_ext/models/ollama/_ollama_client.py @@ -675,6 +675,8 @@ async def create( if result.message.tool_calls is not None: if result.message.content is not None and result.message.content != "": thought = result.message.content + elif result.message.thinking is not None: + thought = result.message.thinking # NOTE: If OAI response type changes, this will need to be updated content = [ FunctionCall(