Skip to content

OpenAI.File.Count

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

OpenAI.File.Count

Method signature

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

Parameters

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

Remarks

Returns the number of files that belong to the user's organization.

The file list is fetched once and then cached to reduce the number of API requests. The cache is invalidated if you upload or delete a file, or if you pass the True as the Refresh parameter.

See also

Clone this wiki locally