Skip to content

OpenAI.Model.Count

Andrew Lambert edited this page Feb 7, 2023 · 3 revisions

OpenAI.Model.Count

Method signature

 Shared Function Count(Refresh As Boolean = False) As Integer

Parameters

Name Type Comment
Refresh Boolean Optional. If True then the cached model list is refreshed from the server.

Return value

Returns the number of Models returned from the API.

Remarks

The model list is fetched once and then cached to reduce the number of API requests. The cache is invalidated if you pass the True as the Refresh parameter.

See also

Clone this wiki locally