Skip to content

OpenAI.Request.IsSet

Andrew Lambert edited this page Dec 20, 2023 · 4 revisions

Method signature

 Function IsSet(KeyName As String) As Boolean

Parameters

Name Type Comment
KeyName String The name of the JSON key to look for.

Return value

Returns True if the KeyName has been set.

Remarks

Checks for the existence of the specified request parameter. The KeyName must exactly match the parameter name used by the API, which might not match the name of property exposed by this class. For example, the NumberOfResults property corresponds to the "n" API parameter.

See also

Clone this wiki locally