Skip to content

Commit b56e7f8

Browse files
authored
Update gptchat.php
1 parent 761a8da commit b56e7f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gptchat.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$message = urlencode($input['message']);
1212

1313
$ch = curl_init();
14-
14+
// Change API-Endpoint URL to your needs
1515
curl_setopt($ch, CURLOPT_URL, "https://api.openai.com/v1/engines/" . MODEL . "/completions");
1616
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1717
curl_setopt($ch, CURLOPT_POST, 1);
@@ -35,4 +35,4 @@
3535
} else {
3636
http_response_code(405);
3737
echo json_encode(['error' => 'Method not allowed']);
38-
}
38+
}

0 commit comments

Comments
 (0)