We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 761a8da commit b56e7f8Copy full SHA for b56e7f8
gptchat.php
@@ -11,7 +11,7 @@
11
$message = urlencode($input['message']);
12
13
$ch = curl_init();
14
-
+// Change API-Endpoint URL to your needs
15
curl_setopt($ch, CURLOPT_URL, "https://api.openai.com/v1/engines/" . MODEL . "/completions");
16
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
17
curl_setopt($ch, CURLOPT_POST, 1);
@@ -35,4 +35,4 @@
35
} else {
36
http_response_code(405);
37
echo json_encode(['error' => 'Method not allowed']);
38
-}
+}
0 commit comments