Skip to content

OpenAI.Response.GetResult

Andrew Lambert edited this page Mar 12, 2023 · 7 revisions

OpenAI.Response.GetResult

Method signature

 Function GetResult(Index As Integer = 0) As Variant

Parameters

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.

Return value

A Variant containing the result. This may be a String, a Picture, a JSONItem, or another kind of data depending on the request. Refer to Response.ResultType to determine the type of the result.

Remarks

Use this method to retrieve the response(s) to the request. The first (and often only) response is at index zero. The last response is at Response.ResultCount-1.

Clone this wiki locally