@cf/meta/llama-4-scout-17b-16e-instruct not returning valid JSON schema back
Hi guys, not sure if this is the right place to ask but i'm encounting a weird issue.
I'm wanted to test out the Workers AI Batch, but for some reason i could not get this to work properly so i continued normal single messages.
Right now i'm testing out the @cf/meta/llama-4-scout-17b-16e-instruct model with my code but i cant seem to get any 'valid' json response back:
What am i doing wrong here? I tried multiple methods, but i cant seem to get any valid return to process further without fixing the response manually with another function.
My code:
1 Reply
My message: (even with the extra context to return JSON, it not working)