"; echo _('For more information about the OpenAI API, see the OpenAI documentation.'); echo "
"; } function ai_content_x_openai_api_key_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link GET API KEY echo ""; echo _('To get an API key, sign up for an OpenAI account.'); echo "
"; } function ai_content_x_openai_model_callback() { $options = get_option('ai_content_x_openai'); $items = array( 'text-davinci-003', 'text-curie-001', 'text-babbage-001', 'text-ada-001', ); echo "'; // display inline help link echo ""; echo _('Select a model from the dropdown menu. For more information about the models, see the OpenAI documentation.'); echo "
"; } function ai_content_x_openai_max_tokens_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link echo ""; echo _('The maximum number of tokens to generate. The maximum is 2048.'); echo "
"; } function ai_content_x_openai_temperature_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link echo ""; echo _('The higher the temperature, the more random the text. The lower the temperature, the more likely the text will be to make sense. The default is 0.9.'); echo "
"; } function ai_content_x_openai_top_p_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link echo ""; echo _('The probability that the model will stop generating text. The default is 1.0.'); echo "
"; } function ai_content_x_openai_frequency_penalty_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link echo ""; echo _('The higher the frequency penalty, the more likely the model will generate new text. The lower the frequency penalty, the more likely the model will repeat text. The default is 0.0.'); echo "
"; } function ai_content_x_openai_presence_penalty_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link echo ""; echo _('The higher the presence penalty, the more likely the model will generate new text. The lower the presence penalty, the more likely the model will repeat text. The default is 0.0.'); echo "
"; } function ai_content_x_openai_stop_sequence_callback() { $options = get_option('ai_content_x_openai'); echo ''; // display inline help link echo ""; echo _('The model will stop generating text when it encounters this sequence. The default is an empty string.'); echo "
"; } // show admin notice if api key is not set function ai_content_x_openai_admin_notice() { $options = get_option('ai_content_x_openai'); if (empty($options['ai_content_x_openai_api_key'])) { echo '' . __('Please enter your OpenAI API key in the AI Content X OpenAI settings page.', 'ai-content-x-openai') . '
' . __('Settings Updated', 'ai-content-x-openai') . '