Modify the code because there is no name in ToolMessage in openai api specification. - https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages