/* tslint:disable */ /* eslint-disable */ /** * Admin API * The Admin API is used to manage the ApeCloud platform. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import type { APIErrorResponse } from '../models'; // @ts-ignore import type { CheckAPIKey } from '../models'; // @ts-ignore import type { Llm } from '../models'; // @ts-ignore import type { LlmList } from '../models'; /** * LlmApi - axios parameter creator * @export */ export const LlmApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary add LLM * @param {Llm} llm * @param {string} [orgName] orgName the LLM belongs to * @param {*} [options] Override http request option. * @throws {RequiredError} */ addLLM: async (llm: Llm, orgName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'llm' is not null or undefined assertParamExists('addLLM', 'llm', llm) const localVarPath = `/admin/v1/llm`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (orgName !== undefined) { localVarQueryParameter['orgName'] = orgName; } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(llm, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * check apikey available * @summary check apikey available * @param {Llm} llm * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkAPIKey: async (llm: Llm, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'llm' is not null or undefined assertParamExists('checkAPIKey', 'llm', llm) const localVarPath = `/admin/v1/llm/check`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(llm, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete LLM * @param {string} id ID of the LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteLLM: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteLLM', 'id', id) const localVarPath = `/admin/v1/llm/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get LLM by ID * @param {string} id ID of the LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLLMByID: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getLLMByID', 'id', id) const localVarPath = `/admin/v1/llm/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List available model * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAvailableModel: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/v1/llm/models`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLLM: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/v1/llm`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update LLM * @param {string} id ID of the LLM * @param {Llm} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLLM: async (id: string, body: Llm, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateLLM', 'id', id) // verify required parameter 'body' is not null or undefined assertParamExists('updateLLM', 'body', body) const localVarPath = `/admin/v1/llm/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * LlmApi - functional programming interface * @export */ export const LlmApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = LlmApiAxiosParamCreator(configuration) return { /** * * @summary add LLM * @param {Llm} llm * @param {string} [orgName] orgName the LLM belongs to * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addLLM(llm: Llm, orgName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addLLM(llm, orgName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.addLLM']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * check apikey available * @summary check apikey available * @param {Llm} llm * @param {*} [options] Override http request option. * @throws {RequiredError} */ async checkAPIKey(llm: Llm, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkAPIKey(llm, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.checkAPIKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete LLM * @param {string} id ID of the LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteLLM(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLLM(id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.deleteLLM']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get LLM by ID * @param {string} id ID of the LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLLMByID(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMByID(id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.getLLMByID']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List available model * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listAvailableModel(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableModel(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.listAvailableModel']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listLLM(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listLLM(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.listLLM']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update LLM * @param {string} id ID of the LLM * @param {Llm} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateLLM(id: string, body: Llm, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateLLM(id, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LlmApi.updateLLM']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * LlmApi - factory interface * @export */ export const LlmApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = LlmApiFp(configuration) return { /** * * @summary add LLM * @param {LlmApiAddLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ addLLM(requestParameters: LlmApiAddLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addLLM(requestParameters.llm, requestParameters.orgName, options).then((request) => request(axios, basePath)); }, /** * check apikey available * @summary check apikey available * @param {LlmApiCheckAPIKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkAPIKey(requestParameters: LlmApiCheckAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkAPIKey(requestParameters.llm, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete LLM * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteLLM(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * * @summary Get LLM by ID * @param {LlmApiGetLLMByIDRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLLMByID(requestParameters: LlmApiGetLLMByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLLMByID(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * * @summary List available model * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAvailableModel(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAvailableModel(options).then((request) => request(axios, basePath)); }, /** * * @summary List LLM * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLLM(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listLLM(options).then((request) => request(axios, basePath)); }, /** * * @summary Update LLM * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateLLM(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath)); }, }; }; /** * LlmApi - interface * @export * @interface LlmApi */ export interface LlmApiInterface { /** * * @summary add LLM * @param {LlmApiAddLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ addLLM(requestParameters: LlmApiAddLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * check apikey available * @summary check apikey available * @param {LlmApiCheckAPIKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ checkAPIKey(requestParameters: LlmApiCheckAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete LLM * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get LLM by ID * @param {LlmApiGetLLMByIDRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ getLLMByID(requestParameters: LlmApiGetLLMByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List available model * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ listAvailableModel(options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary List LLM * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ listLLM(options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update LLM * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApiInterface */ updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for addLLM operation in LlmApi. * @export * @interface LlmApiAddLLMRequest */ export interface LlmApiAddLLMRequest { /** * * @type {Llm} * @memberof LlmApiAddLLM */ readonly llm: Llm /** * orgName the LLM belongs to * @type {string} * @memberof LlmApiAddLLM */ readonly orgName?: string } /** * Request parameters for checkAPIKey operation in LlmApi. * @export * @interface LlmApiCheckAPIKeyRequest */ export interface LlmApiCheckAPIKeyRequest { /** * * @type {Llm} * @memberof LlmApiCheckAPIKey */ readonly llm: Llm } /** * Request parameters for deleteLLM operation in LlmApi. * @export * @interface LlmApiDeleteLLMRequest */ export interface LlmApiDeleteLLMRequest { /** * ID of the LLM * @type {string} * @memberof LlmApiDeleteLLM */ readonly id: string } /** * Request parameters for getLLMByID operation in LlmApi. * @export * @interface LlmApiGetLLMByIDRequest */ export interface LlmApiGetLLMByIDRequest { /** * ID of the LLM * @type {string} * @memberof LlmApiGetLLMByID */ readonly id: string } /** * Request parameters for updateLLM operation in LlmApi. * @export * @interface LlmApiUpdateLLMRequest */ export interface LlmApiUpdateLLMRequest { /** * ID of the LLM * @type {string} * @memberof LlmApiUpdateLLM */ readonly id: string /** * * @type {Llm} * @memberof LlmApiUpdateLLM */ readonly body: Llm } /** * LlmApi - object-oriented interface * @export * @class LlmApi * @extends {BaseAPI} */ export class LlmApi extends BaseAPI implements LlmApiInterface { /** * * @summary add LLM * @param {LlmApiAddLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public addLLM(requestParameters: LlmApiAddLLMRequest, options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).addLLM(requestParameters.llm, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath)); } /** * check apikey available * @summary check apikey available * @param {LlmApiCheckAPIKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public checkAPIKey(requestParameters: LlmApiCheckAPIKeyRequest, options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).checkAPIKey(requestParameters.llm, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete LLM * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).deleteLLM(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get LLM by ID * @param {LlmApiGetLLMByIDRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public getLLMByID(requestParameters: LlmApiGetLLMByIDRequest, options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).getLLMByID(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List available model * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public listAvailableModel(options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).listAvailableModel(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List LLM * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public listLLM(options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).listLLM(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update LLM * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LlmApi */ public updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig) { return LlmApiFp(this.configuration).updateLLM(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } }