OpenAI API Integration in Production: Patterns That Scale