__( 'Chat', 'ai-chat-for-amazon-bedrock' ), 'stream' => __( 'Chat, streamed', 'ai-chat-for-amazon-bedrock' ), 'editor' => __( 'Editor tools', 'ai-chat-for-amazon-bedrock' ), 'ability' => __( 'Abilities API', 'ai-chat-for-amazon-bedrock' ), 'wechat' => __( 'WeChat Official Account', 'ai-chat-for-amazon-bedrock' ), 'wxgame' => __( 'WeChat mini game', 'ai-chat-for-amazon-bedrock' ), ); $source = isset( $sources[ $source ] ) ? $source : ''; $rating = in_array( $rating, array( 'up', 'down', 'none' ), true ) ? $rating : ''; // Times follow the site's date and time formats, as they do everywhere else in the admin. $aicfab_datetime = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); $results = AI_Chat_Bedrock_Conversations::query( array( 'search' => $aicfab_search, 'source' => $source, 'rating' => $rating, 'page' => $aicfab_paged, 'per_page' => 20, ) ); $entries = $results['entries']; $page_base = admin_url( 'admin.php?page=ai-chat-for-amazon-bedrock-conversations' ); $filter_url = add_query_arg( array_filter( array( 'aicfab_s' => $aicfab_search, 'aicfab_source' => $source, 'aicfab_rating' => $rating, 'aicfab_gap_days' => $aicfab_gap_param, ), static function ( $value ) { return '' !== $value; } ), $page_base ); // Reset clears the log's own filters; a chosen gap period stays. $aicfab_reset_url = '' === $aicfab_gap_param ? $page_base : add_query_arg( 'aicfab_gap_days', $aicfab_gap_param, $page_base ); // The period form keeps the log filters, but not the page: a new period starts the log at page 1. $aicfab_gap_keep = array_filter( array( 'aicfab_s' => $aicfab_search, 'aicfab_source' => $source, 'aicfab_rating' => $rating, ), static function ( $value ) { return '' !== $value; } ); ?>

$aicfab_keep_value ) : ?>
$aicfab_gap_days ) ); ?>

0 ) : ?>

display_name : __( 'Guest', 'ai-chat-for-amazon-bedrock' ) ); ?>
1 ) : ?>
add_query_arg( 'paged', '%#%', $filter_url ), 'format' => '', 'current' => (int) $results['page'], 'total' => (int) $results['pages'], 'prev_text' => __( 'Previous', 'ai-chat-for-amazon-bedrock' ), 'next_text' => __( 'Next', 'ai-chat-for-amazon-bedrock' ), ) ) ); ?>