[ad_1]
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);
