/* 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.
 */


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 {
        /**
         * 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: string, llm: Llm, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('addLLMForOrg', 'orgName', orgName)
            // verify required parameter 'llm' is not null or undefined
            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, 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,
            };
        },
        /**
         * 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: string, checkAPIKey: CheckAPIKey, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('checkAPIKeyForOrg', 'orgName', orgName)
            // verify required parameter 'checkAPIKey' is not null or undefined
            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, 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(checkAPIKey, localVarRequestOptions, configuration)

            return {
                url: 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: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('deleteLLM', 'orgName', orgName)
            // verify required parameter 'id' is not null or undefined
            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, 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 in org
         * @param {string} orgName 
         * @param {string} id ID of the LLM
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getLLMByIDInOrg: async (orgName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('getLLMByIDInOrg', 'orgName', orgName)
            // verify required parameter 'id' is not null or undefined
            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, 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 in org
         * @param {string} orgName 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listAvailableModelInOrg: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            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, 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,
            };
        },
        /**
         * available
         * @summary List available LLM for org
         * @param {string} orgName 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        listLLMForOrg: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            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, 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} orgName 
         * @param {string} id ID of the LLM
         * @param {Llm} body 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        updateLLM: async (orgName: string, id: string, body: Llm, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('updateLLM', 'orgName', orgName)
            // 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 = `/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, 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 {
        /**
         * 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: string, llm: Llm, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.addLLMForOrg(orgName, llm, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['LlmApi.addLLMForOrg']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, 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: string, checkAPIKey: CheckAPIKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.checkAPIKeyForOrg(orgName, checkAPIKey, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['LlmApi.checkAPIKeyForOrg']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, 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: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLLM(orgName, 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 in org
         * @param {string} orgName 
         * @param {string} id ID of the LLM
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getLLMByIDInOrg(orgName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMByIDInOrg(orgName, id, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['LlmApi.getLLMByIDInOrg']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, 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: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableModelInOrg(orgName, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['LlmApi.listAvailableModelInOrg']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, 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: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmList>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.listLLMForOrg(orgName, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['LlmApi.listLLMForOrg']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, 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: string, id: string, body: Llm, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateLLM(orgName, 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 {
        /**
         * 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: LlmApiAddLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
            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: LlmApiCheckAPIKeyForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
            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: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
            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: LlmApiGetLLMByIDInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm> {
            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: LlmApiListAvailableModelInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
            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: LlmApiListLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<LlmList> {
            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: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm> {
            return localVarFp.updateLLM(requestParameters.orgName, requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * LlmApi - interface
 * @export
 * @interface LlmApi
 */
export interface LlmApiInterface {
    /**
     * add LLM for org
     * @summary add LLM for org
     * @param {LlmApiAddLLMForOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApiInterface
     */
    addLLMForOrg(requestParameters: LlmApiAddLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;

    /**
     * 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 LlmApiInterface
     */
    checkAPIKeyForOrg(requestParameters: LlmApiCheckAPIKeyForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;

    /**
     * 
     * @summary Delete LLM
     * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApiInterface
     */
    deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;

    /**
     * 
     * @summary Get LLM by ID in org
     * @param {LlmApiGetLLMByIDInOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApiInterface
     */
    getLLMByIDInOrg(requestParameters: LlmApiGetLLMByIDInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;

    /**
     * 
     * @summary List available model in org
     * @param {LlmApiListAvailableModelInOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof LlmApiInterface
     */
    listAvailableModelInOrg(requestParameters: LlmApiListAvailableModelInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;

    /**
     * available
     * @summary List available LLM for org
     * @param {LlmApiListLLMForOrgRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApiInterface
     */
    listLLMForOrg(requestParameters: LlmApiListLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<LlmList>;

    /**
     * 
     * @summary Update LLM
     * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof LlmApiInterface
     */
    updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;

}

/**
 * Request parameters for addLLMForOrg operation in LlmApi.
 * @export
 * @interface LlmApiAddLLMForOrgRequest
 */
export interface LlmApiAddLLMForOrgRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiAddLLMForOrg
     */
    readonly orgName: string

    /**
     * 
     * @type {Llm}
     * @memberof LlmApiAddLLMForOrg
     */
    readonly llm: Llm
}

/**
 * Request parameters for checkAPIKeyForOrg operation in LlmApi.
 * @export
 * @interface LlmApiCheckAPIKeyForOrgRequest
 */
export interface LlmApiCheckAPIKeyForOrgRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiCheckAPIKeyForOrg
     */
    readonly orgName: string

    /**
     * 
     * @type {CheckAPIKey}
     * @memberof LlmApiCheckAPIKeyForOrg
     */
    readonly checkAPIKey: CheckAPIKey
}

/**
 * Request parameters for deleteLLM operation in LlmApi.
 * @export
 * @interface LlmApiDeleteLLMRequest
 */
export interface LlmApiDeleteLLMRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiDeleteLLM
     */
    readonly orgName: string

    /**
     * ID of the LLM
     * @type {string}
     * @memberof LlmApiDeleteLLM
     */
    readonly id: string
}

/**
 * Request parameters for getLLMByIDInOrg operation in LlmApi.
 * @export
 * @interface LlmApiGetLLMByIDInOrgRequest
 */
export interface LlmApiGetLLMByIDInOrgRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiGetLLMByIDInOrg
     */
    readonly orgName: string

    /**
     * ID of the LLM
     * @type {string}
     * @memberof LlmApiGetLLMByIDInOrg
     */
    readonly id: string
}

/**
 * Request parameters for listAvailableModelInOrg operation in LlmApi.
 * @export
 * @interface LlmApiListAvailableModelInOrgRequest
 */
export interface LlmApiListAvailableModelInOrgRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiListAvailableModelInOrg
     */
    readonly orgName: string
}

/**
 * Request parameters for listLLMForOrg operation in LlmApi.
 * @export
 * @interface LlmApiListLLMForOrgRequest
 */
export interface LlmApiListLLMForOrgRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiListLLMForOrg
     */
    readonly orgName: string
}

/**
 * Request parameters for updateLLM operation in LlmApi.
 * @export
 * @interface LlmApiUpdateLLMRequest
 */
export interface LlmApiUpdateLLMRequest {
    /**
     * 
     * @type {string}
     * @memberof LlmApiUpdateLLM
     */
    readonly orgName: string

    /**
     * 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 {
    /**
     * 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
     */
    public addLLMForOrg(requestParameters: LlmApiAddLLMForOrgRequest, options?: RawAxiosRequestConfig) {
        return 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
     */
    public checkAPIKeyForOrg(requestParameters: LlmApiCheckAPIKeyForOrgRequest, options?: RawAxiosRequestConfig) {
        return 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
     */
    public deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig) {
        return 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
     */
    public getLLMByIDInOrg(requestParameters: LlmApiGetLLMByIDInOrgRequest, options?: RawAxiosRequestConfig) {
        return 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
     */
    public listAvailableModelInOrg(requestParameters: LlmApiListAvailableModelInOrgRequest, options?: RawAxiosRequestConfig) {
        return 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
     */
    public listLLMForOrg(requestParameters: LlmApiListLLMForOrgRequest, options?: RawAxiosRequestConfig) {
        return 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
     */
    public updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig) {
        return LlmApiFp(this.configuration).updateLLM(requestParameters.orgName, requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }
}

