Stream a response
Set stream to true on POST /v1/chat/completions. Read text/event-stream events until [DONE]. A disconnected stream can leave an incomplete response. Keep the request or operation ID and avoid blind retries.
Use tools
Choose a catalogue entry that advertises tool_calling. Send function tool definitions and validate returned arguments in your application. Require approval for privileged actions and keep tool execution scoped to the account that requested it.