@Yugandhar Shilawane I tried a smilar scenario and it seems to work. It could be an intermittent issue with the model or deployment that has caused this.
Also, davinci has moved to a legacy set of models and new deployments are not available for this base model. You might want to migrate to newer models soon.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.