File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11<?php
2- // config file
2+ // Configuration file
3+
4+ // Define the OpenAI API key
35define ('OPENAI_API_KEY ' , 'sk-................................. ' );
6+ // Define the model to be used, for example: text-davinci-003
47define ('MODEL ' , 'text-davinci-003 ' );
8+ // Define the temperature setting for the model, a value between 0 and 1 (e.g., 0.9)
59define ('TEMPERATURE ' , 0.9 );
10+ // Define the maximum number of tokens to be generated by the model (e.g., 1000)
611define ('MAX_TOKENS ' , 1000 );
12+ // Define the top_p setting for the model, a value between 0 and 1 (e.g., 1)
713define ('TOP_P ' , 1 );
14+ // Define the frequency penalty for the model, a value between -2 and 2 (e.g., 0.0)
815define ('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