How to call chat models, structure messages, and get reliable results.
The Chat Completions API allows you to build applications with GPT-3.5-turbo and GPT-4 models for various tasks including email drafting, code writing, document Q&A, conversational agents, language translation, and more. The API uses a message-based format that makes multi-turn conversations easy while remaining useful for single-turn tasks.