Skip to main content
A simplified wrapper around openai_chat_complete() for quick, single-turn chat interactions. Use this when you need a straightforward question-and-answer interaction without the complexity of managing message arrays.

Samples

Quick question

Get a response to a simple question:

Specify a model

Use a different GPT model:

Arguments

Returns

TEXT: The text response from the model.