Added AI Model to the AI settings

This commit is contained in:
johnnyq
2024-02-10 15:24:25 -05:00
parent d9f7a2d128
commit cb26d40090
6 changed files with 26 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ document.getElementById('rewordButton').addEventListener('click', function() {
// Prepare the API request payload
const data = {
model: "text-davinci-004", // or the latest available model
model: "<?php echo $config_ai_model; ?>", // or the latest available model
prompt: `Reword the following text: "${textToReword}"`,
temperature: 0.7,
max_tokens: 1024,