@cherryin/api-client 0.0.19 → 0.0.20
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/.openapi-generator/FILES +46 -41
- package/README.md +69 -62
- package/api.ts +3081 -2198
- package/dist/api.d.ts +2070 -1336
- package/dist/api.js +712 -458
- package/dist/esm/api.d.ts +2070 -1336
- package/dist/esm/api.js +712 -458
- package/docs/AIModelAdminServiceApi.md +98 -87
- package/docs/AIModelPricingConfig.md +10 -10
- package/docs/AdminAIModel.md +73 -0
- package/docs/{AIModelCheckConnectionResponse.md → AdminAIModelCheckConnectionResponse.md} +4 -4
- package/docs/{AIModelCheckItem.md → AdminAIModelCheckItem.md} +3 -3
- package/docs/{AIModelCheckResult.md → AdminAIModelCheckResult.md} +5 -5
- package/docs/AdminAIModelCreateRequest.md +63 -0
- package/docs/AdminAIModelCreateResponse.md +25 -0
- package/docs/{AIModelDeleteResponse.md → AdminAIModelDeleteResponse.md} +4 -4
- package/docs/AdminAIModelDisableRequest.md +23 -0
- package/docs/AdminAIModelDisableResponse.md +25 -0
- package/docs/{AIModelDiscountConfig.md → AdminAIModelDiscountConfig.md} +4 -4
- package/docs/{AIModelGetResponse.md → AdminAIModelGetResponse.md} +5 -5
- package/docs/{AIModelListResponse.md → AdminAIModelListResponse.md} +5 -5
- package/docs/AdminAIModelProviderConfigItem.md +29 -0
- package/docs/AdminAIModelPublishRequest.md +23 -0
- package/docs/{AIModelDisableResponse.md → AdminAIModelPublishResponse.md} +5 -5
- package/docs/AdminAIModelUpdateRequest.md +25 -0
- package/docs/{AIModelUpdateResponse.md → AdminAIModelUpdateResponse.md} +5 -5
- package/docs/AdminProvider.md +46 -0
- package/docs/AdminProviderCreateRequest.md +39 -0
- package/docs/AdminProviderCreateResponse.md +25 -0
- package/docs/{ProviderModelDeleteResponse.md → AdminProviderDeleteResponse.md} +4 -4
- package/docs/AdminProviderGetResponse.md +25 -0
- package/docs/AdminProviderListResponse.md +27 -0
- package/docs/AdminProviderModel.md +66 -0
- package/docs/AdminProviderModelCreateRequest.md +59 -0
- package/docs/AdminProviderModelCreateResponse.md +25 -0
- package/docs/{ProviderDeleteResponse.md → AdminProviderModelDeleteResponse.md} +4 -4
- package/docs/{ProviderGetResponse.md → AdminProviderModelGetResponse.md} +5 -5
- package/docs/{ProviderModelListResponse.md → AdminProviderModelListResponse.md} +6 -6
- package/docs/AdminProviderModelUpdateRequest.md +25 -0
- package/docs/{AIModelCreateResponse.md → AdminProviderModelUpdateResponse.md} +5 -5
- package/docs/AdminProviderUpdateRequest.md +25 -0
- package/docs/{AIModelPublishResponse.md → AdminProviderUpdateResponse.md} +5 -5
- package/docs/AudioPricing.md +8 -8
- package/docs/DiscountDeleteResponse.md +1 -1
- package/docs/DiscountGetResponse.md +1 -1
- package/docs/DiscountListResponse.md +1 -1
- package/docs/DiscountUpdateResponse.md +1 -1
- package/docs/FeatureCostPricing.md +5 -5
- package/docs/FrontAIModel.md +15 -17
- package/docs/FrontendModelCost.md +57 -0
- package/docs/FrontendModelExtraInfo.md +21 -0
- package/docs/FrontendModelsResponse.md +29 -0
- package/docs/FrontendProviderInfo.md +31 -0
- package/docs/FrontendProviderModel.md +55 -0
- package/docs/FrontendProvidersResponse.md +29 -0
- package/docs/FrontendSearchContextCost.md +25 -0
- package/docs/ImagePricing.md +7 -7
- package/docs/LabelCreateResponse.md +1 -1
- package/docs/LabelDeleteResponse.md +1 -1
- package/docs/LabelListResponse.md +1 -1
- package/docs/LabelUpdateResponse.md +1 -1
- package/docs/ModelCapabilities.md +59 -0
- package/docs/ModelLimits.md +41 -0
- package/docs/{UserModelListResponse.md → ModelListResponse.md} +10 -11
- package/docs/ModelModalities.md +23 -0
- package/docs/MultimodalPricing.md +4 -4
- package/docs/PricingConditions.md +7 -7
- package/docs/PricingRules.md +6 -6
- package/docs/{AWSAuth.md → ProviderAWSAuth.md} +4 -3
- package/docs/ProviderAdminServiceApi.md +74 -53
- package/docs/ProviderAuth.md +6 -6
- package/docs/ProviderGCPAuth.md +27 -0
- package/docs/ProviderModelAdminServiceApi.md +74 -56
- package/docs/RequestPricing.md +3 -3
- package/docs/TextTokenInputPricing.md +5 -5
- package/docs/TextTokenOutputPricing.md +4 -4
- package/docs/TextTokenPricing.md +3 -3
- package/docs/TokenTier.md +4 -4
- package/docs/UserAPIKey.md +15 -15
- package/docs/UserAPIKeyCreateRequest.md +9 -9
- package/docs/UserAPIKeyCreateResponse.md +4 -4
- package/docs/UserAPIKeyDeleteResponse.md +3 -3
- package/docs/UserAPIKeyGetResponse.md +4 -4
- package/docs/UserAPIKeyListResponse.md +5 -5
- package/docs/UserAPIKeyServiceApi.md +21 -21
- package/docs/UserAPIKeyUpdateResponse.md +3 -3
- package/docs/UserBalanceChangeResponse.md +2 -2
- package/docs/UserBalanceEditResponse.md +2 -2
- package/docs/UserBalanceListResponse.md +2 -2
- package/docs/UserBalanceServiceApi.md +4 -4
- package/docs/UserLabelListResponse.md +1 -1
- package/docs/UserLabelPairChangeResponse.md +1 -1
- package/docs/UserModelServiceApi.md +124 -11
- package/docs/VersionedAPISchema.md +6 -6
- package/docs/VideoPricing.md +8 -8
- package/package.json +1 -1
- package/docs/AIModel.md +0 -45
- package/docs/AIModelArchitecture.md +0 -25
- package/docs/AIModelCreateRequest.md +0 -35
- package/docs/AIModelDeleteRequest.md +0 -21
- package/docs/AIModelDisableRequest.md +0 -21
- package/docs/AIModelMeta.md +0 -25
- package/docs/AIModelProviderConfigItem.md +0 -29
- package/docs/AIModelPublishRequest.md +0 -21
- package/docs/AIModelUpdateRequest.md +0 -37
- package/docs/GCPAuth.md +0 -27
- package/docs/Provider.md +0 -37
- package/docs/ProviderCreateRequest.md +0 -29
- package/docs/ProviderCreateResponse.md +0 -25
- package/docs/ProviderListResponse.md +0 -27
- package/docs/ProviderModel.md +0 -37
- package/docs/ProviderModelCreateRequest.md +0 -29
- package/docs/ProviderModelCreateResponse.md +0 -25
- package/docs/ProviderModelGetResponse.md +0 -25
- package/docs/ProviderModelPayload.md +0 -23
- package/docs/ProviderModelUpdateRequest.md +0 -31
- package/docs/ProviderModelUpdateResponse.md +0 -25
- package/docs/ProviderPayload.md +0 -21
- package/docs/ProviderUpdateRequest.md +0 -31
- package/docs/ProviderUpdateResponse.md +0 -25
package/dist/api.js
CHANGED
|
@@ -36,12 +36,12 @@ const base_1 = require("./base");
|
|
|
36
36
|
const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param {Array<string>} [aiModelNames]
|
|
39
|
+
* AdminAIModelCheckConnection 检查 AIModel 的连接性
|
|
40
|
+
* @param {Array<string>} [aiModelNames] @gotags: form:\"ai_model_names\"
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
aIModelAdminServiceAdminAIModelCheckConnection: (aiModelNames_1, ...args_1) => __awaiter(this, [aiModelNames_1, ...args_1], void 0, function* (aiModelNames, options = {}) {
|
|
45
45
|
const localVarPath = `/admin/ai-model/check/connection`;
|
|
46
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
47
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -64,14 +64,14 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
64
64
|
};
|
|
65
65
|
}),
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @param {
|
|
67
|
+
* AdminAIModelCreate 创建新的 AIModel(草稿状态) 请求路径: POST /admin/ai-model/create
|
|
68
|
+
* @param {AdminAIModelCreateRequest} adminAIModelCreateRequest
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
// verify required parameter '
|
|
74
|
-
(0, common_1.assertParamExists)('
|
|
72
|
+
aIModelAdminServiceAdminAIModelCreate: (adminAIModelCreateRequest_1, ...args_1) => __awaiter(this, [adminAIModelCreateRequest_1, ...args_1], void 0, function* (adminAIModelCreateRequest, options = {}) {
|
|
73
|
+
// verify required parameter 'adminAIModelCreateRequest' is not null or undefined
|
|
74
|
+
(0, common_1.assertParamExists)('aIModelAdminServiceAdminAIModelCreate', 'adminAIModelCreateRequest', adminAIModelCreateRequest);
|
|
75
75
|
const localVarPath = `/admin/ai-model/create`;
|
|
76
76
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
77
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -86,21 +86,20 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
86
86
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
87
87
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
88
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
89
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
89
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAIModelCreateRequest, localVarRequestOptions, configuration);
|
|
90
90
|
return {
|
|
91
91
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
92
92
|
options: localVarRequestOptions,
|
|
93
93
|
};
|
|
94
94
|
}),
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @param {
|
|
96
|
+
* AdminAIModelDelete 删除 AIModel(软删除) 请求路径: POST /admin/ai-model/delete
|
|
97
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
98
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
98
99
|
* @param {*} [options] Override http request option.
|
|
99
100
|
* @throws {RequiredError}
|
|
100
101
|
*/
|
|
101
|
-
|
|
102
|
-
// verify required parameter 'aIModelDeleteRequest' is not null or undefined
|
|
103
|
-
(0, common_1.assertParamExists)('aIModelAdminServiceAIModelDelete', 'aIModelDeleteRequest', aIModelDeleteRequest);
|
|
102
|
+
aIModelAdminServiceAdminAIModelDelete: (id_1, recordId_1, ...args_1) => __awaiter(this, [id_1, recordId_1, ...args_1], void 0, function* (id, recordId, options = {}) {
|
|
104
103
|
const localVarPath = `/admin/ai-model/delete`;
|
|
105
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
105
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -108,28 +107,32 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
108
107
|
if (configuration) {
|
|
109
108
|
baseOptions = configuration.baseOptions;
|
|
110
109
|
}
|
|
111
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
110
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
112
111
|
const localVarHeaderParameter = {};
|
|
113
112
|
const localVarQueryParameter = {};
|
|
114
|
-
|
|
113
|
+
if (id !== undefined) {
|
|
114
|
+
localVarQueryParameter['id'] = id;
|
|
115
|
+
}
|
|
116
|
+
if (recordId !== undefined) {
|
|
117
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
118
|
+
}
|
|
115
119
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
116
120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
121
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
118
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aIModelDeleteRequest, localVarRequestOptions, configuration);
|
|
119
122
|
return {
|
|
120
123
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
121
124
|
options: localVarRequestOptions,
|
|
122
125
|
};
|
|
123
126
|
}),
|
|
124
127
|
/**
|
|
125
|
-
*
|
|
126
|
-
* @param {
|
|
128
|
+
* AdminAIModelDisable 禁用 AIModel,状态变更为已禁用 请求路径: POST /admin/ai-model/disable
|
|
129
|
+
* @param {AdminAIModelDisableRequest} adminAIModelDisableRequest
|
|
127
130
|
* @param {*} [options] Override http request option.
|
|
128
131
|
* @throws {RequiredError}
|
|
129
132
|
*/
|
|
130
|
-
|
|
131
|
-
// verify required parameter '
|
|
132
|
-
(0, common_1.assertParamExists)('
|
|
133
|
+
aIModelAdminServiceAdminAIModelDisable: (adminAIModelDisableRequest_1, ...args_1) => __awaiter(this, [adminAIModelDisableRequest_1, ...args_1], void 0, function* (adminAIModelDisableRequest, options = {}) {
|
|
134
|
+
// verify required parameter 'adminAIModelDisableRequest' is not null or undefined
|
|
135
|
+
(0, common_1.assertParamExists)('aIModelAdminServiceAdminAIModelDisable', 'adminAIModelDisableRequest', adminAIModelDisableRequest);
|
|
133
136
|
const localVarPath = `/admin/ai-model/disable`;
|
|
134
137
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
135
138
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -144,20 +147,20 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
144
147
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
148
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
149
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
150
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAIModelDisableRequest, localVarRequestOptions, configuration);
|
|
148
151
|
return {
|
|
149
152
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
150
153
|
options: localVarRequestOptions,
|
|
151
154
|
};
|
|
152
155
|
}),
|
|
153
156
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @param {string} [id]
|
|
156
|
-
* @param {string} [
|
|
157
|
+
* AdminAIModelGet 根据 ID 或名称获取单个 AIModel 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name}
|
|
158
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
159
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
157
160
|
* @param {*} [options] Override http request option.
|
|
158
161
|
* @throws {RequiredError}
|
|
159
162
|
*/
|
|
160
|
-
|
|
163
|
+
aIModelAdminServiceAdminAIModelGet: (id_1, recordId_1, ...args_1) => __awaiter(this, [id_1, recordId_1, ...args_1], void 0, function* (id, recordId, options = {}) {
|
|
161
164
|
const localVarPath = `/admin/ai-model/get`;
|
|
162
165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -171,8 +174,8 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
171
174
|
if (id !== undefined) {
|
|
172
175
|
localVarQueryParameter['id'] = id;
|
|
173
176
|
}
|
|
174
|
-
if (
|
|
175
|
-
localVarQueryParameter['
|
|
177
|
+
if (recordId !== undefined) {
|
|
178
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
176
179
|
}
|
|
177
180
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
178
181
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -183,16 +186,19 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
183
186
|
};
|
|
184
187
|
}),
|
|
185
188
|
/**
|
|
186
|
-
*
|
|
189
|
+
* AdminAIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group}
|
|
187
190
|
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
188
191
|
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
189
|
-
* @param {number} [
|
|
190
|
-
* @param {string} [
|
|
191
|
-
* @param {string} [
|
|
192
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
193
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
194
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
195
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
196
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
197
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
192
198
|
* @param {*} [options] Override http request option.
|
|
193
199
|
* @throws {RequiredError}
|
|
194
200
|
*/
|
|
195
|
-
|
|
201
|
+
aIModelAdminServiceAdminAIModelList: (page_1, pageSize_1, modelStatus_1, modelId_1, modelName_1, providerId_1, providerName_1, isOfficial_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, modelStatus_1, modelId_1, modelName_1, providerId_1, providerName_1, isOfficial_1, ...args_1], void 0, function* (page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options = {}) {
|
|
196
202
|
const localVarPath = `/admin/ai-model/list`;
|
|
197
203
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
204
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -209,14 +215,23 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
209
215
|
if (pageSize !== undefined) {
|
|
210
216
|
localVarQueryParameter['page_size'] = pageSize;
|
|
211
217
|
}
|
|
212
|
-
if (
|
|
213
|
-
localVarQueryParameter['
|
|
218
|
+
if (modelStatus !== undefined) {
|
|
219
|
+
localVarQueryParameter['model_status'] = modelStatus;
|
|
214
220
|
}
|
|
215
|
-
if (
|
|
216
|
-
localVarQueryParameter['
|
|
221
|
+
if (modelId !== undefined) {
|
|
222
|
+
localVarQueryParameter['model_id'] = modelId;
|
|
217
223
|
}
|
|
218
|
-
if (
|
|
219
|
-
localVarQueryParameter['
|
|
224
|
+
if (modelName !== undefined) {
|
|
225
|
+
localVarQueryParameter['model_name'] = modelName;
|
|
226
|
+
}
|
|
227
|
+
if (providerId !== undefined) {
|
|
228
|
+
localVarQueryParameter['provider_id'] = providerId;
|
|
229
|
+
}
|
|
230
|
+
if (providerName !== undefined) {
|
|
231
|
+
localVarQueryParameter['provider_name'] = providerName;
|
|
232
|
+
}
|
|
233
|
+
if (isOfficial !== undefined) {
|
|
234
|
+
localVarQueryParameter['is_official'] = isOfficial;
|
|
220
235
|
}
|
|
221
236
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
222
237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -227,14 +242,14 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
227
242
|
};
|
|
228
243
|
}),
|
|
229
244
|
/**
|
|
230
|
-
*
|
|
231
|
-
* @param {
|
|
245
|
+
* AdminAIModelPublish 发布 AIModel,状态变更为已发布 请求路径: POST /admin/ai-model/publish
|
|
246
|
+
* @param {AdminAIModelPublishRequest} adminAIModelPublishRequest
|
|
232
247
|
* @param {*} [options] Override http request option.
|
|
233
248
|
* @throws {RequiredError}
|
|
234
249
|
*/
|
|
235
|
-
|
|
236
|
-
// verify required parameter '
|
|
237
|
-
(0, common_1.assertParamExists)('
|
|
250
|
+
aIModelAdminServiceAdminAIModelPublish: (adminAIModelPublishRequest_1, ...args_1) => __awaiter(this, [adminAIModelPublishRequest_1, ...args_1], void 0, function* (adminAIModelPublishRequest, options = {}) {
|
|
251
|
+
// verify required parameter 'adminAIModelPublishRequest' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('aIModelAdminServiceAdminAIModelPublish', 'adminAIModelPublishRequest', adminAIModelPublishRequest);
|
|
238
253
|
const localVarPath = `/admin/ai-model/publish`;
|
|
239
254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
255
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -249,21 +264,21 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
249
264
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
250
265
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
266
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
252
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
267
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAIModelPublishRequest, localVarRequestOptions, configuration);
|
|
253
268
|
return {
|
|
254
269
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
255
270
|
options: localVarRequestOptions,
|
|
256
271
|
};
|
|
257
272
|
}),
|
|
258
273
|
/**
|
|
259
|
-
*
|
|
260
|
-
* @param {
|
|
274
|
+
* AdminAIModelUpdate 更新现有的 AIModel 请求路径: POST /admin/ai-model/update
|
|
275
|
+
* @param {AdminAIModelUpdateRequest} adminAIModelUpdateRequest
|
|
261
276
|
* @param {*} [options] Override http request option.
|
|
262
277
|
* @throws {RequiredError}
|
|
263
278
|
*/
|
|
264
|
-
|
|
265
|
-
// verify required parameter '
|
|
266
|
-
(0, common_1.assertParamExists)('
|
|
279
|
+
aIModelAdminServiceAdminAIModelUpdate: (adminAIModelUpdateRequest_1, ...args_1) => __awaiter(this, [adminAIModelUpdateRequest_1, ...args_1], void 0, function* (adminAIModelUpdateRequest, options = {}) {
|
|
280
|
+
// verify required parameter 'adminAIModelUpdateRequest' is not null or undefined
|
|
281
|
+
(0, common_1.assertParamExists)('aIModelAdminServiceAdminAIModelUpdate', 'adminAIModelUpdateRequest', adminAIModelUpdateRequest);
|
|
267
282
|
const localVarPath = `/admin/ai-model/update`;
|
|
268
283
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
269
284
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -278,7 +293,7 @@ const AIModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
278
293
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
295
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
296
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAIModelUpdateRequest, localVarRequestOptions, configuration);
|
|
282
297
|
return {
|
|
283
298
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
299
|
options: localVarRequestOptions,
|
|
@@ -294,127 +309,131 @@ const AIModelAdminServiceApiFp = function (configuration) {
|
|
|
294
309
|
const localVarAxiosParamCreator = (0, exports.AIModelAdminServiceApiAxiosParamCreator)(configuration);
|
|
295
310
|
return {
|
|
296
311
|
/**
|
|
297
|
-
*
|
|
298
|
-
* @param {Array<string>} [aiModelNames]
|
|
312
|
+
* AdminAIModelCheckConnection 检查 AIModel 的连接性
|
|
313
|
+
* @param {Array<string>} [aiModelNames] @gotags: form:\"ai_model_names\"
|
|
299
314
|
* @param {*} [options] Override http request option.
|
|
300
315
|
* @throws {RequiredError}
|
|
301
316
|
*/
|
|
302
|
-
|
|
317
|
+
aIModelAdminServiceAdminAIModelCheckConnection(aiModelNames, options) {
|
|
303
318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
304
319
|
var _a, _b, _c;
|
|
305
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
320
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelCheckConnection(aiModelNames, options);
|
|
306
321
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
307
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
322
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelCheckConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
308
323
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
309
324
|
});
|
|
310
325
|
},
|
|
311
326
|
/**
|
|
312
|
-
*
|
|
313
|
-
* @param {
|
|
327
|
+
* AdminAIModelCreate 创建新的 AIModel(草稿状态) 请求路径: POST /admin/ai-model/create
|
|
328
|
+
* @param {AdminAIModelCreateRequest} adminAIModelCreateRequest
|
|
314
329
|
* @param {*} [options] Override http request option.
|
|
315
330
|
* @throws {RequiredError}
|
|
316
331
|
*/
|
|
317
|
-
|
|
332
|
+
aIModelAdminServiceAdminAIModelCreate(adminAIModelCreateRequest, options) {
|
|
318
333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
334
|
var _a, _b, _c;
|
|
320
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
335
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelCreate(adminAIModelCreateRequest, options);
|
|
321
336
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
322
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
337
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
323
338
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
324
339
|
});
|
|
325
340
|
},
|
|
326
341
|
/**
|
|
327
|
-
*
|
|
328
|
-
* @param {
|
|
342
|
+
* AdminAIModelDelete 删除 AIModel(软删除) 请求路径: POST /admin/ai-model/delete
|
|
343
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
344
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
329
345
|
* @param {*} [options] Override http request option.
|
|
330
346
|
* @throws {RequiredError}
|
|
331
347
|
*/
|
|
332
|
-
|
|
348
|
+
aIModelAdminServiceAdminAIModelDelete(id, recordId, options) {
|
|
333
349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
334
350
|
var _a, _b, _c;
|
|
335
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
351
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelDelete(id, recordId, options);
|
|
336
352
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
337
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
353
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
338
354
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
339
355
|
});
|
|
340
356
|
},
|
|
341
357
|
/**
|
|
342
|
-
*
|
|
343
|
-
* @param {
|
|
358
|
+
* AdminAIModelDisable 禁用 AIModel,状态变更为已禁用 请求路径: POST /admin/ai-model/disable
|
|
359
|
+
* @param {AdminAIModelDisableRequest} adminAIModelDisableRequest
|
|
344
360
|
* @param {*} [options] Override http request option.
|
|
345
361
|
* @throws {RequiredError}
|
|
346
362
|
*/
|
|
347
|
-
|
|
363
|
+
aIModelAdminServiceAdminAIModelDisable(adminAIModelDisableRequest, options) {
|
|
348
364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
349
365
|
var _a, _b, _c;
|
|
350
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
366
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelDisable(adminAIModelDisableRequest, options);
|
|
351
367
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
352
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
368
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelDisable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
353
369
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
354
370
|
});
|
|
355
371
|
},
|
|
356
372
|
/**
|
|
357
|
-
*
|
|
358
|
-
* @param {string} [id]
|
|
359
|
-
* @param {string} [
|
|
373
|
+
* AdminAIModelGet 根据 ID 或名称获取单个 AIModel 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name}
|
|
374
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
375
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
360
376
|
* @param {*} [options] Override http request option.
|
|
361
377
|
* @throws {RequiredError}
|
|
362
378
|
*/
|
|
363
|
-
|
|
379
|
+
aIModelAdminServiceAdminAIModelGet(id, recordId, options) {
|
|
364
380
|
return __awaiter(this, void 0, void 0, function* () {
|
|
365
381
|
var _a, _b, _c;
|
|
366
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
382
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelGet(id, recordId, options);
|
|
367
383
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
368
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
384
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
369
385
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
370
386
|
});
|
|
371
387
|
},
|
|
372
388
|
/**
|
|
373
|
-
*
|
|
389
|
+
* AdminAIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group}
|
|
374
390
|
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
375
391
|
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
376
|
-
* @param {number} [
|
|
377
|
-
* @param {string} [
|
|
378
|
-
* @param {string} [
|
|
392
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
393
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
394
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
395
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
396
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
397
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
379
398
|
* @param {*} [options] Override http request option.
|
|
380
399
|
* @throws {RequiredError}
|
|
381
400
|
*/
|
|
382
|
-
|
|
401
|
+
aIModelAdminServiceAdminAIModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
383
402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
384
403
|
var _a, _b, _c;
|
|
385
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options);
|
|
386
405
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
387
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
406
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
388
407
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
389
408
|
});
|
|
390
409
|
},
|
|
391
410
|
/**
|
|
392
|
-
*
|
|
393
|
-
* @param {
|
|
411
|
+
* AdminAIModelPublish 发布 AIModel,状态变更为已发布 请求路径: POST /admin/ai-model/publish
|
|
412
|
+
* @param {AdminAIModelPublishRequest} adminAIModelPublishRequest
|
|
394
413
|
* @param {*} [options] Override http request option.
|
|
395
414
|
* @throws {RequiredError}
|
|
396
415
|
*/
|
|
397
|
-
|
|
416
|
+
aIModelAdminServiceAdminAIModelPublish(adminAIModelPublishRequest, options) {
|
|
398
417
|
return __awaiter(this, void 0, void 0, function* () {
|
|
399
418
|
var _a, _b, _c;
|
|
400
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
419
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelPublish(adminAIModelPublishRequest, options);
|
|
401
420
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
402
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
421
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelPublish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
403
422
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
404
423
|
});
|
|
405
424
|
},
|
|
406
425
|
/**
|
|
407
|
-
*
|
|
408
|
-
* @param {
|
|
426
|
+
* AdminAIModelUpdate 更新现有的 AIModel 请求路径: POST /admin/ai-model/update
|
|
427
|
+
* @param {AdminAIModelUpdateRequest} adminAIModelUpdateRequest
|
|
409
428
|
* @param {*} [options] Override http request option.
|
|
410
429
|
* @throws {RequiredError}
|
|
411
430
|
*/
|
|
412
|
-
|
|
431
|
+
aIModelAdminServiceAdminAIModelUpdate(adminAIModelUpdateRequest, options) {
|
|
413
432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
414
433
|
var _a, _b, _c;
|
|
415
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
434
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aIModelAdminServiceAdminAIModelUpdate(adminAIModelUpdateRequest, options);
|
|
416
435
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
417
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.
|
|
436
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIModelAdminServiceApi.aIModelAdminServiceAdminAIModelUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
418
437
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
419
438
|
});
|
|
420
439
|
},
|
|
@@ -428,81 +447,85 @@ const AIModelAdminServiceApiFactory = function (configuration, basePath, axios)
|
|
|
428
447
|
const localVarFp = (0, exports.AIModelAdminServiceApiFp)(configuration);
|
|
429
448
|
return {
|
|
430
449
|
/**
|
|
431
|
-
*
|
|
432
|
-
* @param {Array<string>} [aiModelNames]
|
|
450
|
+
* AdminAIModelCheckConnection 检查 AIModel 的连接性
|
|
451
|
+
* @param {Array<string>} [aiModelNames] @gotags: form:\"ai_model_names\"
|
|
433
452
|
* @param {*} [options] Override http request option.
|
|
434
453
|
* @throws {RequiredError}
|
|
435
454
|
*/
|
|
436
|
-
|
|
437
|
-
return localVarFp.
|
|
455
|
+
aIModelAdminServiceAdminAIModelCheckConnection(aiModelNames, options) {
|
|
456
|
+
return localVarFp.aIModelAdminServiceAdminAIModelCheckConnection(aiModelNames, options).then((request) => request(axios, basePath));
|
|
438
457
|
},
|
|
439
458
|
/**
|
|
440
|
-
*
|
|
441
|
-
* @param {
|
|
459
|
+
* AdminAIModelCreate 创建新的 AIModel(草稿状态) 请求路径: POST /admin/ai-model/create
|
|
460
|
+
* @param {AdminAIModelCreateRequest} adminAIModelCreateRequest
|
|
442
461
|
* @param {*} [options] Override http request option.
|
|
443
462
|
* @throws {RequiredError}
|
|
444
463
|
*/
|
|
445
|
-
|
|
446
|
-
return localVarFp.
|
|
464
|
+
aIModelAdminServiceAdminAIModelCreate(adminAIModelCreateRequest, options) {
|
|
465
|
+
return localVarFp.aIModelAdminServiceAdminAIModelCreate(adminAIModelCreateRequest, options).then((request) => request(axios, basePath));
|
|
447
466
|
},
|
|
448
467
|
/**
|
|
449
|
-
*
|
|
450
|
-
* @param {
|
|
468
|
+
* AdminAIModelDelete 删除 AIModel(软删除) 请求路径: POST /admin/ai-model/delete
|
|
469
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
470
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
451
471
|
* @param {*} [options] Override http request option.
|
|
452
472
|
* @throws {RequiredError}
|
|
453
473
|
*/
|
|
454
|
-
|
|
455
|
-
return localVarFp.
|
|
474
|
+
aIModelAdminServiceAdminAIModelDelete(id, recordId, options) {
|
|
475
|
+
return localVarFp.aIModelAdminServiceAdminAIModelDelete(id, recordId, options).then((request) => request(axios, basePath));
|
|
456
476
|
},
|
|
457
477
|
/**
|
|
458
|
-
*
|
|
459
|
-
* @param {
|
|
478
|
+
* AdminAIModelDisable 禁用 AIModel,状态变更为已禁用 请求路径: POST /admin/ai-model/disable
|
|
479
|
+
* @param {AdminAIModelDisableRequest} adminAIModelDisableRequest
|
|
460
480
|
* @param {*} [options] Override http request option.
|
|
461
481
|
* @throws {RequiredError}
|
|
462
482
|
*/
|
|
463
|
-
|
|
464
|
-
return localVarFp.
|
|
483
|
+
aIModelAdminServiceAdminAIModelDisable(adminAIModelDisableRequest, options) {
|
|
484
|
+
return localVarFp.aIModelAdminServiceAdminAIModelDisable(adminAIModelDisableRequest, options).then((request) => request(axios, basePath));
|
|
465
485
|
},
|
|
466
486
|
/**
|
|
467
|
-
*
|
|
468
|
-
* @param {string} [id]
|
|
469
|
-
* @param {string} [
|
|
487
|
+
* AdminAIModelGet 根据 ID 或名称获取单个 AIModel 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name}
|
|
488
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
489
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
470
490
|
* @param {*} [options] Override http request option.
|
|
471
491
|
* @throws {RequiredError}
|
|
472
492
|
*/
|
|
473
|
-
|
|
474
|
-
return localVarFp.
|
|
493
|
+
aIModelAdminServiceAdminAIModelGet(id, recordId, options) {
|
|
494
|
+
return localVarFp.aIModelAdminServiceAdminAIModelGet(id, recordId, options).then((request) => request(axios, basePath));
|
|
475
495
|
},
|
|
476
496
|
/**
|
|
477
|
-
*
|
|
497
|
+
* AdminAIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group}
|
|
478
498
|
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
479
499
|
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
480
|
-
* @param {number} [
|
|
481
|
-
* @param {string} [
|
|
482
|
-
* @param {string} [
|
|
500
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
501
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
502
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
503
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
504
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
505
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
483
506
|
* @param {*} [options] Override http request option.
|
|
484
507
|
* @throws {RequiredError}
|
|
485
508
|
*/
|
|
486
|
-
|
|
487
|
-
return localVarFp.
|
|
509
|
+
aIModelAdminServiceAdminAIModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
510
|
+
return localVarFp.aIModelAdminServiceAdminAIModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options).then((request) => request(axios, basePath));
|
|
488
511
|
},
|
|
489
512
|
/**
|
|
490
|
-
*
|
|
491
|
-
* @param {
|
|
513
|
+
* AdminAIModelPublish 发布 AIModel,状态变更为已发布 请求路径: POST /admin/ai-model/publish
|
|
514
|
+
* @param {AdminAIModelPublishRequest} adminAIModelPublishRequest
|
|
492
515
|
* @param {*} [options] Override http request option.
|
|
493
516
|
* @throws {RequiredError}
|
|
494
517
|
*/
|
|
495
|
-
|
|
496
|
-
return localVarFp.
|
|
518
|
+
aIModelAdminServiceAdminAIModelPublish(adminAIModelPublishRequest, options) {
|
|
519
|
+
return localVarFp.aIModelAdminServiceAdminAIModelPublish(adminAIModelPublishRequest, options).then((request) => request(axios, basePath));
|
|
497
520
|
},
|
|
498
521
|
/**
|
|
499
|
-
*
|
|
500
|
-
* @param {
|
|
522
|
+
* AdminAIModelUpdate 更新现有的 AIModel 请求路径: POST /admin/ai-model/update
|
|
523
|
+
* @param {AdminAIModelUpdateRequest} adminAIModelUpdateRequest
|
|
501
524
|
* @param {*} [options] Override http request option.
|
|
502
525
|
* @throws {RequiredError}
|
|
503
526
|
*/
|
|
504
|
-
|
|
505
|
-
return localVarFp.
|
|
527
|
+
aIModelAdminServiceAdminAIModelUpdate(adminAIModelUpdateRequest, options) {
|
|
528
|
+
return localVarFp.aIModelAdminServiceAdminAIModelUpdate(adminAIModelUpdateRequest, options).then((request) => request(axios, basePath));
|
|
506
529
|
},
|
|
507
530
|
};
|
|
508
531
|
};
|
|
@@ -512,81 +535,85 @@ exports.AIModelAdminServiceApiFactory = AIModelAdminServiceApiFactory;
|
|
|
512
535
|
*/
|
|
513
536
|
class AIModelAdminServiceApi extends base_1.BaseAPI {
|
|
514
537
|
/**
|
|
515
|
-
*
|
|
516
|
-
* @param {Array<string>} [aiModelNames]
|
|
538
|
+
* AdminAIModelCheckConnection 检查 AIModel 的连接性
|
|
539
|
+
* @param {Array<string>} [aiModelNames] @gotags: form:\"ai_model_names\"
|
|
517
540
|
* @param {*} [options] Override http request option.
|
|
518
541
|
* @throws {RequiredError}
|
|
519
542
|
*/
|
|
520
|
-
|
|
521
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
543
|
+
aIModelAdminServiceAdminAIModelCheckConnection(aiModelNames, options) {
|
|
544
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelCheckConnection(aiModelNames, options).then((request) => request(this.axios, this.basePath));
|
|
522
545
|
}
|
|
523
546
|
/**
|
|
524
|
-
*
|
|
525
|
-
* @param {
|
|
547
|
+
* AdminAIModelCreate 创建新的 AIModel(草稿状态) 请求路径: POST /admin/ai-model/create
|
|
548
|
+
* @param {AdminAIModelCreateRequest} adminAIModelCreateRequest
|
|
526
549
|
* @param {*} [options] Override http request option.
|
|
527
550
|
* @throws {RequiredError}
|
|
528
551
|
*/
|
|
529
|
-
|
|
530
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
552
|
+
aIModelAdminServiceAdminAIModelCreate(adminAIModelCreateRequest, options) {
|
|
553
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelCreate(adminAIModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
531
554
|
}
|
|
532
555
|
/**
|
|
533
|
-
*
|
|
534
|
-
* @param {
|
|
556
|
+
* AdminAIModelDelete 删除 AIModel(软删除) 请求路径: POST /admin/ai-model/delete
|
|
557
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
558
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
535
559
|
* @param {*} [options] Override http request option.
|
|
536
560
|
* @throws {RequiredError}
|
|
537
561
|
*/
|
|
538
|
-
|
|
539
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
562
|
+
aIModelAdminServiceAdminAIModelDelete(id, recordId, options) {
|
|
563
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelDelete(id, recordId, options).then((request) => request(this.axios, this.basePath));
|
|
540
564
|
}
|
|
541
565
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @param {
|
|
566
|
+
* AdminAIModelDisable 禁用 AIModel,状态变更为已禁用 请求路径: POST /admin/ai-model/disable
|
|
567
|
+
* @param {AdminAIModelDisableRequest} adminAIModelDisableRequest
|
|
544
568
|
* @param {*} [options] Override http request option.
|
|
545
569
|
* @throws {RequiredError}
|
|
546
570
|
*/
|
|
547
|
-
|
|
548
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
571
|
+
aIModelAdminServiceAdminAIModelDisable(adminAIModelDisableRequest, options) {
|
|
572
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelDisable(adminAIModelDisableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
549
573
|
}
|
|
550
574
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @param {string} [id]
|
|
553
|
-
* @param {string} [
|
|
575
|
+
* AdminAIModelGet 根据 ID 或名称获取单个 AIModel 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name}
|
|
576
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
577
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
554
578
|
* @param {*} [options] Override http request option.
|
|
555
579
|
* @throws {RequiredError}
|
|
556
580
|
*/
|
|
557
|
-
|
|
558
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
581
|
+
aIModelAdminServiceAdminAIModelGet(id, recordId, options) {
|
|
582
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelGet(id, recordId, options).then((request) => request(this.axios, this.basePath));
|
|
559
583
|
}
|
|
560
584
|
/**
|
|
561
|
-
*
|
|
585
|
+
* AdminAIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group}
|
|
562
586
|
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
563
587
|
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
564
|
-
* @param {number} [
|
|
565
|
-
* @param {string} [
|
|
566
|
-
* @param {string} [
|
|
588
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
589
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
590
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
591
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
592
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
593
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
567
594
|
* @param {*} [options] Override http request option.
|
|
568
595
|
* @throws {RequiredError}
|
|
569
596
|
*/
|
|
570
|
-
|
|
571
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
597
|
+
aIModelAdminServiceAdminAIModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
598
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options).then((request) => request(this.axios, this.basePath));
|
|
572
599
|
}
|
|
573
600
|
/**
|
|
574
|
-
*
|
|
575
|
-
* @param {
|
|
601
|
+
* AdminAIModelPublish 发布 AIModel,状态变更为已发布 请求路径: POST /admin/ai-model/publish
|
|
602
|
+
* @param {AdminAIModelPublishRequest} adminAIModelPublishRequest
|
|
576
603
|
* @param {*} [options] Override http request option.
|
|
577
604
|
* @throws {RequiredError}
|
|
578
605
|
*/
|
|
579
|
-
|
|
580
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
606
|
+
aIModelAdminServiceAdminAIModelPublish(adminAIModelPublishRequest, options) {
|
|
607
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelPublish(adminAIModelPublishRequest, options).then((request) => request(this.axios, this.basePath));
|
|
581
608
|
}
|
|
582
609
|
/**
|
|
583
|
-
*
|
|
584
|
-
* @param {
|
|
610
|
+
* AdminAIModelUpdate 更新现有的 AIModel 请求路径: POST /admin/ai-model/update
|
|
611
|
+
* @param {AdminAIModelUpdateRequest} adminAIModelUpdateRequest
|
|
585
612
|
* @param {*} [options] Override http request option.
|
|
586
613
|
* @throws {RequiredError}
|
|
587
614
|
*/
|
|
588
|
-
|
|
589
|
-
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).
|
|
615
|
+
aIModelAdminServiceAdminAIModelUpdate(adminAIModelUpdateRequest, options) {
|
|
616
|
+
return (0, exports.AIModelAdminServiceApiFp)(this.configuration).aIModelAdminServiceAdminAIModelUpdate(adminAIModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
590
617
|
}
|
|
591
618
|
}
|
|
592
619
|
exports.AIModelAdminServiceApi = AIModelAdminServiceApi;
|
|
@@ -6404,14 +6431,14 @@ exports.PassportAuthUserServiceApi = PassportAuthUserServiceApi;
|
|
|
6404
6431
|
const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
6405
6432
|
return {
|
|
6406
6433
|
/**
|
|
6407
|
-
*
|
|
6408
|
-
* @param {
|
|
6434
|
+
* AdminProviderCreate 创建新的 Provider 请求路径: POST /admin/provider/create
|
|
6435
|
+
* @param {AdminProviderCreateRequest} adminProviderCreateRequest
|
|
6409
6436
|
* @param {*} [options] Override http request option.
|
|
6410
6437
|
* @throws {RequiredError}
|
|
6411
6438
|
*/
|
|
6412
|
-
|
|
6413
|
-
// verify required parameter '
|
|
6414
|
-
(0, common_1.assertParamExists)('
|
|
6439
|
+
providerAdminServiceAdminProviderCreate: (adminProviderCreateRequest_1, ...args_1) => __awaiter(this, [adminProviderCreateRequest_1, ...args_1], void 0, function* (adminProviderCreateRequest, options = {}) {
|
|
6440
|
+
// verify required parameter 'adminProviderCreateRequest' is not null or undefined
|
|
6441
|
+
(0, common_1.assertParamExists)('providerAdminServiceAdminProviderCreate', 'adminProviderCreateRequest', adminProviderCreateRequest);
|
|
6415
6442
|
const localVarPath = `/admin/provider/create`;
|
|
6416
6443
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6417
6444
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6426,19 +6453,20 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6426
6453
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6427
6454
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6428
6455
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6429
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6456
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminProviderCreateRequest, localVarRequestOptions, configuration);
|
|
6430
6457
|
return {
|
|
6431
6458
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6432
6459
|
options: localVarRequestOptions,
|
|
6433
6460
|
};
|
|
6434
6461
|
}),
|
|
6435
6462
|
/**
|
|
6436
|
-
*
|
|
6437
|
-
* @param {string} [id]
|
|
6463
|
+
* AdminProviderDelete 删除 Provider(软删除) 请求路径: DELETE /admin/provider/delete
|
|
6464
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6465
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6438
6466
|
* @param {*} [options] Override http request option.
|
|
6439
6467
|
* @throws {RequiredError}
|
|
6440
6468
|
*/
|
|
6441
|
-
|
|
6469
|
+
providerAdminServiceAdminProviderDelete: (id_1, recordId_1, ...args_1) => __awaiter(this, [id_1, recordId_1, ...args_1], void 0, function* (id, recordId, options = {}) {
|
|
6442
6470
|
const localVarPath = `/admin/provider/delete`;
|
|
6443
6471
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6444
6472
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6452,6 +6480,9 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6452
6480
|
if (id !== undefined) {
|
|
6453
6481
|
localVarQueryParameter['id'] = id;
|
|
6454
6482
|
}
|
|
6483
|
+
if (recordId !== undefined) {
|
|
6484
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
6485
|
+
}
|
|
6455
6486
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6456
6487
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6457
6488
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6461,12 +6492,14 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6461
6492
|
};
|
|
6462
6493
|
}),
|
|
6463
6494
|
/**
|
|
6464
|
-
*
|
|
6465
|
-
* @param {string} [id]
|
|
6495
|
+
* AdminProviderGet 根据 ID 获取单个 Provider 请求路径: GET /admin/provider/get?id={id}
|
|
6496
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6497
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id optional: id or record_id @gotags: form:\"record_id\"
|
|
6498
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
6466
6499
|
* @param {*} [options] Override http request option.
|
|
6467
6500
|
* @throws {RequiredError}
|
|
6468
6501
|
*/
|
|
6469
|
-
|
|
6502
|
+
providerAdminServiceAdminProviderGet: (id_1, recordId_1, isOfficial_1, ...args_1) => __awaiter(this, [id_1, recordId_1, isOfficial_1, ...args_1], void 0, function* (id, recordId, isOfficial, options = {}) {
|
|
6470
6503
|
const localVarPath = `/admin/provider/get`;
|
|
6471
6504
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6472
6505
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6480,6 +6513,12 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6480
6513
|
if (id !== undefined) {
|
|
6481
6514
|
localVarQueryParameter['id'] = id;
|
|
6482
6515
|
}
|
|
6516
|
+
if (recordId !== undefined) {
|
|
6517
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
6518
|
+
}
|
|
6519
|
+
if (isOfficial !== undefined) {
|
|
6520
|
+
localVarQueryParameter['is_official'] = isOfficial;
|
|
6521
|
+
}
|
|
6483
6522
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6484
6523
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6485
6524
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6489,15 +6528,19 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6489
6528
|
};
|
|
6490
6529
|
}),
|
|
6491
6530
|
/**
|
|
6492
|
-
*
|
|
6493
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
6494
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
6495
|
-
* @param {number} [providerStatus] provider_status 按状态过滤(可选)
|
|
6496
|
-
* @param {string} [
|
|
6531
|
+
* AdminProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix}
|
|
6532
|
+
* @param {number} [page] page 页码,从 1 开始 Default: 1 @gotags: form:\"page\"
|
|
6533
|
+
* @param {number} [pageSize] page_size 每页数量 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
6534
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider @gotags: form:\"provider_status\"
|
|
6535
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
6536
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
6537
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
6538
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
6539
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
6497
6540
|
* @param {*} [options] Override http request option.
|
|
6498
6541
|
* @throws {RequiredError}
|
|
6499
6542
|
*/
|
|
6500
|
-
|
|
6543
|
+
providerAdminServiceAdminProviderList: (page_1, pageSize_1, providerStatus_1, modelId_1, modelName_1, providerId_1, providerName_1, isOfficial_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, providerStatus_1, modelId_1, modelName_1, providerId_1, providerName_1, isOfficial_1, ...args_1], void 0, function* (page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options = {}) {
|
|
6501
6544
|
const localVarPath = `/admin/provider/list`;
|
|
6502
6545
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6503
6546
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6517,8 +6560,20 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6517
6560
|
if (providerStatus !== undefined) {
|
|
6518
6561
|
localVarQueryParameter['provider_status'] = providerStatus;
|
|
6519
6562
|
}
|
|
6520
|
-
if (
|
|
6521
|
-
localVarQueryParameter['
|
|
6563
|
+
if (modelId !== undefined) {
|
|
6564
|
+
localVarQueryParameter['model_id'] = modelId;
|
|
6565
|
+
}
|
|
6566
|
+
if (modelName !== undefined) {
|
|
6567
|
+
localVarQueryParameter['model_name'] = modelName;
|
|
6568
|
+
}
|
|
6569
|
+
if (providerId !== undefined) {
|
|
6570
|
+
localVarQueryParameter['provider_id'] = providerId;
|
|
6571
|
+
}
|
|
6572
|
+
if (providerName !== undefined) {
|
|
6573
|
+
localVarQueryParameter['provider_name'] = providerName;
|
|
6574
|
+
}
|
|
6575
|
+
if (isOfficial !== undefined) {
|
|
6576
|
+
localVarQueryParameter['is_official'] = isOfficial;
|
|
6522
6577
|
}
|
|
6523
6578
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6524
6579
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6529,14 +6584,14 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6529
6584
|
};
|
|
6530
6585
|
}),
|
|
6531
6586
|
/**
|
|
6532
|
-
*
|
|
6533
|
-
* @param {
|
|
6587
|
+
* AdminProviderUpdate 更新现有的 Provider 请求路径: POST /admin/provider/update
|
|
6588
|
+
* @param {AdminProviderUpdateRequest} adminProviderUpdateRequest
|
|
6534
6589
|
* @param {*} [options] Override http request option.
|
|
6535
6590
|
* @throws {RequiredError}
|
|
6536
6591
|
*/
|
|
6537
|
-
|
|
6538
|
-
// verify required parameter '
|
|
6539
|
-
(0, common_1.assertParamExists)('
|
|
6592
|
+
providerAdminServiceAdminProviderUpdate: (adminProviderUpdateRequest_1, ...args_1) => __awaiter(this, [adminProviderUpdateRequest_1, ...args_1], void 0, function* (adminProviderUpdateRequest, options = {}) {
|
|
6593
|
+
// verify required parameter 'adminProviderUpdateRequest' is not null or undefined
|
|
6594
|
+
(0, common_1.assertParamExists)('providerAdminServiceAdminProviderUpdate', 'adminProviderUpdateRequest', adminProviderUpdateRequest);
|
|
6540
6595
|
const localVarPath = `/admin/provider/update`;
|
|
6541
6596
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6542
6597
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6551,7 +6606,7 @@ const ProviderAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6551
6606
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6552
6607
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6553
6608
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6554
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6609
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminProviderUpdateRequest, localVarRequestOptions, configuration);
|
|
6555
6610
|
return {
|
|
6556
6611
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6557
6612
|
options: localVarRequestOptions,
|
|
@@ -6567,80 +6622,87 @@ const ProviderAdminServiceApiFp = function (configuration) {
|
|
|
6567
6622
|
const localVarAxiosParamCreator = (0, exports.ProviderAdminServiceApiAxiosParamCreator)(configuration);
|
|
6568
6623
|
return {
|
|
6569
6624
|
/**
|
|
6570
|
-
*
|
|
6571
|
-
* @param {
|
|
6625
|
+
* AdminProviderCreate 创建新的 Provider 请求路径: POST /admin/provider/create
|
|
6626
|
+
* @param {AdminProviderCreateRequest} adminProviderCreateRequest
|
|
6572
6627
|
* @param {*} [options] Override http request option.
|
|
6573
6628
|
* @throws {RequiredError}
|
|
6574
6629
|
*/
|
|
6575
|
-
|
|
6630
|
+
providerAdminServiceAdminProviderCreate(adminProviderCreateRequest, options) {
|
|
6576
6631
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6577
6632
|
var _a, _b, _c;
|
|
6578
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6633
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceAdminProviderCreate(adminProviderCreateRequest, options);
|
|
6579
6634
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6580
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.
|
|
6635
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceAdminProviderCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6581
6636
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6582
6637
|
});
|
|
6583
6638
|
},
|
|
6584
6639
|
/**
|
|
6585
|
-
*
|
|
6586
|
-
* @param {string} [id]
|
|
6640
|
+
* AdminProviderDelete 删除 Provider(软删除) 请求路径: DELETE /admin/provider/delete
|
|
6641
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6642
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6587
6643
|
* @param {*} [options] Override http request option.
|
|
6588
6644
|
* @throws {RequiredError}
|
|
6589
6645
|
*/
|
|
6590
|
-
|
|
6646
|
+
providerAdminServiceAdminProviderDelete(id, recordId, options) {
|
|
6591
6647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6592
6648
|
var _a, _b, _c;
|
|
6593
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6649
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceAdminProviderDelete(id, recordId, options);
|
|
6594
6650
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6595
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.
|
|
6651
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceAdminProviderDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6596
6652
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6597
6653
|
});
|
|
6598
6654
|
},
|
|
6599
6655
|
/**
|
|
6600
|
-
*
|
|
6601
|
-
* @param {string} [id]
|
|
6656
|
+
* AdminProviderGet 根据 ID 获取单个 Provider 请求路径: GET /admin/provider/get?id={id}
|
|
6657
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6658
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id optional: id or record_id @gotags: form:\"record_id\"
|
|
6659
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
6602
6660
|
* @param {*} [options] Override http request option.
|
|
6603
6661
|
* @throws {RequiredError}
|
|
6604
6662
|
*/
|
|
6605
|
-
|
|
6663
|
+
providerAdminServiceAdminProviderGet(id, recordId, isOfficial, options) {
|
|
6606
6664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6607
6665
|
var _a, _b, _c;
|
|
6608
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceAdminProviderGet(id, recordId, isOfficial, options);
|
|
6609
6667
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6610
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.
|
|
6668
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceAdminProviderGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6611
6669
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6612
6670
|
});
|
|
6613
6671
|
},
|
|
6614
6672
|
/**
|
|
6615
|
-
*
|
|
6616
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
6617
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
6618
|
-
* @param {number} [providerStatus] provider_status 按状态过滤(可选)
|
|
6619
|
-
* @param {string} [
|
|
6673
|
+
* AdminProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix}
|
|
6674
|
+
* @param {number} [page] page 页码,从 1 开始 Default: 1 @gotags: form:\"page\"
|
|
6675
|
+
* @param {number} [pageSize] page_size 每页数量 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
6676
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider @gotags: form:\"provider_status\"
|
|
6677
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
6678
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
6679
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
6680
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
6681
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
6620
6682
|
* @param {*} [options] Override http request option.
|
|
6621
6683
|
* @throws {RequiredError}
|
|
6622
6684
|
*/
|
|
6623
|
-
|
|
6685
|
+
providerAdminServiceAdminProviderList(page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
6624
6686
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6625
6687
|
var _a, _b, _c;
|
|
6626
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6688
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceAdminProviderList(page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options);
|
|
6627
6689
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6628
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.
|
|
6690
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceAdminProviderList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6629
6691
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6630
6692
|
});
|
|
6631
6693
|
},
|
|
6632
6694
|
/**
|
|
6633
|
-
*
|
|
6634
|
-
* @param {
|
|
6695
|
+
* AdminProviderUpdate 更新现有的 Provider 请求路径: POST /admin/provider/update
|
|
6696
|
+
* @param {AdminProviderUpdateRequest} adminProviderUpdateRequest
|
|
6635
6697
|
* @param {*} [options] Override http request option.
|
|
6636
6698
|
* @throws {RequiredError}
|
|
6637
6699
|
*/
|
|
6638
|
-
|
|
6700
|
+
providerAdminServiceAdminProviderUpdate(adminProviderUpdateRequest, options) {
|
|
6639
6701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6640
6702
|
var _a, _b, _c;
|
|
6641
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerAdminServiceAdminProviderUpdate(adminProviderUpdateRequest, options);
|
|
6642
6704
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6643
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.
|
|
6705
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderAdminServiceApi.providerAdminServiceAdminProviderUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6644
6706
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6645
6707
|
});
|
|
6646
6708
|
},
|
|
@@ -6654,52 +6716,59 @@ const ProviderAdminServiceApiFactory = function (configuration, basePath, axios)
|
|
|
6654
6716
|
const localVarFp = (0, exports.ProviderAdminServiceApiFp)(configuration);
|
|
6655
6717
|
return {
|
|
6656
6718
|
/**
|
|
6657
|
-
*
|
|
6658
|
-
* @param {
|
|
6719
|
+
* AdminProviderCreate 创建新的 Provider 请求路径: POST /admin/provider/create
|
|
6720
|
+
* @param {AdminProviderCreateRequest} adminProviderCreateRequest
|
|
6659
6721
|
* @param {*} [options] Override http request option.
|
|
6660
6722
|
* @throws {RequiredError}
|
|
6661
6723
|
*/
|
|
6662
|
-
|
|
6663
|
-
return localVarFp.
|
|
6724
|
+
providerAdminServiceAdminProviderCreate(adminProviderCreateRequest, options) {
|
|
6725
|
+
return localVarFp.providerAdminServiceAdminProviderCreate(adminProviderCreateRequest, options).then((request) => request(axios, basePath));
|
|
6664
6726
|
},
|
|
6665
6727
|
/**
|
|
6666
|
-
*
|
|
6667
|
-
* @param {string} [id]
|
|
6728
|
+
* AdminProviderDelete 删除 Provider(软删除) 请求路径: DELETE /admin/provider/delete
|
|
6729
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6730
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6668
6731
|
* @param {*} [options] Override http request option.
|
|
6669
6732
|
* @throws {RequiredError}
|
|
6670
6733
|
*/
|
|
6671
|
-
|
|
6672
|
-
return localVarFp.
|
|
6734
|
+
providerAdminServiceAdminProviderDelete(id, recordId, options) {
|
|
6735
|
+
return localVarFp.providerAdminServiceAdminProviderDelete(id, recordId, options).then((request) => request(axios, basePath));
|
|
6673
6736
|
},
|
|
6674
6737
|
/**
|
|
6675
|
-
*
|
|
6676
|
-
* @param {string} [id]
|
|
6738
|
+
* AdminProviderGet 根据 ID 获取单个 Provider 请求路径: GET /admin/provider/get?id={id}
|
|
6739
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6740
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id optional: id or record_id @gotags: form:\"record_id\"
|
|
6741
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
6677
6742
|
* @param {*} [options] Override http request option.
|
|
6678
6743
|
* @throws {RequiredError}
|
|
6679
6744
|
*/
|
|
6680
|
-
|
|
6681
|
-
return localVarFp.
|
|
6745
|
+
providerAdminServiceAdminProviderGet(id, recordId, isOfficial, options) {
|
|
6746
|
+
return localVarFp.providerAdminServiceAdminProviderGet(id, recordId, isOfficial, options).then((request) => request(axios, basePath));
|
|
6682
6747
|
},
|
|
6683
6748
|
/**
|
|
6684
|
-
*
|
|
6685
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
6686
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
6687
|
-
* @param {number} [providerStatus] provider_status 按状态过滤(可选)
|
|
6688
|
-
* @param {string} [
|
|
6749
|
+
* AdminProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix}
|
|
6750
|
+
* @param {number} [page] page 页码,从 1 开始 Default: 1 @gotags: form:\"page\"
|
|
6751
|
+
* @param {number} [pageSize] page_size 每页数量 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
6752
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider @gotags: form:\"provider_status\"
|
|
6753
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
6754
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
6755
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
6756
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
6757
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
6689
6758
|
* @param {*} [options] Override http request option.
|
|
6690
6759
|
* @throws {RequiredError}
|
|
6691
6760
|
*/
|
|
6692
|
-
|
|
6693
|
-
return localVarFp.
|
|
6761
|
+
providerAdminServiceAdminProviderList(page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
6762
|
+
return localVarFp.providerAdminServiceAdminProviderList(page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options).then((request) => request(axios, basePath));
|
|
6694
6763
|
},
|
|
6695
6764
|
/**
|
|
6696
|
-
*
|
|
6697
|
-
* @param {
|
|
6765
|
+
* AdminProviderUpdate 更新现有的 Provider 请求路径: POST /admin/provider/update
|
|
6766
|
+
* @param {AdminProviderUpdateRequest} adminProviderUpdateRequest
|
|
6698
6767
|
* @param {*} [options] Override http request option.
|
|
6699
6768
|
* @throws {RequiredError}
|
|
6700
6769
|
*/
|
|
6701
|
-
|
|
6702
|
-
return localVarFp.
|
|
6770
|
+
providerAdminServiceAdminProviderUpdate(adminProviderUpdateRequest, options) {
|
|
6771
|
+
return localVarFp.providerAdminServiceAdminProviderUpdate(adminProviderUpdateRequest, options).then((request) => request(axios, basePath));
|
|
6703
6772
|
},
|
|
6704
6773
|
};
|
|
6705
6774
|
};
|
|
@@ -6709,52 +6778,59 @@ exports.ProviderAdminServiceApiFactory = ProviderAdminServiceApiFactory;
|
|
|
6709
6778
|
*/
|
|
6710
6779
|
class ProviderAdminServiceApi extends base_1.BaseAPI {
|
|
6711
6780
|
/**
|
|
6712
|
-
*
|
|
6713
|
-
* @param {
|
|
6781
|
+
* AdminProviderCreate 创建新的 Provider 请求路径: POST /admin/provider/create
|
|
6782
|
+
* @param {AdminProviderCreateRequest} adminProviderCreateRequest
|
|
6714
6783
|
* @param {*} [options] Override http request option.
|
|
6715
6784
|
* @throws {RequiredError}
|
|
6716
6785
|
*/
|
|
6717
|
-
|
|
6718
|
-
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).
|
|
6786
|
+
providerAdminServiceAdminProviderCreate(adminProviderCreateRequest, options) {
|
|
6787
|
+
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceAdminProviderCreate(adminProviderCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6719
6788
|
}
|
|
6720
6789
|
/**
|
|
6721
|
-
*
|
|
6722
|
-
* @param {string} [id]
|
|
6790
|
+
* AdminProviderDelete 删除 Provider(软删除) 请求路径: DELETE /admin/provider/delete
|
|
6791
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6792
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6723
6793
|
* @param {*} [options] Override http request option.
|
|
6724
6794
|
* @throws {RequiredError}
|
|
6725
6795
|
*/
|
|
6726
|
-
|
|
6727
|
-
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).
|
|
6796
|
+
providerAdminServiceAdminProviderDelete(id, recordId, options) {
|
|
6797
|
+
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceAdminProviderDelete(id, recordId, options).then((request) => request(this.axios, this.basePath));
|
|
6728
6798
|
}
|
|
6729
6799
|
/**
|
|
6730
|
-
*
|
|
6731
|
-
* @param {string} [id]
|
|
6800
|
+
* AdminProviderGet 根据 ID 获取单个 Provider 请求路径: GET /admin/provider/get?id={id}
|
|
6801
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6802
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id optional: id or record_id @gotags: form:\"record_id\"
|
|
6803
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
6732
6804
|
* @param {*} [options] Override http request option.
|
|
6733
6805
|
* @throws {RequiredError}
|
|
6734
6806
|
*/
|
|
6735
|
-
|
|
6736
|
-
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).
|
|
6807
|
+
providerAdminServiceAdminProviderGet(id, recordId, isOfficial, options) {
|
|
6808
|
+
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceAdminProviderGet(id, recordId, isOfficial, options).then((request) => request(this.axios, this.basePath));
|
|
6737
6809
|
}
|
|
6738
6810
|
/**
|
|
6739
|
-
*
|
|
6740
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
6741
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
6742
|
-
* @param {number} [providerStatus] provider_status 按状态过滤(可选)
|
|
6743
|
-
* @param {string} [
|
|
6811
|
+
* AdminProviderList 分页查询 Provider 列表,支持按状态和名称前缀过滤 请求路径: GET /admin/provider/list?page={page}&page_size={page_size}&provider_status={status}&name_prefix={prefix}
|
|
6812
|
+
* @param {number} [page] page 页码,从 1 开始 Default: 1 @gotags: form:\"page\"
|
|
6813
|
+
* @param {number} [pageSize] page_size 每页数量 Default: 20, Maximum: 100 @gotags: form:\"page_size\"
|
|
6814
|
+
* @param {number} [providerStatus] provider_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 Provider 2: 仅返回禁用的 Provider @gotags: form:\"provider_status\"
|
|
6815
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
6816
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
6817
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
6818
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
6819
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
6744
6820
|
* @param {*} [options] Override http request option.
|
|
6745
6821
|
* @throws {RequiredError}
|
|
6746
6822
|
*/
|
|
6747
|
-
|
|
6748
|
-
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).
|
|
6823
|
+
providerAdminServiceAdminProviderList(page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
6824
|
+
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceAdminProviderList(page, pageSize, providerStatus, modelId, modelName, providerId, providerName, isOfficial, options).then((request) => request(this.axios, this.basePath));
|
|
6749
6825
|
}
|
|
6750
6826
|
/**
|
|
6751
|
-
*
|
|
6752
|
-
* @param {
|
|
6827
|
+
* AdminProviderUpdate 更新现有的 Provider 请求路径: POST /admin/provider/update
|
|
6828
|
+
* @param {AdminProviderUpdateRequest} adminProviderUpdateRequest
|
|
6753
6829
|
* @param {*} [options] Override http request option.
|
|
6754
6830
|
* @throws {RequiredError}
|
|
6755
6831
|
*/
|
|
6756
|
-
|
|
6757
|
-
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).
|
|
6832
|
+
providerAdminServiceAdminProviderUpdate(adminProviderUpdateRequest, options) {
|
|
6833
|
+
return (0, exports.ProviderAdminServiceApiFp)(this.configuration).providerAdminServiceAdminProviderUpdate(adminProviderUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6758
6834
|
}
|
|
6759
6835
|
}
|
|
6760
6836
|
exports.ProviderAdminServiceApi = ProviderAdminServiceApi;
|
|
@@ -6764,14 +6840,14 @@ exports.ProviderAdminServiceApi = ProviderAdminServiceApi;
|
|
|
6764
6840
|
const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
6765
6841
|
return {
|
|
6766
6842
|
/**
|
|
6767
|
-
*
|
|
6768
|
-
* @param {
|
|
6843
|
+
* AdminProviderModelCreate 创建新的 ProviderModel 请求路径: POST /admin/provider-model/create
|
|
6844
|
+
* @param {AdminProviderModelCreateRequest} adminProviderModelCreateRequest
|
|
6769
6845
|
* @param {*} [options] Override http request option.
|
|
6770
6846
|
* @throws {RequiredError}
|
|
6771
6847
|
*/
|
|
6772
|
-
|
|
6773
|
-
// verify required parameter '
|
|
6774
|
-
(0, common_1.assertParamExists)('
|
|
6848
|
+
providerModelAdminServiceAdminProviderModelCreate: (adminProviderModelCreateRequest_1, ...args_1) => __awaiter(this, [adminProviderModelCreateRequest_1, ...args_1], void 0, function* (adminProviderModelCreateRequest, options = {}) {
|
|
6849
|
+
// verify required parameter 'adminProviderModelCreateRequest' is not null or undefined
|
|
6850
|
+
(0, common_1.assertParamExists)('providerModelAdminServiceAdminProviderModelCreate', 'adminProviderModelCreateRequest', adminProviderModelCreateRequest);
|
|
6775
6851
|
const localVarPath = `/admin/provider-model/create`;
|
|
6776
6852
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6777
6853
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6786,19 +6862,20 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6786
6862
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6787
6863
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6788
6864
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6789
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6865
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminProviderModelCreateRequest, localVarRequestOptions, configuration);
|
|
6790
6866
|
return {
|
|
6791
6867
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6792
6868
|
options: localVarRequestOptions,
|
|
6793
6869
|
};
|
|
6794
6870
|
}),
|
|
6795
6871
|
/**
|
|
6796
|
-
*
|
|
6797
|
-
* @param {string} [id]
|
|
6872
|
+
* AdminProviderModelDelete 删除 ProviderModel(软删除) 请求路径: POST /admin/provider-model/delete
|
|
6873
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6874
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6798
6875
|
* @param {*} [options] Override http request option.
|
|
6799
6876
|
* @throws {RequiredError}
|
|
6800
6877
|
*/
|
|
6801
|
-
|
|
6878
|
+
providerModelAdminServiceAdminProviderModelDelete: (id_1, recordId_1, ...args_1) => __awaiter(this, [id_1, recordId_1, ...args_1], void 0, function* (id, recordId, options = {}) {
|
|
6802
6879
|
const localVarPath = `/admin/provider-model/delete`;
|
|
6803
6880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6804
6881
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6812,6 +6889,9 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6812
6889
|
if (id !== undefined) {
|
|
6813
6890
|
localVarQueryParameter['id'] = id;
|
|
6814
6891
|
}
|
|
6892
|
+
if (recordId !== undefined) {
|
|
6893
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
6894
|
+
}
|
|
6815
6895
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6816
6896
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6817
6897
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6821,12 +6901,14 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6821
6901
|
};
|
|
6822
6902
|
}),
|
|
6823
6903
|
/**
|
|
6824
|
-
*
|
|
6825
|
-
* @param {string} [id]
|
|
6904
|
+
* AdminProviderModelGet 根据 ID 获取单个 ProviderModel 请求路径: GET /admin/provider-model/get?id={id}
|
|
6905
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
6906
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6907
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
6826
6908
|
* @param {*} [options] Override http request option.
|
|
6827
6909
|
* @throws {RequiredError}
|
|
6828
6910
|
*/
|
|
6829
|
-
|
|
6911
|
+
providerModelAdminServiceAdminProviderModelGet: (id_1, recordId_1, isOfficial_1, ...args_1) => __awaiter(this, [id_1, recordId_1, isOfficial_1, ...args_1], void 0, function* (id, recordId, isOfficial, options = {}) {
|
|
6830
6912
|
const localVarPath = `/admin/provider-model/get`;
|
|
6831
6913
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6832
6914
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6840,6 +6922,12 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6840
6922
|
if (id !== undefined) {
|
|
6841
6923
|
localVarQueryParameter['id'] = id;
|
|
6842
6924
|
}
|
|
6925
|
+
if (recordId !== undefined) {
|
|
6926
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
6927
|
+
}
|
|
6928
|
+
if (isOfficial !== undefined) {
|
|
6929
|
+
localVarQueryParameter['is_official'] = isOfficial;
|
|
6930
|
+
}
|
|
6843
6931
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6844
6932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6845
6933
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6849,16 +6937,19 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6849
6937
|
};
|
|
6850
6938
|
}),
|
|
6851
6939
|
/**
|
|
6852
|
-
*
|
|
6853
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
6854
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
6855
|
-
* @param {
|
|
6856
|
-
* @param {
|
|
6857
|
-
* @param {string} [
|
|
6940
|
+
* AdminProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix}
|
|
6941
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
6942
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
6943
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
6944
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
6945
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
6946
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
6947
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
6948
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
6858
6949
|
* @param {*} [options] Override http request option.
|
|
6859
6950
|
* @throws {RequiredError}
|
|
6860
6951
|
*/
|
|
6861
|
-
|
|
6952
|
+
providerModelAdminServiceAdminProviderModelList: (page_1, pageSize_1, modelStatus_1, modelId_1, modelName_1, providerId_1, providerName_1, isOfficial_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, modelStatus_1, modelId_1, modelName_1, providerId_1, providerName_1, isOfficial_1, ...args_1], void 0, function* (page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options = {}) {
|
|
6862
6953
|
const localVarPath = `/admin/provider-model/list`;
|
|
6863
6954
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6864
6955
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6875,14 +6966,23 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6875
6966
|
if (pageSize !== undefined) {
|
|
6876
6967
|
localVarQueryParameter['page_size'] = pageSize;
|
|
6877
6968
|
}
|
|
6969
|
+
if (modelStatus !== undefined) {
|
|
6970
|
+
localVarQueryParameter['model_status'] = modelStatus;
|
|
6971
|
+
}
|
|
6972
|
+
if (modelId !== undefined) {
|
|
6973
|
+
localVarQueryParameter['model_id'] = modelId;
|
|
6974
|
+
}
|
|
6975
|
+
if (modelName !== undefined) {
|
|
6976
|
+
localVarQueryParameter['model_name'] = modelName;
|
|
6977
|
+
}
|
|
6878
6978
|
if (providerId !== undefined) {
|
|
6879
6979
|
localVarQueryParameter['provider_id'] = providerId;
|
|
6880
6980
|
}
|
|
6881
|
-
if (
|
|
6882
|
-
localVarQueryParameter['
|
|
6981
|
+
if (providerName !== undefined) {
|
|
6982
|
+
localVarQueryParameter['provider_name'] = providerName;
|
|
6883
6983
|
}
|
|
6884
|
-
if (
|
|
6885
|
-
localVarQueryParameter['
|
|
6984
|
+
if (isOfficial !== undefined) {
|
|
6985
|
+
localVarQueryParameter['is_official'] = isOfficial;
|
|
6886
6986
|
}
|
|
6887
6987
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6888
6988
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6893,14 +6993,14 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6893
6993
|
};
|
|
6894
6994
|
}),
|
|
6895
6995
|
/**
|
|
6896
|
-
*
|
|
6897
|
-
* @param {
|
|
6996
|
+
* AdminProviderModelUpdate 更新现有的 ProviderModel 请求路径: POST /admin/provider-model/update
|
|
6997
|
+
* @param {AdminProviderModelUpdateRequest} adminProviderModelUpdateRequest
|
|
6898
6998
|
* @param {*} [options] Override http request option.
|
|
6899
6999
|
* @throws {RequiredError}
|
|
6900
7000
|
*/
|
|
6901
|
-
|
|
6902
|
-
// verify required parameter '
|
|
6903
|
-
(0, common_1.assertParamExists)('
|
|
7001
|
+
providerModelAdminServiceAdminProviderModelUpdate: (adminProviderModelUpdateRequest_1, ...args_1) => __awaiter(this, [adminProviderModelUpdateRequest_1, ...args_1], void 0, function* (adminProviderModelUpdateRequest, options = {}) {
|
|
7002
|
+
// verify required parameter 'adminProviderModelUpdateRequest' is not null or undefined
|
|
7003
|
+
(0, common_1.assertParamExists)('providerModelAdminServiceAdminProviderModelUpdate', 'adminProviderModelUpdateRequest', adminProviderModelUpdateRequest);
|
|
6904
7004
|
const localVarPath = `/admin/provider-model/update`;
|
|
6905
7005
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6906
7006
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6915,7 +7015,7 @@ const ProviderModelAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
6915
7015
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6916
7016
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6917
7017
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6918
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7018
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminProviderModelUpdateRequest, localVarRequestOptions, configuration);
|
|
6919
7019
|
return {
|
|
6920
7020
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6921
7021
|
options: localVarRequestOptions,
|
|
@@ -6931,81 +7031,87 @@ const ProviderModelAdminServiceApiFp = function (configuration) {
|
|
|
6931
7031
|
const localVarAxiosParamCreator = (0, exports.ProviderModelAdminServiceApiAxiosParamCreator)(configuration);
|
|
6932
7032
|
return {
|
|
6933
7033
|
/**
|
|
6934
|
-
*
|
|
6935
|
-
* @param {
|
|
7034
|
+
* AdminProviderModelCreate 创建新的 ProviderModel 请求路径: POST /admin/provider-model/create
|
|
7035
|
+
* @param {AdminProviderModelCreateRequest} adminProviderModelCreateRequest
|
|
6936
7036
|
* @param {*} [options] Override http request option.
|
|
6937
7037
|
* @throws {RequiredError}
|
|
6938
7038
|
*/
|
|
6939
|
-
|
|
7039
|
+
providerModelAdminServiceAdminProviderModelCreate(adminProviderModelCreateRequest, options) {
|
|
6940
7040
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6941
7041
|
var _a, _b, _c;
|
|
6942
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7042
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceAdminProviderModelCreate(adminProviderModelCreateRequest, options);
|
|
6943
7043
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6944
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.
|
|
7044
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceAdminProviderModelCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6945
7045
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6946
7046
|
});
|
|
6947
7047
|
},
|
|
6948
7048
|
/**
|
|
6949
|
-
*
|
|
6950
|
-
* @param {string} [id]
|
|
7049
|
+
* AdminProviderModelDelete 删除 ProviderModel(软删除) 请求路径: POST /admin/provider-model/delete
|
|
7050
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
7051
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
6951
7052
|
* @param {*} [options] Override http request option.
|
|
6952
7053
|
* @throws {RequiredError}
|
|
6953
7054
|
*/
|
|
6954
|
-
|
|
7055
|
+
providerModelAdminServiceAdminProviderModelDelete(id, recordId, options) {
|
|
6955
7056
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6956
7057
|
var _a, _b, _c;
|
|
6957
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7058
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceAdminProviderModelDelete(id, recordId, options);
|
|
6958
7059
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6959
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.
|
|
7060
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceAdminProviderModelDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6960
7061
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6961
7062
|
});
|
|
6962
7063
|
},
|
|
6963
7064
|
/**
|
|
6964
|
-
*
|
|
6965
|
-
* @param {string} [id]
|
|
7065
|
+
* AdminProviderModelGet 根据 ID 获取单个 ProviderModel 请求路径: GET /admin/provider-model/get?id={id}
|
|
7066
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
7067
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
7068
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
6966
7069
|
* @param {*} [options] Override http request option.
|
|
6967
7070
|
* @throws {RequiredError}
|
|
6968
7071
|
*/
|
|
6969
|
-
|
|
7072
|
+
providerModelAdminServiceAdminProviderModelGet(id, recordId, isOfficial, options) {
|
|
6970
7073
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6971
7074
|
var _a, _b, _c;
|
|
6972
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7075
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceAdminProviderModelGet(id, recordId, isOfficial, options);
|
|
6973
7076
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6974
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.
|
|
7077
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceAdminProviderModelGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6975
7078
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6976
7079
|
});
|
|
6977
7080
|
},
|
|
6978
7081
|
/**
|
|
6979
|
-
*
|
|
6980
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
6981
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
6982
|
-
* @param {
|
|
6983
|
-
* @param {
|
|
6984
|
-
* @param {string} [
|
|
7082
|
+
* AdminProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix}
|
|
7083
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
7084
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
7085
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
7086
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
7087
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
7088
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
7089
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
7090
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
6985
7091
|
* @param {*} [options] Override http request option.
|
|
6986
7092
|
* @throws {RequiredError}
|
|
6987
7093
|
*/
|
|
6988
|
-
|
|
7094
|
+
providerModelAdminServiceAdminProviderModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
6989
7095
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6990
7096
|
var _a, _b, _c;
|
|
6991
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7097
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceAdminProviderModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options);
|
|
6992
7098
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6993
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.
|
|
7099
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceAdminProviderModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6994
7100
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6995
7101
|
});
|
|
6996
7102
|
},
|
|
6997
7103
|
/**
|
|
6998
|
-
*
|
|
6999
|
-
* @param {
|
|
7104
|
+
* AdminProviderModelUpdate 更新现有的 ProviderModel 请求路径: POST /admin/provider-model/update
|
|
7105
|
+
* @param {AdminProviderModelUpdateRequest} adminProviderModelUpdateRequest
|
|
7000
7106
|
* @param {*} [options] Override http request option.
|
|
7001
7107
|
* @throws {RequiredError}
|
|
7002
7108
|
*/
|
|
7003
|
-
|
|
7109
|
+
providerModelAdminServiceAdminProviderModelUpdate(adminProviderModelUpdateRequest, options) {
|
|
7004
7110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7005
7111
|
var _a, _b, _c;
|
|
7006
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.providerModelAdminServiceAdminProviderModelUpdate(adminProviderModelUpdateRequest, options);
|
|
7007
7113
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7008
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.
|
|
7114
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProviderModelAdminServiceApi.providerModelAdminServiceAdminProviderModelUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7009
7115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7010
7116
|
});
|
|
7011
7117
|
},
|
|
@@ -7019,53 +7125,59 @@ const ProviderModelAdminServiceApiFactory = function (configuration, basePath, a
|
|
|
7019
7125
|
const localVarFp = (0, exports.ProviderModelAdminServiceApiFp)(configuration);
|
|
7020
7126
|
return {
|
|
7021
7127
|
/**
|
|
7022
|
-
*
|
|
7023
|
-
* @param {
|
|
7128
|
+
* AdminProviderModelCreate 创建新的 ProviderModel 请求路径: POST /admin/provider-model/create
|
|
7129
|
+
* @param {AdminProviderModelCreateRequest} adminProviderModelCreateRequest
|
|
7024
7130
|
* @param {*} [options] Override http request option.
|
|
7025
7131
|
* @throws {RequiredError}
|
|
7026
7132
|
*/
|
|
7027
|
-
|
|
7028
|
-
return localVarFp.
|
|
7133
|
+
providerModelAdminServiceAdminProviderModelCreate(adminProviderModelCreateRequest, options) {
|
|
7134
|
+
return localVarFp.providerModelAdminServiceAdminProviderModelCreate(adminProviderModelCreateRequest, options).then((request) => request(axios, basePath));
|
|
7029
7135
|
},
|
|
7030
7136
|
/**
|
|
7031
|
-
*
|
|
7032
|
-
* @param {string} [id]
|
|
7137
|
+
* AdminProviderModelDelete 删除 ProviderModel(软删除) 请求路径: POST /admin/provider-model/delete
|
|
7138
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
7139
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
7033
7140
|
* @param {*} [options] Override http request option.
|
|
7034
7141
|
* @throws {RequiredError}
|
|
7035
7142
|
*/
|
|
7036
|
-
|
|
7037
|
-
return localVarFp.
|
|
7143
|
+
providerModelAdminServiceAdminProviderModelDelete(id, recordId, options) {
|
|
7144
|
+
return localVarFp.providerModelAdminServiceAdminProviderModelDelete(id, recordId, options).then((request) => request(axios, basePath));
|
|
7038
7145
|
},
|
|
7039
7146
|
/**
|
|
7040
|
-
*
|
|
7041
|
-
* @param {string} [id]
|
|
7147
|
+
* AdminProviderModelGet 根据 ID 获取单个 ProviderModel 请求路径: GET /admin/provider-model/get?id={id}
|
|
7148
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
7149
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
7150
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
7042
7151
|
* @param {*} [options] Override http request option.
|
|
7043
7152
|
* @throws {RequiredError}
|
|
7044
7153
|
*/
|
|
7045
|
-
|
|
7046
|
-
return localVarFp.
|
|
7154
|
+
providerModelAdminServiceAdminProviderModelGet(id, recordId, isOfficial, options) {
|
|
7155
|
+
return localVarFp.providerModelAdminServiceAdminProviderModelGet(id, recordId, isOfficial, options).then((request) => request(axios, basePath));
|
|
7047
7156
|
},
|
|
7048
7157
|
/**
|
|
7049
|
-
*
|
|
7050
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
7051
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
7052
|
-
* @param {
|
|
7053
|
-
* @param {
|
|
7054
|
-
* @param {string} [
|
|
7158
|
+
* AdminProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix}
|
|
7159
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
7160
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
7161
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
7162
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
7163
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
7164
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
7165
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
7166
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
7055
7167
|
* @param {*} [options] Override http request option.
|
|
7056
7168
|
* @throws {RequiredError}
|
|
7057
7169
|
*/
|
|
7058
|
-
|
|
7059
|
-
return localVarFp.
|
|
7170
|
+
providerModelAdminServiceAdminProviderModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
7171
|
+
return localVarFp.providerModelAdminServiceAdminProviderModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options).then((request) => request(axios, basePath));
|
|
7060
7172
|
},
|
|
7061
7173
|
/**
|
|
7062
|
-
*
|
|
7063
|
-
* @param {
|
|
7174
|
+
* AdminProviderModelUpdate 更新现有的 ProviderModel 请求路径: POST /admin/provider-model/update
|
|
7175
|
+
* @param {AdminProviderModelUpdateRequest} adminProviderModelUpdateRequest
|
|
7064
7176
|
* @param {*} [options] Override http request option.
|
|
7065
7177
|
* @throws {RequiredError}
|
|
7066
7178
|
*/
|
|
7067
|
-
|
|
7068
|
-
return localVarFp.
|
|
7179
|
+
providerModelAdminServiceAdminProviderModelUpdate(adminProviderModelUpdateRequest, options) {
|
|
7180
|
+
return localVarFp.providerModelAdminServiceAdminProviderModelUpdate(adminProviderModelUpdateRequest, options).then((request) => request(axios, basePath));
|
|
7069
7181
|
},
|
|
7070
7182
|
};
|
|
7071
7183
|
};
|
|
@@ -7075,53 +7187,59 @@ exports.ProviderModelAdminServiceApiFactory = ProviderModelAdminServiceApiFactor
|
|
|
7075
7187
|
*/
|
|
7076
7188
|
class ProviderModelAdminServiceApi extends base_1.BaseAPI {
|
|
7077
7189
|
/**
|
|
7078
|
-
*
|
|
7079
|
-
* @param {
|
|
7190
|
+
* AdminProviderModelCreate 创建新的 ProviderModel 请求路径: POST /admin/provider-model/create
|
|
7191
|
+
* @param {AdminProviderModelCreateRequest} adminProviderModelCreateRequest
|
|
7080
7192
|
* @param {*} [options] Override http request option.
|
|
7081
7193
|
* @throws {RequiredError}
|
|
7082
7194
|
*/
|
|
7083
|
-
|
|
7084
|
-
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).
|
|
7195
|
+
providerModelAdminServiceAdminProviderModelCreate(adminProviderModelCreateRequest, options) {
|
|
7196
|
+
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceAdminProviderModelCreate(adminProviderModelCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7085
7197
|
}
|
|
7086
7198
|
/**
|
|
7087
|
-
*
|
|
7088
|
-
* @param {string} [id]
|
|
7199
|
+
* AdminProviderModelDelete 删除 ProviderModel(软删除) 请求路径: POST /admin/provider-model/delete
|
|
7200
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
7201
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
7089
7202
|
* @param {*} [options] Override http request option.
|
|
7090
7203
|
* @throws {RequiredError}
|
|
7091
7204
|
*/
|
|
7092
|
-
|
|
7093
|
-
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).
|
|
7205
|
+
providerModelAdminServiceAdminProviderModelDelete(id, recordId, options) {
|
|
7206
|
+
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceAdminProviderModelDelete(id, recordId, options).then((request) => request(this.axios, this.basePath));
|
|
7094
7207
|
}
|
|
7095
7208
|
/**
|
|
7096
|
-
*
|
|
7097
|
-
* @param {string} [id]
|
|
7209
|
+
* AdminProviderModelGet 根据 ID 获取单个 ProviderModel 请求路径: GET /admin/provider-model/get?id={id}
|
|
7210
|
+
* @param {string} [id] Provider 的唯一标识符 @gotags: form:\"id\"
|
|
7211
|
+
* @param {string} [recordId] Provider 数据库自增 id - record_id @gotags: form:\"record_id\"
|
|
7212
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有) @gotags: form:\"is_official\"
|
|
7098
7213
|
* @param {*} [options] Override http request option.
|
|
7099
7214
|
* @throws {RequiredError}
|
|
7100
7215
|
*/
|
|
7101
|
-
|
|
7102
|
-
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).
|
|
7216
|
+
providerModelAdminServiceAdminProviderModelGet(id, recordId, isOfficial, options) {
|
|
7217
|
+
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceAdminProviderModelGet(id, recordId, isOfficial, options).then((request) => request(this.axios, this.basePath));
|
|
7103
7218
|
}
|
|
7104
7219
|
/**
|
|
7105
|
-
*
|
|
7106
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
7107
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
7108
|
-
* @param {
|
|
7109
|
-
* @param {
|
|
7110
|
-
* @param {string} [
|
|
7220
|
+
* AdminProviderModelList 分页查询 ProviderModel 列表,支持按 Provider、状态和名称前缀过滤 请求路径: GET /admin/provider-model/list?page={page}&page_size={page_size}&provider_id={provider_id}&status={status}&name_prefix={prefix}
|
|
7221
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
7222
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
7223
|
+
* @param {number} [modelStatus] model_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回启用状态 3: 仅返回禁用状态
|
|
7224
|
+
* @param {string} [modelId] model_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_id\"
|
|
7225
|
+
* @param {string} [modelName] name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"model_name\"
|
|
7226
|
+
* @param {string} [providerId] provider_id 按 id 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_id\"
|
|
7227
|
+
* @param {string} [providerName] provider_name 按 name 前缀过滤(可选) 例如: \"openai\" 会匹配 \"openai-prod-1\", \"openai-dev-1\" 等 @gotags: form:\"provider_name\"
|
|
7228
|
+
* @param {boolean} [isOfficial] 是否仅查询官方供应商,则返回的是官方供应商的信息(如果有)
|
|
7111
7229
|
* @param {*} [options] Override http request option.
|
|
7112
7230
|
* @throws {RequiredError}
|
|
7113
7231
|
*/
|
|
7114
|
-
|
|
7115
|
-
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).
|
|
7232
|
+
providerModelAdminServiceAdminProviderModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options) {
|
|
7233
|
+
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceAdminProviderModelList(page, pageSize, modelStatus, modelId, modelName, providerId, providerName, isOfficial, options).then((request) => request(this.axios, this.basePath));
|
|
7116
7234
|
}
|
|
7117
7235
|
/**
|
|
7118
|
-
*
|
|
7119
|
-
* @param {
|
|
7236
|
+
* AdminProviderModelUpdate 更新现有的 ProviderModel 请求路径: POST /admin/provider-model/update
|
|
7237
|
+
* @param {AdminProviderModelUpdateRequest} adminProviderModelUpdateRequest
|
|
7120
7238
|
* @param {*} [options] Override http request option.
|
|
7121
7239
|
* @throws {RequiredError}
|
|
7122
7240
|
*/
|
|
7123
|
-
|
|
7124
|
-
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).
|
|
7241
|
+
providerModelAdminServiceAdminProviderModelUpdate(adminProviderModelUpdateRequest, options) {
|
|
7242
|
+
return (0, exports.ProviderModelAdminServiceApiFp)(this.configuration).providerModelAdminServiceAdminProviderModelUpdate(adminProviderModelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7125
7243
|
}
|
|
7126
7244
|
}
|
|
7127
7245
|
exports.ProviderModelAdminServiceApi = ProviderModelAdminServiceApi;
|
|
@@ -7900,7 +8018,7 @@ exports.RemoteConfigAdminServiceApi = RemoteConfigAdminServiceApi;
|
|
|
7900
8018
|
const UserAPIKeyServiceApiAxiosParamCreator = function (configuration) {
|
|
7901
8019
|
return {
|
|
7902
8020
|
/**
|
|
7903
|
-
* UserAPIKeyCreate 创建新的 UserAPIKey
|
|
8021
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey 请求路径: POST /api/user/api-key/create
|
|
7904
8022
|
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
7905
8023
|
* @param {*} [options] Override http request option.
|
|
7906
8024
|
* @throws {RequiredError}
|
|
@@ -7929,8 +8047,8 @@ const UserAPIKeyServiceApiAxiosParamCreator = function (configuration) {
|
|
|
7929
8047
|
};
|
|
7930
8048
|
}),
|
|
7931
8049
|
/**
|
|
7932
|
-
* UserAPIKeyDelete 删除 UserAPIKey(软删除)
|
|
7933
|
-
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符
|
|
8050
|
+
* UserAPIKeyDelete 删除 UserAPIKey(软删除) 请求路径: POST /api/user/api-key/delete
|
|
8051
|
+
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" binding:\"required\"
|
|
7934
8052
|
* @param {*} [options] Override http request option.
|
|
7935
8053
|
* @throws {RequiredError}
|
|
7936
8054
|
*/
|
|
@@ -7957,9 +8075,9 @@ const UserAPIKeyServiceApiAxiosParamCreator = function (configuration) {
|
|
|
7957
8075
|
};
|
|
7958
8076
|
}),
|
|
7959
8077
|
/**
|
|
7960
|
-
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey
|
|
7961
|
-
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符
|
|
7962
|
-
* @param {string} [name] name 要获取的 UserAPIKey 的名称
|
|
8078
|
+
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
8079
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 @gotags: form:\"id\"
|
|
8080
|
+
* @param {string} [name] name 要获取的 UserAPIKey 的名称 如果同时提供 id 和 name,以 id 为准 @gotags: form:\"name\"
|
|
7963
8081
|
* @param {*} [options] Override http request option.
|
|
7964
8082
|
* @throws {RequiredError}
|
|
7965
8083
|
*/
|
|
@@ -7989,12 +8107,12 @@ const UserAPIKeyServiceApiAxiosParamCreator = function (configuration) {
|
|
|
7989
8107
|
};
|
|
7990
8108
|
}),
|
|
7991
8109
|
/**
|
|
7992
|
-
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤
|
|
7993
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
7994
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
7995
|
-
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用)
|
|
7996
|
-
* @param {string} [keyStatus] key_status 按状态过滤(可选)
|
|
7997
|
-
* @param {string} [keyGroup] key_group 按分组过滤(可选)
|
|
8110
|
+
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
8111
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8112
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8113
|
+
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
|
|
8114
|
+
* @param {string} [keyStatus] key_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key @gotags: form:\"key_status\"
|
|
8115
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) @gotags: form:\"key_group\"
|
|
7998
8116
|
* @param {*} [options] Override http request option.
|
|
7999
8117
|
* @throws {RequiredError}
|
|
8000
8118
|
*/
|
|
@@ -8033,7 +8151,7 @@ const UserAPIKeyServiceApiAxiosParamCreator = function (configuration) {
|
|
|
8033
8151
|
};
|
|
8034
8152
|
}),
|
|
8035
8153
|
/**
|
|
8036
|
-
* UserAPIKeyUpdate 更新现有的 UserAPIKey
|
|
8154
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
8037
8155
|
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
8038
8156
|
* @param {*} [options] Override http request option.
|
|
8039
8157
|
* @throws {RequiredError}
|
|
@@ -8071,7 +8189,7 @@ const UserAPIKeyServiceApiFp = function (configuration) {
|
|
|
8071
8189
|
const localVarAxiosParamCreator = (0, exports.UserAPIKeyServiceApiAxiosParamCreator)(configuration);
|
|
8072
8190
|
return {
|
|
8073
8191
|
/**
|
|
8074
|
-
* UserAPIKeyCreate 创建新的 UserAPIKey
|
|
8192
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey 请求路径: POST /api/user/api-key/create
|
|
8075
8193
|
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
8076
8194
|
* @param {*} [options] Override http request option.
|
|
8077
8195
|
* @throws {RequiredError}
|
|
@@ -8086,8 +8204,8 @@ const UserAPIKeyServiceApiFp = function (configuration) {
|
|
|
8086
8204
|
});
|
|
8087
8205
|
},
|
|
8088
8206
|
/**
|
|
8089
|
-
* UserAPIKeyDelete 删除 UserAPIKey(软删除)
|
|
8090
|
-
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符
|
|
8207
|
+
* UserAPIKeyDelete 删除 UserAPIKey(软删除) 请求路径: POST /api/user/api-key/delete
|
|
8208
|
+
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" binding:\"required\"
|
|
8091
8209
|
* @param {*} [options] Override http request option.
|
|
8092
8210
|
* @throws {RequiredError}
|
|
8093
8211
|
*/
|
|
@@ -8101,9 +8219,9 @@ const UserAPIKeyServiceApiFp = function (configuration) {
|
|
|
8101
8219
|
});
|
|
8102
8220
|
},
|
|
8103
8221
|
/**
|
|
8104
|
-
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey
|
|
8105
|
-
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符
|
|
8106
|
-
* @param {string} [name] name 要获取的 UserAPIKey 的名称
|
|
8222
|
+
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
8223
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 @gotags: form:\"id\"
|
|
8224
|
+
* @param {string} [name] name 要获取的 UserAPIKey 的名称 如果同时提供 id 和 name,以 id 为准 @gotags: form:\"name\"
|
|
8107
8225
|
* @param {*} [options] Override http request option.
|
|
8108
8226
|
* @throws {RequiredError}
|
|
8109
8227
|
*/
|
|
@@ -8117,12 +8235,12 @@ const UserAPIKeyServiceApiFp = function (configuration) {
|
|
|
8117
8235
|
});
|
|
8118
8236
|
},
|
|
8119
8237
|
/**
|
|
8120
|
-
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤
|
|
8121
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8122
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8123
|
-
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用)
|
|
8124
|
-
* @param {string} [keyStatus] key_status 按状态过滤(可选)
|
|
8125
|
-
* @param {string} [keyGroup] key_group 按分组过滤(可选)
|
|
8238
|
+
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
8239
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8240
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8241
|
+
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
|
|
8242
|
+
* @param {string} [keyStatus] key_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key @gotags: form:\"key_status\"
|
|
8243
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) @gotags: form:\"key_group\"
|
|
8126
8244
|
* @param {*} [options] Override http request option.
|
|
8127
8245
|
* @throws {RequiredError}
|
|
8128
8246
|
*/
|
|
@@ -8136,7 +8254,7 @@ const UserAPIKeyServiceApiFp = function (configuration) {
|
|
|
8136
8254
|
});
|
|
8137
8255
|
},
|
|
8138
8256
|
/**
|
|
8139
|
-
* UserAPIKeyUpdate 更新现有的 UserAPIKey
|
|
8257
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
8140
8258
|
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
8141
8259
|
* @param {*} [options] Override http request option.
|
|
8142
8260
|
* @throws {RequiredError}
|
|
@@ -8160,7 +8278,7 @@ const UserAPIKeyServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
8160
8278
|
const localVarFp = (0, exports.UserAPIKeyServiceApiFp)(configuration);
|
|
8161
8279
|
return {
|
|
8162
8280
|
/**
|
|
8163
|
-
* UserAPIKeyCreate 创建新的 UserAPIKey
|
|
8281
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey 请求路径: POST /api/user/api-key/create
|
|
8164
8282
|
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
8165
8283
|
* @param {*} [options] Override http request option.
|
|
8166
8284
|
* @throws {RequiredError}
|
|
@@ -8169,8 +8287,8 @@ const UserAPIKeyServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
8169
8287
|
return localVarFp.userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options).then((request) => request(axios, basePath));
|
|
8170
8288
|
},
|
|
8171
8289
|
/**
|
|
8172
|
-
* UserAPIKeyDelete 删除 UserAPIKey(软删除)
|
|
8173
|
-
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符
|
|
8290
|
+
* UserAPIKeyDelete 删除 UserAPIKey(软删除) 请求路径: POST /api/user/api-key/delete
|
|
8291
|
+
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" binding:\"required\"
|
|
8174
8292
|
* @param {*} [options] Override http request option.
|
|
8175
8293
|
* @throws {RequiredError}
|
|
8176
8294
|
*/
|
|
@@ -8178,9 +8296,9 @@ const UserAPIKeyServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
8178
8296
|
return localVarFp.userAPIKeyServiceUserAPIKeyDelete(id, options).then((request) => request(axios, basePath));
|
|
8179
8297
|
},
|
|
8180
8298
|
/**
|
|
8181
|
-
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey
|
|
8182
|
-
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符
|
|
8183
|
-
* @param {string} [name] name 要获取的 UserAPIKey 的名称
|
|
8299
|
+
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
8300
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 @gotags: form:\"id\"
|
|
8301
|
+
* @param {string} [name] name 要获取的 UserAPIKey 的名称 如果同时提供 id 和 name,以 id 为准 @gotags: form:\"name\"
|
|
8184
8302
|
* @param {*} [options] Override http request option.
|
|
8185
8303
|
* @throws {RequiredError}
|
|
8186
8304
|
*/
|
|
@@ -8188,12 +8306,12 @@ const UserAPIKeyServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
8188
8306
|
return localVarFp.userAPIKeyServiceUserAPIKeyGet(id, name, options).then((request) => request(axios, basePath));
|
|
8189
8307
|
},
|
|
8190
8308
|
/**
|
|
8191
|
-
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤
|
|
8192
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8193
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8194
|
-
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用)
|
|
8195
|
-
* @param {string} [keyStatus] key_status 按状态过滤(可选)
|
|
8196
|
-
* @param {string} [keyGroup] key_group 按分组过滤(可选)
|
|
8309
|
+
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
8310
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8311
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8312
|
+
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
|
|
8313
|
+
* @param {string} [keyStatus] key_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key @gotags: form:\"key_status\"
|
|
8314
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) @gotags: form:\"key_group\"
|
|
8197
8315
|
* @param {*} [options] Override http request option.
|
|
8198
8316
|
* @throws {RequiredError}
|
|
8199
8317
|
*/
|
|
@@ -8201,7 +8319,7 @@ const UserAPIKeyServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
8201
8319
|
return localVarFp.userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options).then((request) => request(axios, basePath));
|
|
8202
8320
|
},
|
|
8203
8321
|
/**
|
|
8204
|
-
* UserAPIKeyUpdate 更新现有的 UserAPIKey
|
|
8322
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
8205
8323
|
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
8206
8324
|
* @param {*} [options] Override http request option.
|
|
8207
8325
|
* @throws {RequiredError}
|
|
@@ -8217,7 +8335,7 @@ exports.UserAPIKeyServiceApiFactory = UserAPIKeyServiceApiFactory;
|
|
|
8217
8335
|
*/
|
|
8218
8336
|
class UserAPIKeyServiceApi extends base_1.BaseAPI {
|
|
8219
8337
|
/**
|
|
8220
|
-
* UserAPIKeyCreate 创建新的 UserAPIKey
|
|
8338
|
+
* UserAPIKeyCreate 创建新的 UserAPIKey 请求路径: POST /api/user/api-key/create
|
|
8221
8339
|
* @param {UserAPIKeyCreateRequest} userAPIKeyCreateRequest
|
|
8222
8340
|
* @param {*} [options] Override http request option.
|
|
8223
8341
|
* @throws {RequiredError}
|
|
@@ -8226,8 +8344,8 @@ class UserAPIKeyServiceApi extends base_1.BaseAPI {
|
|
|
8226
8344
|
return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8227
8345
|
}
|
|
8228
8346
|
/**
|
|
8229
|
-
* UserAPIKeyDelete 删除 UserAPIKey(软删除)
|
|
8230
|
-
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符
|
|
8347
|
+
* UserAPIKeyDelete 删除 UserAPIKey(软删除) 请求路径: POST /api/user/api-key/delete
|
|
8348
|
+
* @param {string} [id] id 要删除的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" binding:\"required\"
|
|
8231
8349
|
* @param {*} [options] Override http request option.
|
|
8232
8350
|
* @throws {RequiredError}
|
|
8233
8351
|
*/
|
|
@@ -8235,9 +8353,9 @@ class UserAPIKeyServiceApi extends base_1.BaseAPI {
|
|
|
8235
8353
|
return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
8236
8354
|
}
|
|
8237
8355
|
/**
|
|
8238
|
-
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey
|
|
8239
|
-
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符
|
|
8240
|
-
* @param {string} [name] name 要获取的 UserAPIKey 的名称
|
|
8356
|
+
* UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
8357
|
+
* @param {string} [id] id 要获取的 UserAPIKey 的唯一标识符 @gotags: form:\"id\"
|
|
8358
|
+
* @param {string} [name] name 要获取的 UserAPIKey 的名称 如果同时提供 id 和 name,以 id 为准 @gotags: form:\"name\"
|
|
8241
8359
|
* @param {*} [options] Override http request option.
|
|
8242
8360
|
* @throws {RequiredError}
|
|
8243
8361
|
*/
|
|
@@ -8245,12 +8363,12 @@ class UserAPIKeyServiceApi extends base_1.BaseAPI {
|
|
|
8245
8363
|
return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyGet(id, name, options).then((request) => request(this.axios, this.basePath));
|
|
8246
8364
|
}
|
|
8247
8365
|
/**
|
|
8248
|
-
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤
|
|
8249
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8250
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8251
|
-
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用)
|
|
8252
|
-
* @param {string} [keyStatus] key_status 按状态过滤(可选)
|
|
8253
|
-
* @param {string} [keyGroup] key_group 按分组过滤(可选)
|
|
8366
|
+
* UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
8367
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8368
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8369
|
+
* @param {string} [uid] uid 按用户 ID 过滤(可选,管理员可用) 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\"
|
|
8370
|
+
* @param {string} [keyStatus] key_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key @gotags: form:\"key_status\"
|
|
8371
|
+
* @param {string} [keyGroup] key_group 按分组过滤(可选) @gotags: form:\"key_group\"
|
|
8254
8372
|
* @param {*} [options] Override http request option.
|
|
8255
8373
|
* @throws {RequiredError}
|
|
8256
8374
|
*/
|
|
@@ -8258,7 +8376,7 @@ class UserAPIKeyServiceApi extends base_1.BaseAPI {
|
|
|
8258
8376
|
return (0, exports.UserAPIKeyServiceApiFp)(this.configuration).userAPIKeyServiceUserAPIKeyList(page, pageSize, uid, keyStatus, keyGroup, options).then((request) => request(this.axios, this.basePath));
|
|
8259
8377
|
}
|
|
8260
8378
|
/**
|
|
8261
|
-
* UserAPIKeyUpdate 更新现有的 UserAPIKey
|
|
8379
|
+
* UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
8262
8380
|
* @param {UserAPIKeyUpdateRequest} userAPIKeyUpdateRequest
|
|
8263
8381
|
* @param {*} [options] Override http request option.
|
|
8264
8382
|
* @throws {RequiredError}
|
|
@@ -8403,8 +8521,8 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
|
|
|
8403
8521
|
}),
|
|
8404
8522
|
/**
|
|
8405
8523
|
* 用户余额列表接口
|
|
8406
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8407
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8524
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8525
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8408
8526
|
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
8409
8527
|
* @param {*} [options] Override http request option.
|
|
8410
8528
|
* @throws {RequiredError}
|
|
@@ -8496,8 +8614,8 @@ const UserBalanceServiceApiFp = function (configuration) {
|
|
|
8496
8614
|
},
|
|
8497
8615
|
/**
|
|
8498
8616
|
* 用户余额列表接口
|
|
8499
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8500
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8617
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8618
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8501
8619
|
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
8502
8620
|
* @param {*} [options] Override http request option.
|
|
8503
8621
|
* @throws {RequiredError}
|
|
@@ -8558,8 +8676,8 @@ const UserBalanceServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
8558
8676
|
},
|
|
8559
8677
|
/**
|
|
8560
8678
|
* 用户余额列表接口
|
|
8561
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8562
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8679
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8680
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8563
8681
|
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
8564
8682
|
* @param {*} [options] Override http request option.
|
|
8565
8683
|
* @throws {RequiredError}
|
|
@@ -8612,8 +8730,8 @@ class UserBalanceServiceApi extends base_1.BaseAPI {
|
|
|
8612
8730
|
}
|
|
8613
8731
|
/**
|
|
8614
8732
|
* 用户余额列表接口
|
|
8615
|
-
* @param {number} [page] page 页码,从 1 开始
|
|
8616
|
-
* @param {number} [pageSize] page_size 每页数量
|
|
8733
|
+
* @param {number} [page] page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\"
|
|
8734
|
+
* @param {number} [pageSize] page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\"
|
|
8617
8735
|
* @param {Array<string>} [uidList] uid_list 用户 ID 列表,空表示不按用户 ID 过滤
|
|
8618
8736
|
* @param {*} [options] Override http request option.
|
|
8619
8737
|
* @throws {RequiredError}
|
|
@@ -9517,16 +9635,83 @@ exports.UserManageAdminServiceApi = UserManageAdminServiceApi;
|
|
|
9517
9635
|
const UserModelServiceApiAxiosParamCreator = function (configuration) {
|
|
9518
9636
|
return {
|
|
9519
9637
|
/**
|
|
9520
|
-
*
|
|
9521
|
-
* @param {string} [
|
|
9638
|
+
* FrontendModels 获取前端模型列表 NOTE: 暂时不需要鉴权
|
|
9639
|
+
* @param {string} [providerId] provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\"
|
|
9640
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9641
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9642
|
+
* @param {*} [options] Override http request option.
|
|
9643
|
+
* @throws {RequiredError}
|
|
9644
|
+
*/
|
|
9645
|
+
userModelServiceFrontendModels: (providerId_1, limit_1, offset_1, ...args_1) => __awaiter(this, [providerId_1, limit_1, offset_1, ...args_1], void 0, function* (providerId, limit, offset, options = {}) {
|
|
9646
|
+
const localVarPath = `/v1/frontend/models`;
|
|
9647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9648
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9649
|
+
let baseOptions;
|
|
9650
|
+
if (configuration) {
|
|
9651
|
+
baseOptions = configuration.baseOptions;
|
|
9652
|
+
}
|
|
9653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9654
|
+
const localVarHeaderParameter = {};
|
|
9655
|
+
const localVarQueryParameter = {};
|
|
9656
|
+
if (providerId !== undefined) {
|
|
9657
|
+
localVarQueryParameter['provider_id'] = providerId;
|
|
9658
|
+
}
|
|
9659
|
+
if (limit !== undefined) {
|
|
9660
|
+
localVarQueryParameter['limit'] = limit;
|
|
9661
|
+
}
|
|
9662
|
+
if (offset !== undefined) {
|
|
9663
|
+
localVarQueryParameter['offset'] = offset;
|
|
9664
|
+
}
|
|
9665
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9667
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9668
|
+
return {
|
|
9669
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9670
|
+
options: localVarRequestOptions,
|
|
9671
|
+
};
|
|
9672
|
+
}),
|
|
9673
|
+
/**
|
|
9674
|
+
* FrontendProviders 获取前端供应商列表 NOTE: 暂时不需要鉴权
|
|
9675
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9676
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9677
|
+
* @param {*} [options] Override http request option.
|
|
9678
|
+
* @throws {RequiredError}
|
|
9679
|
+
*/
|
|
9680
|
+
userModelServiceFrontendProviders: (limit_1, offset_1, ...args_1) => __awaiter(this, [limit_1, offset_1, ...args_1], void 0, function* (limit, offset, options = {}) {
|
|
9681
|
+
const localVarPath = `/v1/frontend/providers`;
|
|
9682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9683
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9684
|
+
let baseOptions;
|
|
9685
|
+
if (configuration) {
|
|
9686
|
+
baseOptions = configuration.baseOptions;
|
|
9687
|
+
}
|
|
9688
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9689
|
+
const localVarHeaderParameter = {};
|
|
9690
|
+
const localVarQueryParameter = {};
|
|
9691
|
+
if (limit !== undefined) {
|
|
9692
|
+
localVarQueryParameter['limit'] = limit;
|
|
9693
|
+
}
|
|
9694
|
+
if (offset !== undefined) {
|
|
9695
|
+
localVarQueryParameter['offset'] = offset;
|
|
9696
|
+
}
|
|
9697
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9699
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9700
|
+
return {
|
|
9701
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9702
|
+
options: localVarRequestOptions,
|
|
9703
|
+
};
|
|
9704
|
+
}),
|
|
9705
|
+
/**
|
|
9706
|
+
* ModelList OpenAI 通用模型列表 NOTE: 暂时不需要鉴权
|
|
9522
9707
|
* @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\"
|
|
9523
9708
|
* @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\"
|
|
9524
9709
|
* @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\"
|
|
9525
|
-
* @param {
|
|
9710
|
+
* @param {string} [pricingCode] model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\"
|
|
9526
9711
|
* @param {*} [options] Override http request option.
|
|
9527
9712
|
* @throws {RequiredError}
|
|
9528
9713
|
*/
|
|
9529
|
-
|
|
9714
|
+
userModelServiceModelList: (beforeId_1, afterId_1, limit_1, pricingCode_1, ...args_1) => __awaiter(this, [beforeId_1, afterId_1, limit_1, pricingCode_1, ...args_1], void 0, function* (beforeId, afterId, limit, pricingCode, options = {}) {
|
|
9530
9715
|
const localVarPath = `/v1/models`;
|
|
9531
9716
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9532
9717
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -9537,20 +9722,17 @@ const UserModelServiceApiAxiosParamCreator = function (configuration) {
|
|
|
9537
9722
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9538
9723
|
const localVarHeaderParameter = {};
|
|
9539
9724
|
const localVarQueryParameter = {};
|
|
9540
|
-
if (currencyCode !== undefined) {
|
|
9541
|
-
localVarQueryParameter['currency_code'] = currencyCode;
|
|
9542
|
-
}
|
|
9543
9725
|
if (beforeId !== undefined) {
|
|
9544
|
-
localVarQueryParameter['
|
|
9726
|
+
localVarQueryParameter['before_id'] = beforeId;
|
|
9545
9727
|
}
|
|
9546
9728
|
if (afterId !== undefined) {
|
|
9547
|
-
localVarQueryParameter['
|
|
9729
|
+
localVarQueryParameter['after_id'] = afterId;
|
|
9548
9730
|
}
|
|
9549
9731
|
if (limit !== undefined) {
|
|
9550
9732
|
localVarQueryParameter['limit'] = limit;
|
|
9551
9733
|
}
|
|
9552
|
-
if (
|
|
9553
|
-
localVarQueryParameter['
|
|
9734
|
+
if (pricingCode !== undefined) {
|
|
9735
|
+
localVarQueryParameter['pricing_code'] = pricingCode;
|
|
9554
9736
|
}
|
|
9555
9737
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9556
9738
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -9570,21 +9752,53 @@ const UserModelServiceApiFp = function (configuration) {
|
|
|
9570
9752
|
const localVarAxiosParamCreator = (0, exports.UserModelServiceApiAxiosParamCreator)(configuration);
|
|
9571
9753
|
return {
|
|
9572
9754
|
/**
|
|
9573
|
-
*
|
|
9574
|
-
* @param {string} [
|
|
9755
|
+
* FrontendModels 获取前端模型列表 NOTE: 暂时不需要鉴权
|
|
9756
|
+
* @param {string} [providerId] provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\"
|
|
9757
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9758
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9759
|
+
* @param {*} [options] Override http request option.
|
|
9760
|
+
* @throws {RequiredError}
|
|
9761
|
+
*/
|
|
9762
|
+
userModelServiceFrontendModels(providerId, limit, offset, options) {
|
|
9763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9764
|
+
var _a, _b, _c;
|
|
9765
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userModelServiceFrontendModels(providerId, limit, offset, options);
|
|
9766
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9767
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserModelServiceApi.userModelServiceFrontendModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9768
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9769
|
+
});
|
|
9770
|
+
},
|
|
9771
|
+
/**
|
|
9772
|
+
* FrontendProviders 获取前端供应商列表 NOTE: 暂时不需要鉴权
|
|
9773
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9774
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9775
|
+
* @param {*} [options] Override http request option.
|
|
9776
|
+
* @throws {RequiredError}
|
|
9777
|
+
*/
|
|
9778
|
+
userModelServiceFrontendProviders(limit, offset, options) {
|
|
9779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9780
|
+
var _a, _b, _c;
|
|
9781
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userModelServiceFrontendProviders(limit, offset, options);
|
|
9782
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9783
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserModelServiceApi.userModelServiceFrontendProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9784
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9785
|
+
});
|
|
9786
|
+
},
|
|
9787
|
+
/**
|
|
9788
|
+
* ModelList OpenAI 通用模型列表 NOTE: 暂时不需要鉴权
|
|
9575
9789
|
* @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\"
|
|
9576
9790
|
* @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\"
|
|
9577
9791
|
* @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\"
|
|
9578
|
-
* @param {
|
|
9792
|
+
* @param {string} [pricingCode] model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\"
|
|
9579
9793
|
* @param {*} [options] Override http request option.
|
|
9580
9794
|
* @throws {RequiredError}
|
|
9581
9795
|
*/
|
|
9582
|
-
|
|
9796
|
+
userModelServiceModelList(beforeId, afterId, limit, pricingCode, options) {
|
|
9583
9797
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9584
9798
|
var _a, _b, _c;
|
|
9585
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
9799
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userModelServiceModelList(beforeId, afterId, limit, pricingCode, options);
|
|
9586
9800
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9587
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserModelServiceApi.
|
|
9801
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserModelServiceApi.userModelServiceModelList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9588
9802
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9589
9803
|
});
|
|
9590
9804
|
},
|
|
@@ -9598,17 +9812,37 @@ const UserModelServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
9598
9812
|
const localVarFp = (0, exports.UserModelServiceApiFp)(configuration);
|
|
9599
9813
|
return {
|
|
9600
9814
|
/**
|
|
9601
|
-
*
|
|
9602
|
-
* @param {string} [
|
|
9815
|
+
* FrontendModels 获取前端模型列表 NOTE: 暂时不需要鉴权
|
|
9816
|
+
* @param {string} [providerId] provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\"
|
|
9817
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9818
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9819
|
+
* @param {*} [options] Override http request option.
|
|
9820
|
+
* @throws {RequiredError}
|
|
9821
|
+
*/
|
|
9822
|
+
userModelServiceFrontendModels(providerId, limit, offset, options) {
|
|
9823
|
+
return localVarFp.userModelServiceFrontendModels(providerId, limit, offset, options).then((request) => request(axios, basePath));
|
|
9824
|
+
},
|
|
9825
|
+
/**
|
|
9826
|
+
* FrontendProviders 获取前端供应商列表 NOTE: 暂时不需要鉴权
|
|
9827
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9828
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9829
|
+
* @param {*} [options] Override http request option.
|
|
9830
|
+
* @throws {RequiredError}
|
|
9831
|
+
*/
|
|
9832
|
+
userModelServiceFrontendProviders(limit, offset, options) {
|
|
9833
|
+
return localVarFp.userModelServiceFrontendProviders(limit, offset, options).then((request) => request(axios, basePath));
|
|
9834
|
+
},
|
|
9835
|
+
/**
|
|
9836
|
+
* ModelList OpenAI 通用模型列表 NOTE: 暂时不需要鉴权
|
|
9603
9837
|
* @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\"
|
|
9604
9838
|
* @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\"
|
|
9605
9839
|
* @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\"
|
|
9606
|
-
* @param {
|
|
9840
|
+
* @param {string} [pricingCode] model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\"
|
|
9607
9841
|
* @param {*} [options] Override http request option.
|
|
9608
9842
|
* @throws {RequiredError}
|
|
9609
9843
|
*/
|
|
9610
|
-
|
|
9611
|
-
return localVarFp.
|
|
9844
|
+
userModelServiceModelList(beforeId, afterId, limit, pricingCode, options) {
|
|
9845
|
+
return localVarFp.userModelServiceModelList(beforeId, afterId, limit, pricingCode, options).then((request) => request(axios, basePath));
|
|
9612
9846
|
},
|
|
9613
9847
|
};
|
|
9614
9848
|
};
|
|
@@ -9618,17 +9852,37 @@ exports.UserModelServiceApiFactory = UserModelServiceApiFactory;
|
|
|
9618
9852
|
*/
|
|
9619
9853
|
class UserModelServiceApi extends base_1.BaseAPI {
|
|
9620
9854
|
/**
|
|
9621
|
-
*
|
|
9622
|
-
* @param {string} [
|
|
9855
|
+
* FrontendModels 获取前端模型列表 NOTE: 暂时不需要鉴权
|
|
9856
|
+
* @param {string} [providerId] provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\"
|
|
9857
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9858
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9859
|
+
* @param {*} [options] Override http request option.
|
|
9860
|
+
* @throws {RequiredError}
|
|
9861
|
+
*/
|
|
9862
|
+
userModelServiceFrontendModels(providerId, limit, offset, options) {
|
|
9863
|
+
return (0, exports.UserModelServiceApiFp)(this.configuration).userModelServiceFrontendModels(providerId, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9864
|
+
}
|
|
9865
|
+
/**
|
|
9866
|
+
* FrontendProviders 获取前端供应商列表 NOTE: 暂时不需要鉴权
|
|
9867
|
+
* @param {number} [limit] limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\"
|
|
9868
|
+
* @param {number} [offset] offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\"
|
|
9869
|
+
* @param {*} [options] Override http request option.
|
|
9870
|
+
* @throws {RequiredError}
|
|
9871
|
+
*/
|
|
9872
|
+
userModelServiceFrontendProviders(limit, offset, options) {
|
|
9873
|
+
return (0, exports.UserModelServiceApiFp)(this.configuration).userModelServiceFrontendProviders(limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
9874
|
+
}
|
|
9875
|
+
/**
|
|
9876
|
+
* ModelList OpenAI 通用模型列表 NOTE: 暂时不需要鉴权
|
|
9623
9877
|
* @param {string} [beforeId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object. @gotags: form:\"before_id\"
|
|
9624
9878
|
* @param {string} [afterId] ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object. @gotags: form:\"after_id\"
|
|
9625
9879
|
* @param {string} [limit] Number of items to return per page. Defaults to 0. Ranges from 1 to 1000. if limit is 0, server will return all models. @gotags: form:\"limit\"
|
|
9626
|
-
* @param {
|
|
9880
|
+
* @param {string} [pricingCode] model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\"
|
|
9627
9881
|
* @param {*} [options] Override http request option.
|
|
9628
9882
|
* @throws {RequiredError}
|
|
9629
9883
|
*/
|
|
9630
|
-
|
|
9631
|
-
return (0, exports.UserModelServiceApiFp)(this.configuration).
|
|
9884
|
+
userModelServiceModelList(beforeId, afterId, limit, pricingCode, options) {
|
|
9885
|
+
return (0, exports.UserModelServiceApiFp)(this.configuration).userModelServiceModelList(beforeId, afterId, limit, pricingCode, options).then((request) => request(this.axios, this.basePath));
|
|
9632
9886
|
}
|
|
9633
9887
|
}
|
|
9634
9888
|
exports.UserModelServiceApi = UserModelServiceApi;
|