Hi Divya67
Thanks for the question, If you've already set temperature=0 and top_p=0 it means you have already tried this and doing this is a good way to achieve this I'll suggest an alternative and hope it helps.
Set a seed for the random number generator. This make sure that the same prompt and configuration consistently produce the same output. , seeding the random number generator provides a level of determinism and may improve randomness.
import numpy as np
import tensorflow as tf
tf.random.set_seed(your_seed)
np.random.seed(your_seed)
you can Instead of relying on the online API, consider using the model checkpoints directly. This way, you can have more control over the inference process and ensure reproducibility. for more info stay connected with the official documentation
Azure OpenAI Service Documentation
If you find this answer useful, kindly accept thanks much.