From a10486a95c5a8a5120ed7aea0a43a116b6da9531 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 19 Nov 2024 15:42:48 -0500 Subject: [PATCH] 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 --- post/ai.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post/ai.php b/post/ai.php index ec285ca3..f282a432 100644 --- a/post/ai.php +++ b/post/ai.php @@ -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);