I’m using flash 2.0 lite via API for clothing classification task. I am giving input images and gemini is classifying the category of the image, for example: dress, trouser, skirt, etc. The prompt is perfectly written to output only classification class but upon inspecting the response of the API, I noticed that it is appending “\n” token at the end of every response. The “\n” character is only visible when I split the response by each character. Here’s the example:
[ 'd', 'r', 'e', 's', 's', '\n' ]
['m', 'a', 'i', 'n', ' ', 'p', 'h', 'o', 't', 'o', '\n']
[ 'c', 'a', 'r', 'e', ' ', 'l', 'a', 'b', 'e', 'l', ' ', 't', 'a', 'g', ' ', 'p', 'h', 'o', 't', 'o', '\n']
Is it normal because I tried prompting it to not append it but it still does?