I get different results when I type prompt in the code than when I type prompt in the playground. What's the reason

I get different results when I type prompt in the code than when I type prompt in the playground. What’s the reason

1 Like

You will get different results every time you try it in the playground, too. Unless you set your temperature to 0. Don’t forget to do that in your code.

1 Like

The reason will probably remain a mystery unless you share how your API call works.

what is the model you are using in your code vs in the playground.
playground by default works on the davinci model. In code, like what I am using is the gpt3.5-turbo model.