optimizing openai chatbot speed and latency metrics