Skip to content

Commit ad821ba

Browse files
authored
Update config.php
1 parent 780c361 commit ad821ba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

config.php

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<?php
2-
// config file
2+
// Configuration file
3+
4+
// Define the OpenAI API key
35
define('OPENAI_API_KEY', 'sk-.................................');
6+
// Define the model to be used, for example: text-davinci-003
47
define('MODEL', 'text-davinci-003');
8+
// Define the temperature setting for the model, a value between 0 and 1 (e.g., 0.9)
59
define('TEMPERATURE', 0.9);
10+
// Define the maximum number of tokens to be generated by the model (e.g., 1000)
611
define('MAX_TOKENS', 1000);
12+
// Define the top_p setting for the model, a value between 0 and 1 (e.g., 1)
713
define('TOP_P', 1);
14+
// Define the frequency penalty for the model, a value between -2 and 2 (e.g., 0.0)
815
define('FREQUENCY_PENALTY', 0.0);
9-
define('PRESENCE_PENALTY', 0.0);
16+
// Define the presence penalty for the model, a value between -2 and 2 (e.g., 0.0)
17+
define('PRESENCE_PENALTY', 0.0);

0 commit comments

Comments
 (0)