kb-cloud-client-typescript 2.4.0-alpha.116 → 2.4.0-alpha.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/internalapi/api.d.ts +1 -0
- package/dist/internalapi/api.d.ts.map +1 -1
- package/dist/internalapi/api.js +1 -0
- package/dist/internalapi/api.js.map +1 -1
- package/dist/internalapi/apis/llm-api.d.ts +142 -0
- package/dist/internalapi/apis/llm-api.d.ts.map +1 -0
- package/dist/internalapi/apis/llm-api.js +191 -0
- package/dist/internalapi/apis/llm-api.js.map +1 -0
- package/dist/internalapi/models/access-level.d.ts +22 -0
- package/dist/internalapi/models/access-level.d.ts.map +1 -0
- package/dist/internalapi/models/access-level.js +26 -0
- package/dist/internalapi/models/access-level.js.map +1 -0
- package/dist/internalapi/models/index.d.ts +3 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +3 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/llm-list.d.ts +26 -0
- package/dist/internalapi/models/llm-list.d.ts.map +1 -0
- package/dist/internalapi/models/llm-list.js +16 -0
- package/dist/internalapi/models/llm-list.js.map +1 -0
- package/dist/internalapi/models/llm.d.ts +64 -0
- package/dist/internalapi/models/llm.d.ts.map +1 -0
- package/dist/internalapi/models/llm.js +16 -0
- package/dist/internalapi/models/llm.js.map +1 -0
- package/package.json +1 -1
- package/src/internalapi/.openapi-generator/FILES +4 -0
- package/src/internalapi/api.ts +1 -0
- package/src/internalapi/apis/llm-api.ts +246 -0
- package/src/internalapi/models/access-level.ts +31 -0
- package/src/internalapi/models/index.ts +3 -0
- package/src/internalapi/models/llm-list.ts +33 -0
- package/src/internalapi/models/llm.ts +71 -0
- package/src/internalapi.yaml +117 -0
|
@@ -17,6 +17,7 @@ export * from './apis/dbdoctor-api';
|
|
|
17
17
|
export * from './apis/engine-api';
|
|
18
18
|
export * from './apis/environment-api';
|
|
19
19
|
export * from './apis/imagepullsecret-api';
|
|
20
|
+
export * from './apis/llm-api';
|
|
20
21
|
export * from './apis/nodeplane-api';
|
|
21
22
|
export * from './apis/opsrequest-api';
|
|
22
23
|
export * from './apis/parameter-api';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/internalapi/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qCAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/internalapi/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qCAAqC,CAAC"}
|
package/dist/internalapi/api.js
CHANGED
|
@@ -35,6 +35,7 @@ __exportStar(require("./apis/dbdoctor-api"), exports);
|
|
|
35
35
|
__exportStar(require("./apis/engine-api"), exports);
|
|
36
36
|
__exportStar(require("./apis/environment-api"), exports);
|
|
37
37
|
__exportStar(require("./apis/imagepullsecret-api"), exports);
|
|
38
|
+
__exportStar(require("./apis/llm-api"), exports);
|
|
38
39
|
__exportStar(require("./apis/nodeplane-api"), exports);
|
|
39
40
|
__exportStar(require("./apis/opsrequest-api"), exports);
|
|
40
41
|
__exportStar(require("./apis/parameter-api"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/internalapi/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAIH,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC;AACtC,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,gEAA8C;AAC9C,iEAA+C;AAC/C,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,sEAAoD"}
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/internalapi/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAIH,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC;AACtC,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC;AACvC,6DAA2C;AAC3C,iDAA+B;AAC/B,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,gEAA8C;AAC9C,iEAA+C;AAC/C,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,sEAAoD"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubeBlocks Cloud Internal API
|
|
3
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { Llm } from '../models';
|
|
16
|
+
import type { LlmList } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* LlmApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const LlmApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
24
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
25
|
+
* @param {string} id ID of the LLM
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
getLLMWithAPIKey: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
32
|
+
* @summary List LLM with plaintext api_key
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
listLLMWithAPIKey: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* LlmApi - functional programming interface
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export declare const LlmApiFp: (configuration?: Configuration) => {
|
|
43
|
+
/**
|
|
44
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
45
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
46
|
+
* @param {string} id ID of the LLM
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getLLMWithAPIKey(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
53
|
+
* @summary List LLM with plaintext api_key
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmList>>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* LlmApi - factory interface
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export declare const LlmApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
64
|
+
/**
|
|
65
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
66
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
67
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;
|
|
72
|
+
/**
|
|
73
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
74
|
+
* @summary List LLM with plaintext api_key
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): AxiosPromise<LlmList>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* LlmApi - interface
|
|
82
|
+
* @export
|
|
83
|
+
* @interface LlmApi
|
|
84
|
+
*/
|
|
85
|
+
export interface LlmApiInterface {
|
|
86
|
+
/**
|
|
87
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
88
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
89
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
* @memberof LlmApiInterface
|
|
93
|
+
*/
|
|
94
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
97
|
+
* @summary List LLM with plaintext api_key
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
* @memberof LlmApiInterface
|
|
101
|
+
*/
|
|
102
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): AxiosPromise<LlmList>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Request parameters for getLLMWithAPIKey operation in LlmApi.
|
|
106
|
+
* @export
|
|
107
|
+
* @interface LlmApiGetLLMWithAPIKeyRequest
|
|
108
|
+
*/
|
|
109
|
+
export interface LlmApiGetLLMWithAPIKeyRequest {
|
|
110
|
+
/**
|
|
111
|
+
* ID of the LLM
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof LlmApiGetLLMWithAPIKey
|
|
114
|
+
*/
|
|
115
|
+
readonly id: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* LlmApi - object-oriented interface
|
|
119
|
+
* @export
|
|
120
|
+
* @class LlmApi
|
|
121
|
+
* @extends {BaseAPI}
|
|
122
|
+
*/
|
|
123
|
+
export declare class LlmApi extends BaseAPI implements LlmApiInterface {
|
|
124
|
+
/**
|
|
125
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
126
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
127
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
* @memberof LlmApi
|
|
131
|
+
*/
|
|
132
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Llm, any, {}>>;
|
|
133
|
+
/**
|
|
134
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
135
|
+
* @summary List LLM with plaintext api_key
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
* @memberof LlmApi
|
|
139
|
+
*/
|
|
140
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LlmList, any, {}>>;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=llm-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-api.d.ts","sourceRoot":"","sources":["../../../src/internalapi/apis/llm-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAMhF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAItH,OAAO,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AED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACtB;AAED;;;;;GAKG;AACH,qBAAa,MAAO,SAAQ,OAAQ,YAAW,eAAe;IAC1D;;;;;;;OAOG;IACI,gBAAgB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIzG;;;;;;OAMG;IACI,iBAAiB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG3D"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud Internal API
|
|
6
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.LlmApi = exports.LlmApiFactory = exports.LlmApiFp = exports.LlmApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* LlmApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const LlmApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
34
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
35
|
+
* @param {string} id ID of the LLM
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
getLLMWithAPIKey: async (id, options = {}) => {
|
|
40
|
+
// verify required parameter 'id' is not null or undefined
|
|
41
|
+
(0, common_1.assertParamExists)('getLLMWithAPIKey', 'id', id);
|
|
42
|
+
const localVarPath = `/internal/v1/llm/{id}`
|
|
43
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
if (configuration) {
|
|
48
|
+
baseOptions = configuration.baseOptions;
|
|
49
|
+
}
|
|
50
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
51
|
+
const localVarHeaderParameter = {};
|
|
52
|
+
const localVarQueryParameter = {};
|
|
53
|
+
// authentication BasicAuth required
|
|
54
|
+
// http basic authentication required
|
|
55
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
56
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
57
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
59
|
+
return {
|
|
60
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
61
|
+
options: localVarRequestOptions,
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
66
|
+
* @summary List LLM with plaintext api_key
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
listLLMWithAPIKey: async (options = {}) => {
|
|
71
|
+
const localVarPath = `/internal/v1/llm`;
|
|
72
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
73
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
74
|
+
let baseOptions;
|
|
75
|
+
if (configuration) {
|
|
76
|
+
baseOptions = configuration.baseOptions;
|
|
77
|
+
}
|
|
78
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
79
|
+
const localVarHeaderParameter = {};
|
|
80
|
+
const localVarQueryParameter = {};
|
|
81
|
+
// authentication BasicAuth required
|
|
82
|
+
// http basic authentication required
|
|
83
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
84
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
85
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
87
|
+
return {
|
|
88
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
exports.LlmApiAxiosParamCreator = LlmApiAxiosParamCreator;
|
|
95
|
+
/**
|
|
96
|
+
* LlmApi - functional programming interface
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
const LlmApiFp = function (configuration) {
|
|
100
|
+
const localVarAxiosParamCreator = (0, exports.LlmApiAxiosParamCreator)(configuration);
|
|
101
|
+
return {
|
|
102
|
+
/**
|
|
103
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
104
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
105
|
+
* @param {string} id ID of the LLM
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
async getLLMWithAPIKey(id, options) {
|
|
110
|
+
var _a, _b, _c;
|
|
111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMWithAPIKey(id, options);
|
|
112
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
113
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.getLLMWithAPIKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
114
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
118
|
+
* @summary List LLM with plaintext api_key
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
async listLLMWithAPIKey(options) {
|
|
123
|
+
var _a, _b, _c;
|
|
124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLLMWithAPIKey(options);
|
|
125
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
126
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LlmApi.listLLMWithAPIKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
127
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
exports.LlmApiFp = LlmApiFp;
|
|
132
|
+
/**
|
|
133
|
+
* LlmApi - factory interface
|
|
134
|
+
* @export
|
|
135
|
+
*/
|
|
136
|
+
const LlmApiFactory = function (configuration, basePath, axios) {
|
|
137
|
+
const localVarFp = (0, exports.LlmApiFp)(configuration);
|
|
138
|
+
return {
|
|
139
|
+
/**
|
|
140
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
141
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
142
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
getLLMWithAPIKey(requestParameters, options) {
|
|
147
|
+
return localVarFp.getLLMWithAPIKey(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
151
|
+
* @summary List LLM with plaintext api_key
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
listLLMWithAPIKey(options) {
|
|
156
|
+
return localVarFp.listLLMWithAPIKey(options).then((request) => request(axios, basePath));
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
exports.LlmApiFactory = LlmApiFactory;
|
|
161
|
+
/**
|
|
162
|
+
* LlmApi - object-oriented interface
|
|
163
|
+
* @export
|
|
164
|
+
* @class LlmApi
|
|
165
|
+
* @extends {BaseAPI}
|
|
166
|
+
*/
|
|
167
|
+
class LlmApi extends base_1.BaseAPI {
|
|
168
|
+
/**
|
|
169
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
170
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
171
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
* @memberof LlmApi
|
|
175
|
+
*/
|
|
176
|
+
getLLMWithAPIKey(requestParameters, options) {
|
|
177
|
+
return (0, exports.LlmApiFp)(this.configuration).getLLMWithAPIKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
181
|
+
* @summary List LLM with plaintext api_key
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof LlmApi
|
|
185
|
+
*/
|
|
186
|
+
listLLMWithAPIKey(options) {
|
|
187
|
+
return (0, exports.LlmApiFp)(this.configuration).listLLMWithAPIKey(options).then((request) => request(this.axios, this.basePath));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.LlmApi = LlmApi;
|
|
191
|
+
//# sourceMappingURL=llm-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-api.js","sourceRoot":"","sources":["../../../src/internalapi/apis/llm-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;AAKH,kDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAOtH;;;GAGG;AACI,MAAM,uBAAuB,GAAG,UAAU,aAA6B;IAC1E,OAAO;QACH;;;;;;WAMG;QACH,gBAAgB,EAAE,KAAK,EAAE,EAAU,EAAE,UAAiC,EAAE,EAAwB,EAAE;YAC9F,0DAA0D;YAC1D,IAAA,0BAAiB,EAAC,kBAAkB,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YAC/C,MAAM,YAAY,GAAG,uBAAuB;i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,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC7F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAvBW,QAAA,aAAa,iBAuBxB;AA2CF;;;;;GAKG;AACH,MAAa,MAAO,SAAQ,cAAO;IAC/B;;;;;;;OAOG;IACI,gBAAgB,CAAC,iBAAgD,EAAE,OAA+B;QACrG,OAAO,IAAA,gBAAQ,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9I,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CAAC,OAA+B;QACpD,OAAO,IAAA,gBAAQ,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzH,CAAC;CACJ;AAvBD,wBAuBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubeBlocks Cloud Internal API
|
|
3
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const AccessLevel: {
|
|
18
|
+
readonly Platform: "Platform";
|
|
19
|
+
readonly Organization: "Organization";
|
|
20
|
+
};
|
|
21
|
+
export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
|
|
22
|
+
//# sourceMappingURL=access-level.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-level.d.ts","sourceRoot":"","sources":["../../../src/internalapi/models/access-level.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud Internal API
|
|
6
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccessLevel = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.AccessLevel = {
|
|
23
|
+
Platform: 'Platform',
|
|
24
|
+
Organization: 'Organization'
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=access-level.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-level.js","sourceRoot":"","sources":["../../../src/internalapi/models/access-level.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,WAAW,GAAG;IACvB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;CACtB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './apierror-response';
|
|
2
|
+
export * from './access-level';
|
|
2
3
|
export * from './alert';
|
|
3
4
|
export * from './alert-status';
|
|
4
5
|
export * from './apiserver-phase-detail';
|
|
@@ -41,6 +42,8 @@ export * from './io-quantity';
|
|
|
41
42
|
export * from './ip-pool-provider';
|
|
42
43
|
export * from './ip-pool-selection';
|
|
43
44
|
export * from './koordinator-reservation-resource-class';
|
|
45
|
+
export * from './llm';
|
|
46
|
+
export * from './llm-list';
|
|
44
47
|
export * from './localized-description';
|
|
45
48
|
export * from './network-mode';
|
|
46
49
|
export * from './ops-request-name';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internalapi/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,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,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./apierror-response"), exports);
|
|
18
|
+
__exportStar(require("./access-level"), exports);
|
|
18
19
|
__exportStar(require("./alert"), exports);
|
|
19
20
|
__exportStar(require("./alert-status"), exports);
|
|
20
21
|
__exportStar(require("./apiserver-phase-detail"), exports);
|
|
@@ -57,6 +58,8 @@ __exportStar(require("./io-quantity"), exports);
|
|
|
57
58
|
__exportStar(require("./ip-pool-provider"), exports);
|
|
58
59
|
__exportStar(require("./ip-pool-selection"), exports);
|
|
59
60
|
__exportStar(require("./koordinator-reservation-resource-class"), exports);
|
|
61
|
+
__exportStar(require("./llm"), exports);
|
|
62
|
+
__exportStar(require("./llm-list"), exports);
|
|
60
63
|
__exportStar(require("./localized-description"), exports);
|
|
61
64
|
__exportStar(require("./network-mode"), exports);
|
|
62
65
|
__exportStar(require("./ops-request-name"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/internalapi/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,0CAAwB;AACxB,iDAA+B;AAC/B,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,8DAA4C;AAC5C,4DAA0C;AAC1C,4CAA0B;AAC1B,mDAAiC;AACjC,oDAAkC;AAClC,iDAA+B;AAC/B,sDAAoC;AACpC,8DAA4C;AAC5C,kEAAgD;AAChD,sDAAoC;AACpC,+DAA6C;AAC7C,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,kDAAgC;AAChC,2CAAyB;AACzB,kDAAgC;AAChC,wDAAsC;AACtC,6DAA2C;AAC3C,qDAAmC;AACnC,uDAAqC;AACrC,8DAA4C;AAC5C,8CAA4B;AAC5B,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,uEAAqD;AACrD,gDAA8B;AAC9B,qDAAmC;AACnC,sDAAoC;AACpC,2EAAyD;AACzD,0DAAwC;AACxC,iDAA+B;AAC/B,qDAAmC;AACnC,kDAAgC;AAChC,gDAA8B;AAC9B,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,iEAA+C;AAC/C,uDAAqC;AACrC,mEAAiD;AACjD,mDAAiC;AACjC,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,mDAAiC;AACjC,4CAA0B;AAC1B,mDAAiC;AACjC,wCAAsB;AACtB,kDAAgC;AAChC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/internalapi/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,0CAAwB;AACxB,iDAA+B;AAC/B,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,8DAA4C;AAC5C,4DAA0C;AAC1C,4CAA0B;AAC1B,mDAAiC;AACjC,oDAAkC;AAClC,iDAA+B;AAC/B,sDAAoC;AACpC,8DAA4C;AAC5C,kEAAgD;AAChD,sDAAoC;AACpC,+DAA6C;AAC7C,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,kDAAgC;AAChC,2CAAyB;AACzB,kDAAgC;AAChC,wDAAsC;AACtC,6DAA2C;AAC3C,qDAAmC;AACnC,uDAAqC;AACrC,8DAA4C;AAC5C,8CAA4B;AAC5B,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,uEAAqD;AACrD,gDAA8B;AAC9B,qDAAmC;AACnC,sDAAoC;AACpC,2EAAyD;AACzD,wCAAsB;AACtB,6CAA2B;AAC3B,0DAAwC;AACxC,iDAA+B;AAC/B,qDAAmC;AACnC,kDAAgC;AAChC,gDAA8B;AAC9B,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,iEAA+C;AAC/C,uDAAqC;AACrC,mEAAiD;AACjD,mDAAiC;AACjC,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,mDAAiC;AACjC,4CAA0B;AAC1B,mDAAiC;AACjC,wCAAsB;AACtB,kDAAgC;AAChC,uDAAqC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubeBlocks Cloud Internal API
|
|
3
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Llm } from './llm';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LlmList
|
|
17
|
+
*/
|
|
18
|
+
export interface LlmList {
|
|
19
|
+
/**
|
|
20
|
+
* Items is the list of llm objects
|
|
21
|
+
* @type {Array<Llm>}
|
|
22
|
+
* @memberof LlmList
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<Llm>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=llm-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-list.d.ts","sourceRoot":"","sources":["../../../src/internalapi/models/llm-list.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACvB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud Internal API
|
|
6
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=llm-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-list.js","sourceRoot":"","sources":["../../../src/internalapi/models/llm-list.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubeBlocks Cloud Internal API
|
|
3
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AccessLevel } from './access-level';
|
|
13
|
+
/**
|
|
14
|
+
* llm
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Llm
|
|
17
|
+
*/
|
|
18
|
+
export interface Llm {
|
|
19
|
+
/**
|
|
20
|
+
* ID of the llm
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Llm
|
|
23
|
+
*/
|
|
24
|
+
'id'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the llm
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Llm
|
|
29
|
+
*/
|
|
30
|
+
'name': string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether this LLM is enabled
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof Llm
|
|
35
|
+
*/
|
|
36
|
+
'enabled': boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Config. For OpenAI-compatible providers, model entries under `available_models` may include `max_tokens` as the maximum output token count and `context_length` as the total context window. `context_window` is a deprecated compatibility alias and should not be used by new clients.
|
|
39
|
+
* @type {{ [key: string]: object; }}
|
|
40
|
+
* @memberof Llm
|
|
41
|
+
*/
|
|
42
|
+
'config': {
|
|
43
|
+
[key: string]: object;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {AccessLevel}
|
|
48
|
+
* @memberof Llm
|
|
49
|
+
*/
|
|
50
|
+
'level'?: AccessLevel;
|
|
51
|
+
/**
|
|
52
|
+
* CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Llm
|
|
55
|
+
*/
|
|
56
|
+
'createdAt'?: string;
|
|
57
|
+
/**
|
|
58
|
+
* UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof Llm
|
|
61
|
+
*/
|
|
62
|
+
'updatedAt'?: string;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=llm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../../src/internalapi/models/llm.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud Internal API
|
|
6
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=llm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm.js","sourceRoot":"","sources":["../../../src/internalapi/models/llm.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ apis/dbdoctor-api.ts
|
|
|
10
10
|
apis/engine-api.ts
|
|
11
11
|
apis/environment-api.ts
|
|
12
12
|
apis/imagepullsecret-api.ts
|
|
13
|
+
apis/llm-api.ts
|
|
13
14
|
apis/nodeplane-api.ts
|
|
14
15
|
apis/opsrequest-api.ts
|
|
15
16
|
apis/parameter-api.ts
|
|
@@ -24,6 +25,7 @@ common.ts
|
|
|
24
25
|
configuration.ts
|
|
25
26
|
git_push.sh
|
|
26
27
|
index.ts
|
|
28
|
+
models/access-level.ts
|
|
27
29
|
models/alert-status.ts
|
|
28
30
|
models/alert.ts
|
|
29
31
|
models/apierror-response.ts
|
|
@@ -68,6 +70,8 @@ models/io-quantity.ts
|
|
|
68
70
|
models/ip-pool-provider.ts
|
|
69
71
|
models/ip-pool-selection.ts
|
|
70
72
|
models/koordinator-reservation-resource-class.ts
|
|
73
|
+
models/llm-list.ts
|
|
74
|
+
models/llm.ts
|
|
71
75
|
models/localized-description.ts
|
|
72
76
|
models/network-mode.ts
|
|
73
77
|
models/ops-request-name.ts
|
package/src/internalapi/api.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './apis/dbdoctor-api';
|
|
|
22
22
|
export * from './apis/engine-api';
|
|
23
23
|
export * from './apis/environment-api';
|
|
24
24
|
export * from './apis/imagepullsecret-api';
|
|
25
|
+
export * from './apis/llm-api';
|
|
25
26
|
export * from './apis/nodeplane-api';
|
|
26
27
|
export * from './apis/opsrequest-api';
|
|
27
28
|
export * from './apis/parameter-api';
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { APIErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { Llm } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { LlmList } from '../models';
|
|
30
|
+
/**
|
|
31
|
+
* LlmApi - axios parameter creator
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const LlmApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
|
+
return {
|
|
36
|
+
/**
|
|
37
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
38
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
39
|
+
* @param {string} id ID of the LLM
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
getLLMWithAPIKey: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'id' is not null or undefined
|
|
45
|
+
assertParamExists('getLLMWithAPIKey', 'id', id)
|
|
46
|
+
const localVarPath = `/internal/v1/llm/{id}`
|
|
47
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication BasicAuth required
|
|
60
|
+
// http basic authentication required
|
|
61
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
url: toPathString(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
76
|
+
* @summary List LLM with plaintext api_key
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
listLLMWithAPIKey: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
81
|
+
const localVarPath = `/internal/v1/llm`;
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
90
|
+
const localVarHeaderParameter = {} as any;
|
|
91
|
+
const localVarQueryParameter = {} as any;
|
|
92
|
+
|
|
93
|
+
// authentication BasicAuth required
|
|
94
|
+
// http basic authentication required
|
|
95
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
url: toPathString(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* LlmApi - functional programming interface
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export const LlmApiFp = function(configuration?: Configuration) {
|
|
116
|
+
const localVarAxiosParamCreator = LlmApiAxiosParamCreator(configuration)
|
|
117
|
+
return {
|
|
118
|
+
/**
|
|
119
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
120
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
121
|
+
* @param {string} id ID of the LLM
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
async getLLMWithAPIKey(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>> {
|
|
126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMWithAPIKey(id, options);
|
|
127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
128
|
+
const localVarOperationServerBasePath = operationServerMap['LlmApi.getLLMWithAPIKey']?.[localVarOperationServerIndex]?.url;
|
|
129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
133
|
+
* @summary List LLM with plaintext api_key
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
async listLLMWithAPIKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmList>> {
|
|
138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLLMWithAPIKey(options);
|
|
139
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
140
|
+
const localVarOperationServerBasePath = operationServerMap['LlmApi.listLLMWithAPIKey']?.[localVarOperationServerIndex]?.url;
|
|
141
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
142
|
+
},
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* LlmApi - factory interface
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export const LlmApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
151
|
+
const localVarFp = LlmApiFp(configuration)
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
155
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
156
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm> {
|
|
161
|
+
return localVarFp.getLLMWithAPIKey(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
165
|
+
* @summary List LLM with plaintext api_key
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): AxiosPromise<LlmList> {
|
|
170
|
+
return localVarFp.listLLMWithAPIKey(options).then((request) => request(axios, basePath));
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* LlmApi - interface
|
|
177
|
+
* @export
|
|
178
|
+
* @interface LlmApi
|
|
179
|
+
*/
|
|
180
|
+
export interface LlmApiInterface {
|
|
181
|
+
/**
|
|
182
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
183
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
184
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof LlmApiInterface
|
|
188
|
+
*/
|
|
189
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
193
|
+
* @summary List LLM with plaintext api_key
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
* @memberof LlmApiInterface
|
|
197
|
+
*/
|
|
198
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): AxiosPromise<LlmList>;
|
|
199
|
+
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Request parameters for getLLMWithAPIKey operation in LlmApi.
|
|
204
|
+
* @export
|
|
205
|
+
* @interface LlmApiGetLLMWithAPIKeyRequest
|
|
206
|
+
*/
|
|
207
|
+
export interface LlmApiGetLLMWithAPIKeyRequest {
|
|
208
|
+
/**
|
|
209
|
+
* ID of the LLM
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof LlmApiGetLLMWithAPIKey
|
|
212
|
+
*/
|
|
213
|
+
readonly id: string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* LlmApi - object-oriented interface
|
|
218
|
+
* @export
|
|
219
|
+
* @class LlmApi
|
|
220
|
+
* @extends {BaseAPI}
|
|
221
|
+
*/
|
|
222
|
+
export class LlmApi extends BaseAPI implements LlmApiInterface {
|
|
223
|
+
/**
|
|
224
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
225
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
226
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
* @memberof LlmApi
|
|
230
|
+
*/
|
|
231
|
+
public getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig) {
|
|
232
|
+
return LlmApiFp(this.configuration).getLLMWithAPIKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
237
|
+
* @summary List LLM with plaintext api_key
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof LlmApi
|
|
241
|
+
*/
|
|
242
|
+
public listLLMWithAPIKey(options?: RawAxiosRequestConfig) {
|
|
243
|
+
return LlmApiFp(this.configuration).listLLMWithAPIKey(options).then((request) => request(this.axios, this.basePath));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const AccessLevel = {
|
|
24
|
+
Platform: 'Platform',
|
|
25
|
+
Organization: 'Organization'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './apierror-response';
|
|
2
|
+
export * from './access-level';
|
|
2
3
|
export * from './alert';
|
|
3
4
|
export * from './alert-status';
|
|
4
5
|
export * from './apiserver-phase-detail';
|
|
@@ -41,6 +42,8 @@ export * from './io-quantity';
|
|
|
41
42
|
export * from './ip-pool-provider';
|
|
42
43
|
export * from './ip-pool-selection';
|
|
43
44
|
export * from './koordinator-reservation-resource-class';
|
|
45
|
+
export * from './llm';
|
|
46
|
+
export * from './llm-list';
|
|
44
47
|
export * from './localized-description';
|
|
45
48
|
export * from './network-mode';
|
|
46
49
|
export * from './ops-request-name';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { Llm } from './llm';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface LlmList
|
|
24
|
+
*/
|
|
25
|
+
export interface LlmList {
|
|
26
|
+
/**
|
|
27
|
+
* Items is the list of llm objects
|
|
28
|
+
* @type {Array<Llm>}
|
|
29
|
+
* @memberof LlmList
|
|
30
|
+
*/
|
|
31
|
+
'items': Array<Llm>;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AccessLevel } from './access-level';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* llm
|
|
22
|
+
* @export
|
|
23
|
+
* @interface Llm
|
|
24
|
+
*/
|
|
25
|
+
export interface Llm {
|
|
26
|
+
/**
|
|
27
|
+
* ID of the llm
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Llm
|
|
30
|
+
*/
|
|
31
|
+
'id'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the llm
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Llm
|
|
36
|
+
*/
|
|
37
|
+
'name': string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this LLM is enabled
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof Llm
|
|
42
|
+
*/
|
|
43
|
+
'enabled': boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Config. For OpenAI-compatible providers, model entries under `available_models` may include `max_tokens` as the maximum output token count and `context_length` as the total context window. `context_window` is a deprecated compatibility alias and should not be used by new clients.
|
|
46
|
+
* @type {{ [key: string]: object; }}
|
|
47
|
+
* @memberof Llm
|
|
48
|
+
*/
|
|
49
|
+
'config': { [key: string]: object; };
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AccessLevel}
|
|
53
|
+
* @memberof Llm
|
|
54
|
+
*/
|
|
55
|
+
'level'?: AccessLevel;
|
|
56
|
+
/**
|
|
57
|
+
* CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Llm
|
|
60
|
+
*/
|
|
61
|
+
'createdAt'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Llm
|
|
66
|
+
*/
|
|
67
|
+
'updatedAt'?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
package/src/internalapi.yaml
CHANGED
|
@@ -1079,6 +1079,59 @@ paths:
|
|
|
1079
1079
|
$ref: '#/components/responses/403'
|
|
1080
1080
|
'404':
|
|
1081
1081
|
$ref: '#/components/responses/404'
|
|
1082
|
+
/internal/v1/llm:
|
|
1083
|
+
get:
|
|
1084
|
+
operationId: listLLMWithAPIKey
|
|
1085
|
+
summary: List LLM with plaintext api_key
|
|
1086
|
+
description: Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
1087
|
+
produces:
|
|
1088
|
+
- application/json
|
|
1089
|
+
responses:
|
|
1090
|
+
'200':
|
|
1091
|
+
description: A successful response.
|
|
1092
|
+
content:
|
|
1093
|
+
application/json:
|
|
1094
|
+
schema:
|
|
1095
|
+
$ref: '#/components/schemas/llmList'
|
|
1096
|
+
'401':
|
|
1097
|
+
$ref: '#/components/responses/401'
|
|
1098
|
+
'403':
|
|
1099
|
+
$ref: '#/components/responses/403'
|
|
1100
|
+
'404':
|
|
1101
|
+
$ref: '#/components/responses/404'
|
|
1102
|
+
'500':
|
|
1103
|
+
$ref: '#/components/responses/500'
|
|
1104
|
+
tags:
|
|
1105
|
+
- llm
|
|
1106
|
+
/internal/v1/llm/{id}:
|
|
1107
|
+
get:
|
|
1108
|
+
tags:
|
|
1109
|
+
- llm
|
|
1110
|
+
operationId: getLLMWithAPIKey
|
|
1111
|
+
summary: Get LLM by ID with plaintext api_key
|
|
1112
|
+
description: Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
1113
|
+
parameters:
|
|
1114
|
+
- description: ID of the LLM
|
|
1115
|
+
in: path
|
|
1116
|
+
name: id
|
|
1117
|
+
required: true
|
|
1118
|
+
schema:
|
|
1119
|
+
type: string
|
|
1120
|
+
responses:
|
|
1121
|
+
'200':
|
|
1122
|
+
description: LLM by ID
|
|
1123
|
+
content:
|
|
1124
|
+
application/json:
|
|
1125
|
+
schema:
|
|
1126
|
+
$ref: '#/components/schemas/llm'
|
|
1127
|
+
'401':
|
|
1128
|
+
$ref: '#/components/responses/401'
|
|
1129
|
+
'403':
|
|
1130
|
+
$ref: '#/components/responses/403'
|
|
1131
|
+
'404':
|
|
1132
|
+
$ref: '#/components/responses/404'
|
|
1133
|
+
'500':
|
|
1134
|
+
$ref: '#/components/responses/500'
|
|
1082
1135
|
components:
|
|
1083
1136
|
securitySchemes:
|
|
1084
1137
|
BasicAuth:
|
|
@@ -2658,6 +2711,70 @@ components:
|
|
|
2658
2711
|
description: platformParameter value
|
|
2659
2712
|
description:
|
|
2660
2713
|
$ref: '#/components/schemas/localizedDescription'
|
|
2714
|
+
AccessLevel:
|
|
2715
|
+
type: string
|
|
2716
|
+
enum:
|
|
2717
|
+
- Platform
|
|
2718
|
+
- Organization
|
|
2719
|
+
llm:
|
|
2720
|
+
description: llm
|
|
2721
|
+
properties:
|
|
2722
|
+
id:
|
|
2723
|
+
description: ID of the llm
|
|
2724
|
+
title: ID
|
|
2725
|
+
type: string
|
|
2726
|
+
name:
|
|
2727
|
+
description: Name of the llm
|
|
2728
|
+
title: Name
|
|
2729
|
+
type: string
|
|
2730
|
+
enabled:
|
|
2731
|
+
description: Whether this LLM is enabled
|
|
2732
|
+
title: Enabled
|
|
2733
|
+
type: boolean
|
|
2734
|
+
config:
|
|
2735
|
+
description: |
|
|
2736
|
+
Config.
|
|
2737
|
+
|
|
2738
|
+
For OpenAI-compatible providers, model entries under `available_models`
|
|
2739
|
+
may include `max_tokens` as the maximum output token count and
|
|
2740
|
+
`context_length` as the total context window. `context_window` is a
|
|
2741
|
+
deprecated compatibility alias and should not be used by new clients.
|
|
2742
|
+
title: Config
|
|
2743
|
+
type: object
|
|
2744
|
+
additionalProperties:
|
|
2745
|
+
type: object
|
|
2746
|
+
level:
|
|
2747
|
+
$ref: '#/components/schemas/AccessLevel'
|
|
2748
|
+
createdAt:
|
|
2749
|
+
description: |-
|
|
2750
|
+
CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
|
|
2751
|
+
|
|
2752
|
+
Populated by the system. Read-only. Null for lists
|
|
2753
|
+
format: date-time
|
|
2754
|
+
type: string
|
|
2755
|
+
updatedAt:
|
|
2756
|
+
description: |-
|
|
2757
|
+
UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
|
|
2758
|
+
|
|
2759
|
+
Populated by the system. Read-only. Null for lists
|
|
2760
|
+
format: date-time
|
|
2761
|
+
type: string
|
|
2762
|
+
required:
|
|
2763
|
+
- name
|
|
2764
|
+
- config
|
|
2765
|
+
- enabled
|
|
2766
|
+
type: object
|
|
2767
|
+
llmList:
|
|
2768
|
+
required:
|
|
2769
|
+
- items
|
|
2770
|
+
type: object
|
|
2771
|
+
properties:
|
|
2772
|
+
items:
|
|
2773
|
+
type: array
|
|
2774
|
+
x-nullable: false
|
|
2775
|
+
description: Items is the list of llm objects
|
|
2776
|
+
items:
|
|
2777
|
+
$ref: '#/components/schemas/llm'
|
|
2661
2778
|
responses:
|
|
2662
2779
|
'400':
|
|
2663
2780
|
content:
|