1 min read 2 days ago

Parameters Overwrite

If you would like to set the parameters in the code instead of the shortcode or chatbot settings, you can use the mwai_chatbot_params filter. Here is an example:

add_filter( 'mwai_chatbot_params', function( $params ) {
    // Force specific settings
    $params['temperature'] = 0.7;
    $params['max_tokens'] = 500;
    return $params;
});