Skip to content

OpenAI.Response.HasResultAttribute

Andrew Lambert edited this page Jan 1, 2024 · 1 revision

OpenAI.Response.HasResultAttribute

Method signature

 Function HasResultAttribute(Index As Integer, AttributeName As String) As Boolean

Parameters

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.

Return value

Returns True if the specified response parameter exists.

Remarks

Use this method to detect parts of the JSON reply that are not exposed through the wrapper.

Clone this wiki locally