GPT API: Difference between revisions

270 bytes added ,  15 July 2023
Line 96: Line 96:
'''stop''' is an array of strings that tells the model to stop generating text when it encounters one of the strings. You can provide up to 4 strings to the stop array. The stop string found will Not be included in the response.  
'''stop''' is an array of strings that tells the model to stop generating text when it encounters one of the strings. You can provide up to 4 strings to the stop array. The stop string found will Not be included in the response.  


===max tokens===
===max_tokens===
<pre>
max_tokens: 100,
</pre>
'''max_tokens''' is a number value that indicates the maximum number of [[tokens]] the model will generate before stopping. For example, if the max_tokens is 100, the model will generate 100 tokens (approximately 75 words) before stopping.


==Response Fields==
==Response Fields==
223

edits