Deploy 99aa2ca from main

This commit is contained in:
github-actions[bot]
2026-04-07 08:18:48 +00:00
parent c242f0d59f
commit d77cff73b3

View File

@@ -393,6 +393,13 @@ class Peptide_News_LLM {
wp_send_json_error( 'AI Analysis is not enabled. Please enable it and set an OpenRouter API key in Peptide News → Settings.' );
}
// Auto-correct known incorrect model name (missing "-preview" suffix).
foreach ( array( 'peptide_news_llm_keywords_model', 'peptide_news_llm_summary_model' ) as $opt ) {
if ( get_option( $opt, '' ) === 'qwen/qwen3.6-plus:free' ) {
update_option( $opt, 'qwen/qwen3.6-plus-preview:free' );
}
}
global $wpdb;
$table = $wpdb->prefix . 'peptide_news_articles';