Skip to content

ai_assistant_client_file_context_bytes

github-actions[bot] edited this page Nov 14, 2026 · 23 revisions

Filters the maximum text attachment size that may be inserted into the conversation as direct private context.

Larger browser-side text attachments are offered as compact previews instead of being inserted in full.

Auto-generated Example

add_filter(
   'ai_assistant_client_file_context_bytes',
    function( int $bytes ) {
        // Your code here.
        return $bytes;
    }
);

Parameters

  • int $bytes Maximum direct-insert size in bytes. Default 131072.

Files

apply_filters('ai_assistant_client_file_context_bytes', 128 * 1024)

← All Hooks

Clone this wiki locally