| Modifier and Type | Field and Description |
|---|---|
| private static final Duration | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | Returns: the complete URL for the models endpointthe base URL of the API (e.g., "https://api.openai.com" or "https://api.openai.com/v1") apiBaseUrl)Builds the URL for the models endpoint from the given API base URL. |
| public List | |
| private List | |
| public boolean | supports(AiProvider aiProvider)
Implements org. Checks if this provider supports the given AI provider type. |
| CONNECT_TIMEOUT | back to summary |
|---|---|
| private static final Duration CONNECT_TIMEOUT | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| OpenAiCompatibleModelProvider | back to summary |
|---|---|
| public OpenAiCompatibleModelProvider() | |
| buildModelsEndpoint | back to summary |
|---|---|
| private String buildModelsEndpoint(String apiBaseUrl) Builds the URL for the models endpoint from the given API base URL. The OpenAI API specification defines the models endpoint at /v1/models. This method handles various URL formats:
| |
| fetchModels | back to summary |
|---|---|
public List
| |
| parseModelsFromResponse | back to summary |
|---|---|
| private List | |
| supports | back to summary |
|---|---|
| public boolean supports(AiProvider aiProvider) Implements org. Doc from org. Checks if this provider supports the given AI provider type.
| |