mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added AI Model to the AI settings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user