Recent

bsearch_ai_system_instructionfilterPro only

bsearch_ai_system_instruction

Filter the system instruction sent to the AI provider.

Type: filter
Since: 4.5.0
Source: includes/pro/ai/class-prompt-service.php line 327

Parameters

Type Name Description
string $instruction System instruction.
string $answer_length short or medium.

Usage

add_filter( 'bsearch_ai_system_instruction', function($instruction, $answer_length) {
    // ...
    return $instruction;
} );