Although a long time has passed, I wanted to leave a comment for the record.
I tested this with Spring AI 1.0.0-M1 and found that it worked fine. I suspect the problem might have been related to the resource handling process.
Currently, the version has been upgraded to 1.0.0-M6. I recommend trying again with the latest version!