-
-
Couldn't load subscription status.
- Fork 9
OpenAI.File.Lookup
Andrew Lambert edited this page Feb 7, 2023
·
2 revisions
Shared Function Lookup(Index As Integer, Refresh As Boolean = False) As OpenAI.File
Shared Function Lookup(FileID As String, Refresh As Boolean = False) As OpenAI.File| Name | Type | Comment |
|---|---|---|
| Index | Integer | The index of the File to lookup. |
| Refresh | Boolean | Optional. If True then the cached file list is refreshed from the server. |
| Name | Type | Comment |
|---|---|---|
| FileID | String | The ID of the file to lookup. |
| Refresh | Boolean | Optional. If True then the cached file list is refreshed from the server. |
A File object representing one of your organization's files on the server. If the FileID is invalid then the return value will be Nil. If the Index is invalid then an OutOfBoundsException will be raised.
Queries the list of files that your organization has uploaded. 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.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2023-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.