Skip to content

Commit c0cc3ff

Browse files
authored
Update gptchat.php
1 parent 53632c2 commit c0cc3ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gptchat.php

+2
Original file line numberDiff line numberDiff line change
@@ -30,10 +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!
3334
curl_setopt($ch, CURLOPT_URL, "https://api.openai.com/v1/engines/" . MODEL . "/completions");
3435
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
3536
curl_setopt($ch, CURLOPT_POST, 1);
3637
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array(
38+
#"model" => gpt-3.5-turbo-16k,
3739
"prompt" => $message,
3840
"max_tokens" => MAX_TOKENS,
3941
"temperature" => TEMPERATURE,

0 commit comments

Comments
 (0)