Closed ghost closed 2 weeks ago
This is a confirmed bug caused by Agently OpenAI response message handling methods.
In current handling logic, we try to find first item in choices
from response message and if we can not find any, we assume this message is an error message.
But when requesting AzureOpenAI, this kind of messages are normal response messages sent when requests are complete.
We will fix this bug in next version.
We made some changes in https://github.com/Maplemx/Agently/pull/114/commits/0835e21fc2003b77a6e4b1374c21adb7b8e34d7b
But we did not remove this message, instead, we just change the tips of the message from 'Error' to 'Server Response Message' for these reasons down below:
published in version 3.3.1.2
under debug model
[Request] OpenAI Error: {'id': '', 'choices': [], 'created': 0, 'model': '', 'object': '', 'system_fingerprint': None, 'usage': None, 'prompt_filter_results': [{'prompt_index': 0, 'content_filter_results': {'hate': {'filtered': False, 'severity': 'safe'}, 'self_harm': {'filtered': False, 'severity': 'safe'}, 'sexual': {'filtered': False, 'severity': 'safe'}, 'violence': {'filtered': False, 'severity': 'safe'}}}]}