-
-
Notifications
You must be signed in to change notification settings - Fork 6
OpenAI.Response.FinishReason
Andrew Lambert edited this page Mar 12, 2023
·
3 revisions
Function FinishReason(Index As Integer = 0) As String
Name | Type | Comment |
---|---|---|
Index | Integer | Optional. The index of the result to retrieve if there are more than one. If the index is invalid then an OutOfBoundsException will be raised. |
A String
containing the stop reason.
Returns the reason for finishing the result at Index
, as a String. Not all endpoints supply this information.
Typical finish reasons include "length"
meaning the token limit was reached, and "stop"
meaning the AI reached a natural stopping point.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2023-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.