Hey @davet ! 👋
You cannot actually change this value dynamically through options as it’s hard-coded. Also, please note that there is no way of getting back a specific amount of words; you can always ask the model for it, but it’s not guaranteed.
What you can do is use filters to change the value used by this query. I’ve provided you with an example. This will get executed for every request, so you might use it only when needed or add some conditions. 😉
add_filter('mwai_ai_query', function($args) {
$args->setPrompt(str_replace('(between 120 and 240 words)', '(minimum 150 words)', $args->prompt));
$args->setMaxTokens(1024);
return $args;
}, 10, 1);