chat_completions(...) when an existing integration already uses message-based Chat Completions payloads.
Text
Chat Completions
Send OpenAI-compatible Chat Completions requests with the Rust SDK.
Use
For new integrations, prefer the Responses API. It provides one request model for text, multimodal input, tools, and richer output items.
Last modified on July 26, 2026