gcoai_request_body_params
Description
Filter to modify request body parameters before sending to OpenAI API.
Usage
Applied globally
add_filter( 'gcoai_request_body_params', 'my_custom_function' );
Applied to specific form
add_filter( 'gcoai_request_body_params_FORMID', 'my_custom_function' );
Parameters
$body
array
The request body parameters.
$args
array
Context arguments for the request.
url
string
The full API endpoint URL
client
Client
The Client instance making the request.
endpoint
string
The specific endpoint being called.
Since
1.0-beta-2.10
Hook added.