mirror of
https://github.com/itflow-org/itflow
synced 2026-09-22 22:51:17 +00:00
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:
@@ -28,7 +28,7 @@ if (isset($_GET['ai_reword'])) {
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Initialize cURL session to the OpenAI Chat API.
|
// 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.
|
// Set cURL options for the request.
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user