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.
Related functions
openai_chat_complete(): full-featured chat completion with message history