chore: Refactor chat_with_openai function to improve readability and maintainability e11e4a6 MarkChen1214 commited on Jun 23, 2024