Breaking AI Change you must update the URL to include the full URL in settings > AI example for openai: https://api.openai.com/v1/chat/completions

This commit is contained in:
johnnyq 2024-11-19 15:42:48 -05:00
parent dcedddcad6
commit a10486a95c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ if (isset($_GET['ai_reword'])) {
];
// Initialize cURL session to the OpenAI Chat API.
$ch = curl_init("$config_ai_url/v1/chat/completions");
$ch = curl_init("$config_ai_url");
// Set cURL options for the request.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);