-
-
Notifications
You must be signed in to change notification settings - Fork 9
OpenAI.Response.GetResultAttribute
Andrew Lambert edited this page Mar 3, 2024
·
2 revisions
Function GetResultAttribute(Index As Integer, AttributeName As String, DefaultValue As Variant = Nil) As Variant| Name | Type | Comment |
|---|---|---|
| Index | Integer | The index of the result to retrieve if there are more than one. If the index is invalid then an OutOfBoundsException will be raised. |
| AttributeName | String | The key into the reply's raw JSON to retrieve. |
| DefaultValue | Variant | Optional. The value to return if the AttributeName was not found. |
A Variant containing the attribute. This may be a String, a Picture, a JSONItem, or another kind of data depending on the attribute. If the AttributeName does not exist then the DefaultValue is returned; the default value of DefaultValue is Nil.
Use this method to retrieve parts of the JSON reply that are not exposed through the wrapper.
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.