Longer Descriptions | WordPress.org

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer