Skip to content

OpenAI.Model.GetModelsForEndpoint

Andrew Lambert edited this page Jan 1, 2024 · 1 revision

OpenAI.Model.GetModelsForEndpoint

Method signature

 Shared Function GetModelsForEndpoint(Endpoint As String, Refresh As Boolean = False) As OpenAI.Model()

Parameters

Name Type Comment
Endpoint String The endpoint path to query.
Refresh Boolean Optional. If True then the cached model list is refreshed from the server.

Return value

An array of zero or more OpenAI.Model instances representing the models known to work with the specified endpoint.

Remarks

Returns a list of AI models that are compatible with the specified endpoint. The Endpoint parameter is only the path part of the overall URL. For example, in the URL "https://api.openai.com/v1/chat/completions", the endpoint is "/v1/chat/completions"

Clone this wiki locally