It seems that the structure of assistant_message in camel is inconsistent with the OpenAI API documentation (https://platform.openai.com/docs/api-reference/chat/create):
In camel/messages/base.py, the construction code of assistant_message is as follows:
@classmethod
def make_assistant_message(
cls,
role_name: str,
content: str,
meta_dict: Optional[Dict[str, str]] = None,
video_bytes: Optional[bytes] = None,
image_list: Optional[List[Union[Image.Image, str]]] = None,
image_detail: Union[
OpenAIVisionDetailType, str
] = OpenAIVisionDetailType.AUTO,
video_detail: Union[
OpenAIVisionDetailType, str
] = OpenAIVisionDetailType.LOW,
) -> "BaseMessage":
While the parameters specified in the API documentation are as follows:
Related to #3346