Skip to main content

Filter: classifai_openai_embeddings_max_posts

Filter the max number of posts.

Default for this is 5000 but this filter can be used to change this, either decreasing to help with performance or increasing to ensure we consider more.

Parameters

NameTypeDescription
$this->max_postsintThe default maximum posts.

Since

  • 3.4.0

Source

Defined in includes/Classifai/Providers/OpenAI/Embeddings.php at line 240

Returns

The maximum posts.

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.