Skip to content

Commit 0701032

Browse files
authored
Update gptchat.php
1 parent c0cc3ff commit 0701032

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
@@ -30,12 +30,12 @@
3030
// For example, use /v1/chat/completions for GPT-4, GPT-4-0314, GPT-4-32k, GPT-4-32k-0314, GPT-3.5-turbo, and GPT-3.5-turbo-0301 models
3131
// Use /v1/completions for Lingua models like text-davinci-003, text-davinci-002, text-curie-001, text-babbage-001, and text-ada-001
3232
// See the readme.md file for more information
33-
// if you dont want to use /v1/engines/ than you must remove model from CURLOPT_URL and must set it in CURLOPT_POSTFIELDS!
33+
// if you dont want to use /v1/engines/ than you must remove model from CURLOPT_URL and must set it in CURLOPT_POSTFIELDS like "model" => gpt-3.5-turbo-16k,
3434
curl_setopt($ch, CURLOPT_URL, "https://api.openai.com/v1/engines/" . MODEL . "/completions");
3535
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
3636
curl_setopt($ch, CURLOPT_POST, 1);
3737
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array(
38-
#"model" => gpt-3.5-turbo-16k,
38+
3939
"prompt" => $message,
4040
"max_tokens" => MAX_TOKENS,
4141
"temperature" => TEMPERATURE,

0 commit comments

Comments
 (0)