initialize_messages function

Initialize a new messages object for OpenAI API chat completions