Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Chat completions

Also written: chat-completions

A request and response format for model APIs that many providers and local model servers share: the system prompt is a message, and tool calls come back with their arguments as a JSON string.

Try it now

Format differences belong in adapters, provider choice in the gateway, and quality differences in your evals.

Learn it properly

One app, several model providers · Two API formats side by side, adapters to one internal format, a gateway with fallbacks, and evals before switching. About 40 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write