How do you convert LangChain messages to OpenAI's raw API format and back — when would you need to do this? | Messages | langchain Interview Questions | NextRound.in