';
echo '
' . __( 'Regular Models', 'ai-content-wizard' ) . '
';
foreach ( $openai_regular_models as $key => $label ) {
$checked = ( $text_model === $key ) ? 'checked' : '';
$class = ! empty( $available_models ) ? ( in_array( $key, $available_models ) ? '' : 'unavailable' ) : '';
$locked = ! in_array( $key, $lite_text_models, true );
$cost_info = format_text_cost($key, $costs);
$label_text = $label;
$label_markup = $label;
if ( $key === 'gpt-5-mini' ) {
$label_markup .= '
' . __( 'Recommended', 'ai-content-wizard' ) . '';
}
$label_markup .= $locked ? $pro_badge : '';
$label_classes = trim( $class . ' ' . ( $locked ? 'aiw-locked' : '' ) );
echo '
';
echo '
';
}
echo '
';
echo '
';
echo '
' . __( 'Reasoning Models', 'ai-content-wizard' ) . '
';
foreach ( $openai_reasoning_models as $key => $label ) {
$checked = ( $text_model === $key ) ? 'checked' : '';
$class = ! empty( $available_models ) ? ( in_array( $key, $available_models ) ? '' : 'unavailable' ) : '';
$cost_info = format_text_cost($key, $costs);
$label_text = $label;
$label_markup = $label . $pro_badge;
$label_classes = trim( $class . ' aiw-locked' );
echo '
';
echo '
';
}
echo '
';
// Insert the web search toggle as a model-group here
?>
$label ) {
$checked = ( $text_model === $key ) ? 'checked' : '';
$cost_info = format_text_cost($key, $costs);
echo '';
echo '';
}
?>
$label ) {
$checked = ( $text_model === $key ) ? 'checked' : '';
$cost_info = format_text_cost($key, $costs);
echo '';
echo '';
}
?>
';
echo '
' . __( 'Google Gemini Models', 'ai-content-wizard' ) . '
';
foreach ( $gemini_all_models as $key => $label ) {
$checked = ( $text_model === $key ) ? 'checked' : '';
$cost_info = format_text_cost($key, $costs);
echo '
';
echo '
';
}
echo '
';
?>