Object function reference

send_message

A reference entry for send_message

Object function · ChatGPT

send_message(string message) ⇒ string | boolean

Sends a message (prompt) to the ChatGPT service and returns the generated response as a string. If an error occurs, the function returns false.