File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
- // config file
2
+ // Configuration file
3
+
4
+ // Define the OpenAI API key
3
5
define ('OPENAI_API_KEY ' , 'sk-................................. ' );
6
+ // Define the model to be used, for example: text-davinci-003
4
7
define ('MODEL ' , 'text-davinci-003 ' );
8
+ // Define the temperature setting for the model, a value between 0 and 1 (e.g., 0.9)
5
9
define ('TEMPERATURE ' , 0.9 );
10
+ // Define the maximum number of tokens to be generated by the model (e.g., 1000)
6
11
define ('MAX_TOKENS ' , 1000 );
12
+ // Define the top_p setting for the model, a value between 0 and 1 (e.g., 1)
7
13
define ('TOP_P ' , 1 );
14
+ // Define the frequency penalty for the model, a value between -2 and 2 (e.g., 0.0)
8
15
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 );
You can’t perform that action at this time.
0 commit comments