Class LlmProvidersApi
java.lang.Object
org.wso2.am.integration.clients.admin.api.LlmProvidersApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all LLM providers Get all LLM providersokhttp3.CallGet all LLM providers (asynchronously) Get all LLM providersokhttp3.CallllmProvidersGetCall(ApiCallback _callback) Build call for llmProvidersGetGet all LLM providers Get all LLM providersllmProvidersPost(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList) Add a LLM provider Add a new LLM providerokhttp3.CallllmProvidersPostAsync(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback<LLMProviderResponseDTO> _callback) Add a LLM provider (asynchronously) Add a new LLM providerokhttp3.CallllmProvidersPostCall(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback _callback) Build call for llmProvidersPostllmProvidersPostWithHttpInfo(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList) Add a LLM provider Add a new LLM providervoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
LlmProvidersApi
public LlmProvidersApi() -
LlmProvidersApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
llmProvidersGetCall
Build call for llmProvidersGet- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
llmProvidersGet
Get all LLM providers Get all LLM providers- Returns:
- LLMProviderSummaryResponseListDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersGetWithHttpInfo
public ApiResponse<LLMProviderSummaryResponseListDTO> llmProvidersGetWithHttpInfo() throws ApiExceptionGet all LLM providers Get all LLM providers- Returns:
- ApiResponse<LLMProviderSummaryResponseListDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersGetAsync
public okhttp3.Call llmProvidersGetAsync(ApiCallback<LLMProviderSummaryResponseListDTO> _callback) throws ApiException Get all LLM providers (asynchronously) Get all LLM providers- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
llmProvidersPostCall
public okhttp3.Call llmProvidersPostCall(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback _callback) throws ApiException Build call for llmProvidersPost- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
llmProvidersPost
public LLMProviderResponseDTO llmProvidersPost(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList) throws ApiException Add a LLM provider Add a new LLM provider- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)- Returns:
- LLMProviderResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersPostWithHttpInfo
public ApiResponse<LLMProviderResponseDTO> llmProvidersPostWithHttpInfo(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList) throws ApiException Add a LLM provider Add a new LLM provider- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)- Returns:
- ApiResponse<LLMProviderResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
llmProvidersPostAsync
public okhttp3.Call llmProvidersPostAsync(String name, String apiVersion, String description, String configurations, File apiDefinition, String modelList, ApiCallback<LLMProviderResponseDTO> _callback) throws ApiException Add a LLM provider (asynchronously) Add a new LLM provider- Parameters:
name- (optional)apiVersion- (optional)description- (optional)configurations- LLM Provider configurations (optional)apiDefinition- OpenAPI specification (optional)modelList- List of models supported by the LLM Provider as a stringified JSON array (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-