-
-
Notifications
You must be signed in to change notification settings - Fork 9
OpenAI.ChatCompletion.GetResultRole
Andrew Lambert edited this page Mar 6, 2023
·
1 revision
OpenAI.ChatCompletion.GetResultRole
Function GetResultRole(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. |
The "role" part of the chat result at Index.
The "role" is one of "user", "assistant", or "system", and indicates the speaker of the message. Use ChatCompletion.GetResult() to retrieve the message.
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.