Plugin Directory

Changeset 3245215


Ignore:
Timestamp:
02/23/2025 02:28:51 PM (11 months ago)
Author:
Dan Kirshner
Message:

tag 3.92, update qwiz_debug, generative API

Location:
qwiz-online-quizzes-and-flashcards/tags/3.92
Files:
9 copied

Legend:

Unmodified
Added
Removed
  • qwiz-online-quizzes-and-flashcards/tags/3.92/qwizcards-plugin.php

    r3245118 r3245215  
    1919   $qwiz_minified_f = strpos ($qwiz_query_string, 'qwizmin=1') !== false;
    2020}
    21 $match_f = preg_match ('/qdebug=([^&]+)/', $qwiz_query_string, $matches);
     21$match_f = preg_match ('/qwiz_debug=([^&]+)/', $qwiz_query_string, $matches);
    2222if ($match_f) {
    2323   error_log ('[qwizcards-plugin.php] qdebug matches: ' . print_r ($matches, true));
     
    600600   $feedback            = addslashes (sanitize_text_field ($_POST['feedback']));
    601601   $ch = curl_init ();
    602    curl_setopt ($ch, CURLOPT_URL, "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=AIzaSyBesEz7IBLdEK3AL4fhlrkj9FZ1MgVyTJE");
     602   curl_setopt ($ch, CURLOPT_URL, "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=API_KEY");
    603603   curl_setopt ($ch, CURLOPT_HEADER, false);  // Headers not returned.
    604604   curl_setopt ($ch, CURLOPT_POST, true);
Note: See TracChangeset for help on using the changeset viewer.