Thanks for reaching out to us, I think this issue is related to the version of the API and differences in the implementation of Azure's OpenAI API versus OpenAI's API, or possibly due to differences in the models themselves.
Here are a few things you could try:
- Verify the model: Make sure the models you're using in both Azure and OpenAI are identical. You mentioned using "gpt-3.5-turbo-0125" for OpenAI and "gpt35_more_requests" for Azure. If these are not the same model, it could explain the discrepancy. Please share more details for which two models you are comparing.
- Check the API version: You may want to ensure that the API versions you are using for both OpenAI and Azure are compatible and support the features you're trying to use.
- Debug the function: Try to isolate the problem by testing the function with different inputs and settings. For example, you could try using a simpler prompt or different categories to see if the problem persists.
If none of the above steps resolve the issue, it might be best to reach out to Azure support for help. Please let me know if you have no support plan, I am happy to enable you a free ticket for this case. They could provide more specific guidance based on their knowledge of the models and APIs.
I hope this helps.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.