It comes down 100% to what
@El***
asked you.
IF that visa has any thai writing on it anything indicating you got it based on marriage to a thai then you can only get an extension based on marriage.
BUT
if the visa sticker itself has no writing or anything (especially in the "remarks" section) you can use it to get any extension you qualify for.
Here's an example of a Non-O issued based on marriage to a thai WITH the notation in thai it was issued based on marriage