-
-
Notifications
You must be signed in to change notification settings - Fork 7
OpenAI.Model.Lookup
Andrew Lambert edited this page Feb 7, 2023
·
2 revisions
Shared Function Lookup(ModelName As String, Refresh As Boolean = False) As OpenAI.Model
Shared Function Lookup(Index As Integer, Refresh As Boolean = False) As OpenAI.Model
Name | Type | Comment |
---|---|---|
ModelName | String | The name of the Model to retrieve. If no model matches the name then the return value is Nil
|
Refresh | Boolean | Optional. If True then the cached model list is refreshed from the server. |
Name | Type | Comment |
---|---|---|
Index | Integer | The index of the Model to retrieve. If the index is invalid then an OutOfBoundsException will be raised. |
Refresh | Boolean | Optional. If True then the cached model list is refreshed from the server. |
An instance of OpenAI.Model
representing the requested AI model.
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.
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.