"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * KubeBlocks Cloud API
 * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources.  The API is organized around REST.  Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs.  We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
 *
 * 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.
 */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LlmApi = exports.LlmApiFactory = exports.LlmApiFp = exports.LlmApiAxiosParamCreator = void 0;
const axios_1 = __importDefault(require("axios"));
// Some imports not used depending on template conditions
// @ts-ignore
const common_1 = require("../common");
// @ts-ignore
const base_1 = require("../base");
/**
 * LlmApi - axios parameter creator
 * @export
 */
const LlmApiAxiosParamCreator = function (configuration) {
    return {
        /**
         * add LLM for org
         * @summary add LLM for org
         * @param {string} orgName
         * @param {Llm} llm
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        addLLMForOrg: async (orgName, llm, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('addLLMForOrg', 'orgName', orgName);
            // verify required parameter 'llm' is not null or undefined
            (0, common_1.assertParamExists)('addLLMForOrg', 'llm', llm);
            const localVarPath = `/api/v1/organizations/{orgName}/llm`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(llm, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * check apikey available for org
         * @summary check apikey available for org
         * @param {string} orgName
         * @param {CheckAPIKey} checkAPIKey
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        checkAPIKeyForOrg: async (orgName, checkAPIKey, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('checkAPIKeyForOrg', 'orgName', orgName);
            // verify required parameter 'checkAPIKey' is not null or undefined
            (0, common_1.assertParamExists)('checkAPIKeyForOrg', 'checkAPIKey', checkAPIKey);
            const localVarPath = `/api/v1/organizations/{orgName}/llm/check`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkAPIKey, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Delete LLM
         * @param {string} orgName
         * @param {string} id ID of the LLM
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        deleteLLM: async (orgName, id, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('deleteLLM', 'orgName', orgName);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('deleteLLM', 'id', id);
            const localVarPath = `/api/v1/organizations/{orgName}/llm/{id}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Get LLM by ID in org
         * @param {string} orgName
         * @param {string} id ID of the LLM
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getLLMByIDInOrg: async (orgName, id, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('getLLMByIDInOrg', 'orgName', orgName);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('getLLMByIDInOrg', 'id', id);
            const localVarPath = `/api/v1/organizations/{orgName}/llm/{id}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary List available model in org
         * @param {string} orgName
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listAvailableModelInOrg: async (orgName, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('listAvailableModelInOrg', 'orgName', orgName);
            const localVarPath = `/api/v1/organizations/{orgName}/llm/models`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * available
         * @summary List available LLM for org
         * @param {string} orgName
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        listLLMForOrg: async (orgName, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('listLLMForOrg', 'orgName', orgName);
            const localVarPath = `/api/v1/organizations/{orgName}/llm`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Update LLM
         * @param {string} orgName
         * @param {string} id ID of the LLM
         * @param {Llm} body
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        updateLLM: async (orgName, id, body, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('updateLLM', 'orgName', orgName);
            // verify required parameter 'id' is not null or undefined
            (0, common_1.assertParamExists)('updateLLM', 'id', id);
            // verify required parameter 'body' is not null or undefined
            (0, common_1.assertParamExists)('updateLLM', 'body', body);
            const localVarPath = `/api/v1/organizations/{orgName}/llm/{id}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    };
};
exports.LlmApiAxiosParamCreator = LlmApiAxiosParamCreator;
/**
 * LlmApi - functional programming interface
 * @export
 */
const LlmApiFp = function (configuration) {
    const localVarAxiosParamCreator = (0, exports.LlmApiAxiosParamCreator)(configuration);
    return {
        /**
         * add LLM for org
         * @summary add LLM for org
         * @param {string} orgName
         * @param {Llm} llm
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async addLLMForOrg(orgName, llm, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.addLLMForOrg(orgName, llm, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.addLLMForOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * check apikey available for org
         * @summary check apikey available for org
         * @param {string} orgName
         * @param {CheckAPIKey} checkAPIKey
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async checkAPIKeyForOrg(orgName, checkAPIKey, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.checkAPIKeyForOrg(orgName, checkAPIKey, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.checkAPIKeyForOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @summary Delete LLM
         * @param {string} orgName
         * @param {string} id ID of the LLM
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async deleteLLM(orgName, id, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLLM(orgName, id, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.deleteLLM']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @summary Get LLM by ID in org
         * @param {string} orgName
         * @param {string} id ID of the LLM
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getLLMByIDInOrg(orgName, id, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMByIDInOrg(orgName, id, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.getLLMByIDInOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @summary List available model in org
         * @param {string} orgName
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listAvailableModelInOrg(orgName, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableModelInOrg(orgName, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.listAvailableModelInOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * available
         * @summary List available LLM for org
         * @param {string} orgName
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async listLLMForOrg(orgName, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.listLLMForOrg(orgName, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.listLLMForOrg']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @summary Update LLM
         * @param {string} orgName
         * @param {string} id ID of the LLM
         * @param {Llm} body
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async updateLLM(orgName, id, body, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateLLM(orgName, id, body, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.updateLLM']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
    };
};
exports.LlmApiFp = LlmApiFp;
/**
 * LlmApi - factory interface
 * @export
 */
const LlmApiFactory = function (configuration, basePath, axios) {
    const localVarFp = (0, exports.LlmApiFp)(configuration);
    return {
        /**
         * add LLM for org
         * @summary add LLM for org
         * @param {LlmApiAddLLMForOrgRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        addLLMForOrg(requestParameters, options) {
            return localVarFp.addLLMForOrg(requestParameters.orgName, requestParameters.llm, options).then((request) => request(axios, basePath));
        },
        /**
         * check apikey available for org
         * @summary check apikey available for org
         * @param {LlmApiCheckAPIKeyForOrgRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        checkAPIKeyForOrg(requestParameters, options) {
            return localVarFp.checkAPIKeyForOrg(requestParameters.orgName, requestParameters.checkAPIKey, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Delete LLM
         * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        deleteLLM(requestParameters, options) {
            return localVarFp.deleteLLM(requestParameters.orgName, requestParameters.id, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Get LLM by ID in org
         * @param {LlmApiGetLLMByIDInOrgRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getLLMByIDInOrg(requestParameters, options) {
            return localVarFp.getLLMByIDInOrg(requestParameters.orgName, requestParameters.id, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary List available model in org
         * @param {LlmApiListAvailableModelInOrgRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listAvailableModelInOrg(requestParameters, options) {
            return localVarFp.listAvailableModelInOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
        },
        /**
         * available
         * @summary List available LLM for org
         * @param {LlmApiListLLMForOrgRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        listLLMForOrg(requestParameters, options) {
            return localVarFp.listLLMForOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Update LLM
         * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        updateLLM(requestParameters, options) {
            return localVarFp.updateLLM(requestParameters.orgName, requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
        },
    };
};
exports.LlmApiFactory = LlmApiFactory;
/**
 * LlmApi - object-oriented interface
 * @export
 * @class LlmApi
 * @extends {BaseAPI}
 */
class LlmApi extends base_1.BaseAPI {
    /**
     * add LLM for org
     * @summary add LLM for org
     * @param {LlmApiAddLLMForOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    addLLMForOrg(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).addLLMForOrg(requestParameters.orgName, requestParameters.llm, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     * check apikey available for org
     * @summary check apikey available for org
     * @param {LlmApiCheckAPIKeyForOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    checkAPIKeyForOrg(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).checkAPIKeyForOrg(requestParameters.orgName, requestParameters.checkAPIKey, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Delete LLM
     * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    deleteLLM(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).deleteLLM(requestParameters.orgName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Get LLM by ID in org
     * @param {LlmApiGetLLMByIDInOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    getLLMByIDInOrg(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).getLLMByIDInOrg(requestParameters.orgName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary List available model in org
     * @param {LlmApiListAvailableModelInOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    listAvailableModelInOrg(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).listAvailableModelInOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     * available
     * @summary List available LLM for org
     * @param {LlmApiListLLMForOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    listLLMForOrg(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).listLLMForOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Update LLM
     * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApi
     */
    updateLLM(requestParameters, options) {
        return (0, exports.LlmApiFp)(this.configuration).updateLLM(requestParameters.orgName, requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }
}
exports.LlmApi = LlmApi;
//# sourceMappingURL=llm-api.js.map