What could be happening that using the same prompt with the same configurations, in Google AI Studio I get the correct answers, but with the API in the app, I get answers that have nothing to do with what the prompt and its specifications say?
Welcome to the forums!
Exactly which app are you talking about?
Showing screen shots and code with as much details and examples as possible may help us help you diagnose the problem.
I am facing the same problem, can you please tell me how you solved it?