mirror of https://github.com/itflow-org/itflow
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:
parent
dcedddcad6
commit
a10486a95c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue