@cherryin/api-client 0.0.1
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 +135 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +219 -0
- package/api.ts +6364 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +4175 -0
- package/dist/api.js +3694 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +4175 -0
- package/dist/esm/api.js +3643 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AIModel.md +45 -0
- package/docs/AIModelAdminServiceApi.md +398 -0
- package/docs/AIModelArchitecture.md +25 -0
- package/docs/AIModelCreateRequest.md +35 -0
- package/docs/AIModelCreateResponse.md +25 -0
- package/docs/AIModelDeleteRequest.md +21 -0
- package/docs/AIModelDeleteResponse.md +23 -0
- package/docs/AIModelDisableRequest.md +21 -0
- package/docs/AIModelDisableResponse.md +25 -0
- package/docs/AIModelDiscountConfig.md +21 -0
- package/docs/AIModelGetResponse.md +25 -0
- package/docs/AIModelListResponse.md +27 -0
- package/docs/AIModelMeta.md +25 -0
- package/docs/AIModelPricingConfig.md +37 -0
- package/docs/AIModelProviderConfigItem.md +29 -0
- package/docs/AIModelPublishRequest.md +21 -0
- package/docs/AIModelPublishResponse.md +25 -0
- package/docs/AIModelUpdateRequest.md +37 -0
- package/docs/AIModelUpdateResponse.md +25 -0
- package/docs/AWSAuth.md +24 -0
- package/docs/AdminAuthFlowInitResponse.md +24 -0
- package/docs/AdminAuthServiceApi.md +81 -0
- package/docs/AudioPricing.md +33 -0
- package/docs/AuthFlowResult.md +23 -0
- package/docs/AuthTokenPair.md +27 -0
- package/docs/DiscountAdminServiceApi.md +281 -0
- package/docs/DiscountCreateRequest.md +36 -0
- package/docs/DiscountDeleteRequest.md +20 -0
- package/docs/DiscountDeleteResponse.md +22 -0
- package/docs/DiscountGetResponse.md +24 -0
- package/docs/DiscountInfo.md +42 -0
- package/docs/DiscountListResponse.md +26 -0
- package/docs/DiscountUpdateRequest.md +38 -0
- package/docs/DiscountUpdateResponse.md +24 -0
- package/docs/FeatureCostPricing.md +27 -0
- package/docs/FrontAIModel.md +45 -0
- package/docs/GCPAuth.md +27 -0
- package/docs/GoogleProtobufAny.md +21 -0
- package/docs/ImagePricing.md +31 -0
- package/docs/Label.md +28 -0
- package/docs/LabelCreateRequest.md +22 -0
- package/docs/LabelCreateResponse.md +24 -0
- package/docs/LabelDeleteRequest.md +20 -0
- package/docs/LabelDeleteResponse.md +22 -0
- package/docs/LabelListRequest.md +24 -0
- package/docs/LabelListResponse.md +26 -0
- package/docs/LabelUpdateRequest.md +24 -0
- package/docs/LabelUpdateResponse.md +24 -0
- package/docs/MultimodalPricing.md +25 -0
- package/docs/PricingConditions.md +31 -0
- package/docs/PricingRules.md +29 -0
- package/docs/Provider.md +37 -0
- package/docs/ProviderAdminServiceApi.md +284 -0
- package/docs/ProviderAuth.md +29 -0
- package/docs/ProviderCreateRequest.md +29 -0
- package/docs/ProviderCreateResponse.md +25 -0
- package/docs/ProviderDeleteRequest.md +21 -0
- package/docs/ProviderDeleteResponse.md +23 -0
- package/docs/ProviderGetResponse.md +25 -0
- package/docs/ProviderListResponse.md +27 -0
- package/docs/ProviderModel.md +37 -0
- package/docs/ProviderModelAdminServiceApi.md +287 -0
- package/docs/ProviderModelCreateRequest.md +29 -0
- package/docs/ProviderModelCreateResponse.md +25 -0
- package/docs/ProviderModelDeleteRequest.md +21 -0
- package/docs/ProviderModelDeleteResponse.md +23 -0
- package/docs/ProviderModelGetResponse.md +25 -0
- package/docs/ProviderModelListResponse.md +27 -0
- package/docs/ProviderModelPayload.md +23 -0
- package/docs/ProviderModelUpdateRequest.md +31 -0
- package/docs/ProviderModelUpdateResponse.md +25 -0
- package/docs/ProviderPayload.md +21 -0
- package/docs/ProviderUpdateRequest.md +31 -0
- package/docs/ProviderUpdateResponse.md +25 -0
- package/docs/RequestPricing.md +23 -0
- package/docs/Status.md +25 -0
- package/docs/TextTokenInputPricing.md +27 -0
- package/docs/TextTokenOutputPricing.md +25 -0
- package/docs/TextTokenPricing.md +23 -0
- package/docs/TokenTier.md +25 -0
- package/docs/UserAPIKey.md +47 -0
- package/docs/UserAPIKeyCreateRequest.md +37 -0
- package/docs/UserAPIKeyCreateResponse.md +25 -0
- package/docs/UserAPIKeyDeleteRequest.md +21 -0
- package/docs/UserAPIKeyDeleteResponse.md +23 -0
- package/docs/UserAPIKeyGetResponse.md +25 -0
- package/docs/UserAPIKeyListResponse.md +27 -0
- package/docs/UserAPIKeyServiceApi.md +290 -0
- package/docs/UserAPIKeyUpdateRequest.md +33 -0
- package/docs/UserAPIKeyUpdateResponse.md +25 -0
- package/docs/UserAuthFlowCodeResponse.md +26 -0
- package/docs/UserAuthFlowInitResponse.md +28 -0
- package/docs/UserAuthFlowInitResponseOAuthResult.md +20 -0
- package/docs/UserAuthFlowOAuthCallbackRequest.md +24 -0
- package/docs/UserAuthFlowOAuthCallbackResponse.md +26 -0
- package/docs/UserAuthInfo.md +20 -0
- package/docs/UserAuthServiceApi.md +279 -0
- package/docs/UserBalance.md +42 -0
- package/docs/UserBalanceBrief.md +32 -0
- package/docs/UserBalanceChangeResponse.md +24 -0
- package/docs/UserBalanceEditResponse.md +24 -0
- package/docs/UserBalanceListResponse.md +26 -0
- package/docs/UserBalanceServiceApi.md +226 -0
- package/docs/UserInfo.md +26 -0
- package/docs/UserLabelItem.md +22 -0
- package/docs/UserLabelListResponse.md +26 -0
- package/docs/UserLabelPair.md +22 -0
- package/docs/UserLabelPairChangeAction.md +22 -0
- package/docs/UserLabelPairChangeRequest.md +20 -0
- package/docs/UserLabelPairChangeResponse.md +22 -0
- package/docs/UserLabelServiceApi.md +386 -0
- package/docs/UserMeInfo.md +24 -0
- package/docs/UserMeInfoResponse.md +24 -0
- package/docs/UserModelListResponse.md +33 -0
- package/docs/UserModelServiceApi.md +71 -0
- package/docs/UserPayServiceApi.md +62 -0
- package/docs/UserPayStripeCheckout.md +20 -0
- package/docs/UserPayStripeCheckoutResponse.md +24 -0
- package/docs/UserPoralServiceApi.md +52 -0
- package/docs/UserSettings.md +20 -0
- package/docs/VersionedAPISchema.md +31 -0
- package/docs/VideoPricing.md +33 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +36 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
# AIModelAdminServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**aIModelAdminServiceAIModelCreate**](#aimodeladminserviceaimodelcreate) | **POST** /admin/ai-model/create | |
|
|
8
|
+
|[**aIModelAdminServiceAIModelDelete**](#aimodeladminserviceaimodeldelete) | **POST** /admin/ai-model/delete | |
|
|
9
|
+
|[**aIModelAdminServiceAIModelDisable**](#aimodeladminserviceaimodeldisable) | **POST** /admin/ai-model/disable | |
|
|
10
|
+
|[**aIModelAdminServiceAIModelGet**](#aimodeladminserviceaimodelget) | **GET** /admin/ai-model/get | |
|
|
11
|
+
|[**aIModelAdminServiceAIModelList**](#aimodeladminserviceaimodellist) | **GET** /admin/ai-model/list | |
|
|
12
|
+
|[**aIModelAdminServiceAIModelPublish**](#aimodeladminserviceaimodelpublish) | **POST** /admin/ai-model/publish | |
|
|
13
|
+
|[**aIModelAdminServiceAIModelUpdate**](#aimodeladminserviceaimodelupdate) | **POST** /admin/ai-model/update | |
|
|
14
|
+
|
|
15
|
+
# **aIModelAdminServiceAIModelCreate**
|
|
16
|
+
> AIModelCreateResponse aIModelAdminServiceAIModelCreate(aIModelCreateRequest)
|
|
17
|
+
|
|
18
|
+
AIModelCreate 创建新的 AIModel(草稿状态) Create a new AI model (draft status) 请求路径: POST /admin/ai-model/create Request path: POST /admin/ai-model/create 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
AIModelAdminServiceApi,
|
|
25
|
+
Configuration,
|
|
26
|
+
AIModelCreateRequest
|
|
27
|
+
} from '@cherryin/api-client';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
31
|
+
|
|
32
|
+
let aIModelCreateRequest: AIModelCreateRequest; //
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelCreate(
|
|
35
|
+
aIModelCreateRequest
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **aIModelCreateRequest** | **AIModelCreateRequest**| | |
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**AIModelCreateResponse**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
No authorization required
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | OK | - |
|
|
64
|
+
|**0** | Default error response | - |
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
# **aIModelAdminServiceAIModelDelete**
|
|
69
|
+
> AIModelDeleteResponse aIModelAdminServiceAIModelDelete(aIModelDeleteRequest)
|
|
70
|
+
|
|
71
|
+
AIModelDelete 删除 AIModel(软删除) Delete an AI model (soft delete) 请求路径: POST /admin/ai-model/delete Request path: POST /admin/ai-model/delete 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
AIModelAdminServiceApi,
|
|
78
|
+
Configuration,
|
|
79
|
+
AIModelDeleteRequest
|
|
80
|
+
} from '@cherryin/api-client';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
84
|
+
|
|
85
|
+
let aIModelDeleteRequest: AIModelDeleteRequest; //
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelDelete(
|
|
88
|
+
aIModelDeleteRequest
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **aIModelDeleteRequest** | **AIModelDeleteRequest**| | |
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**AIModelDeleteResponse**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
No authorization required
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: application/json
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | OK | - |
|
|
117
|
+
|**0** | Default error response | - |
|
|
118
|
+
|
|
119
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
120
|
+
|
|
121
|
+
# **aIModelAdminServiceAIModelDisable**
|
|
122
|
+
> AIModelDisableResponse aIModelAdminServiceAIModelDisable(aIModelDisableRequest)
|
|
123
|
+
|
|
124
|
+
AIModelDisable 禁用 AIModel,状态变更为已禁用 Disable AI model, status changes to disabled 请求路径: POST /admin/ai-model/disable Request path: POST /admin/ai-model/disable 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
AIModelAdminServiceApi,
|
|
131
|
+
Configuration,
|
|
132
|
+
AIModelDisableRequest
|
|
133
|
+
} from '@cherryin/api-client';
|
|
134
|
+
|
|
135
|
+
const configuration = new Configuration();
|
|
136
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
137
|
+
|
|
138
|
+
let aIModelDisableRequest: AIModelDisableRequest; //
|
|
139
|
+
|
|
140
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelDisable(
|
|
141
|
+
aIModelDisableRequest
|
|
142
|
+
);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
|Name | Type | Description | Notes|
|
|
148
|
+
|------------- | ------------- | ------------- | -------------|
|
|
149
|
+
| **aIModelDisableRequest** | **AIModelDisableRequest**| | |
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Return type
|
|
153
|
+
|
|
154
|
+
**AIModelDisableResponse**
|
|
155
|
+
|
|
156
|
+
### Authorization
|
|
157
|
+
|
|
158
|
+
No authorization required
|
|
159
|
+
|
|
160
|
+
### HTTP request headers
|
|
161
|
+
|
|
162
|
+
- **Content-Type**: application/json
|
|
163
|
+
- **Accept**: application/json
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### HTTP response details
|
|
167
|
+
| Status code | Description | Response headers |
|
|
168
|
+
|-------------|-------------|------------------|
|
|
169
|
+
|**200** | OK | - |
|
|
170
|
+
|**0** | Default error response | - |
|
|
171
|
+
|
|
172
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
173
|
+
|
|
174
|
+
# **aIModelAdminServiceAIModelGet**
|
|
175
|
+
> AIModelGetResponse aIModelAdminServiceAIModelGet()
|
|
176
|
+
|
|
177
|
+
AIModelGet 根据 ID 或名称获取单个 AIModel Retrieve a single AI model by ID or name 请求路径: GET /admin/ai-model/get?id={id} 或 GET /admin/ai-model/get?name={name} Request path: GET /admin/ai-model/get?id={id} or GET /admin/ai-model/get?name={name} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
178
|
+
|
|
179
|
+
### Example
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
import {
|
|
183
|
+
AIModelAdminServiceApi,
|
|
184
|
+
Configuration
|
|
185
|
+
} from '@cherryin/api-client';
|
|
186
|
+
|
|
187
|
+
const configuration = new Configuration();
|
|
188
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
189
|
+
|
|
190
|
+
let id: string; //id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\" (optional) (default to undefined)
|
|
191
|
+
let name: string; //name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\" (optional) (default to undefined)
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelGet(
|
|
194
|
+
id,
|
|
195
|
+
name
|
|
196
|
+
);
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Parameters
|
|
200
|
+
|
|
201
|
+
|Name | Type | Description | Notes|
|
|
202
|
+
|------------- | ------------- | ------------- | -------------|
|
|
203
|
+
| **id** | [**string**] | id 要获取的 AIModel 的唯一标识符 Unique identifier of the AI model to retrieve @gotags: form:\"id\" | (optional) defaults to undefined|
|
|
204
|
+
| **name** | [**string**] | name 要获取的 AIModel 的名称 Name of the AI model to retrieve 如果同时提供 id 和 name,以 id 为准 If both id and name are provided, id takes precedence @gotags: form:\"name\" | (optional) defaults to undefined|
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
### Return type
|
|
208
|
+
|
|
209
|
+
**AIModelGetResponse**
|
|
210
|
+
|
|
211
|
+
### Authorization
|
|
212
|
+
|
|
213
|
+
No authorization required
|
|
214
|
+
|
|
215
|
+
### HTTP request headers
|
|
216
|
+
|
|
217
|
+
- **Content-Type**: Not defined
|
|
218
|
+
- **Accept**: application/json
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### HTTP response details
|
|
222
|
+
| Status code | Description | Response headers |
|
|
223
|
+
|-------------|-------------|------------------|
|
|
224
|
+
|**200** | OK | - |
|
|
225
|
+
|**0** | Default error response | - |
|
|
226
|
+
|
|
227
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
228
|
+
|
|
229
|
+
# **aIModelAdminServiceAIModelList**
|
|
230
|
+
> AIModelListResponse aIModelAdminServiceAIModelList()
|
|
231
|
+
|
|
232
|
+
AIModelList 分页查询 AIModel 列表,支持按状态、名称前缀和分组过滤 List AI models with pagination, supports filtering by status, name prefix and group 请求路径: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} Request path: GET /admin/ai-model/list?page={page}&page_size={page_size}&status={status}&name_prefix={prefix}&group={group} 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
233
|
+
|
|
234
|
+
### Example
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
import {
|
|
238
|
+
AIModelAdminServiceApi,
|
|
239
|
+
Configuration
|
|
240
|
+
} from '@cherryin/api-client';
|
|
241
|
+
|
|
242
|
+
const configuration = new Configuration();
|
|
243
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
244
|
+
|
|
245
|
+
let page: number; //page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
246
|
+
let pageSize: number; //page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
|
|
247
|
+
let status: number; //status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\" (optional) (default to undefined)
|
|
248
|
+
let namePrefix: string; //name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\" (optional) (default to undefined)
|
|
249
|
+
let group: string; //group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\" (optional) (default to undefined)
|
|
250
|
+
|
|
251
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelList(
|
|
252
|
+
page,
|
|
253
|
+
pageSize,
|
|
254
|
+
status,
|
|
255
|
+
namePrefix,
|
|
256
|
+
group
|
|
257
|
+
);
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Parameters
|
|
261
|
+
|
|
262
|
+
|Name | Type | Description | Notes|
|
|
263
|
+
|------------- | ------------- | ------------- | -------------|
|
|
264
|
+
| **page** | [**number**] | page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
265
|
+
| **pageSize** | [**number**] | page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
266
|
+
| **status** | [**number**] | status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\" | (optional) defaults to undefined|
|
|
267
|
+
| **namePrefix** | [**string**] | name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\" | (optional) defaults to undefined|
|
|
268
|
+
| **group** | [**string**] | group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\" | (optional) defaults to undefined|
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
**AIModelListResponse**
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
No authorization required
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: Not defined
|
|
282
|
+
- **Accept**: application/json
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### HTTP response details
|
|
286
|
+
| Status code | Description | Response headers |
|
|
287
|
+
|-------------|-------------|------------------|
|
|
288
|
+
|**200** | OK | - |
|
|
289
|
+
|**0** | Default error response | - |
|
|
290
|
+
|
|
291
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
292
|
+
|
|
293
|
+
# **aIModelAdminServiceAIModelPublish**
|
|
294
|
+
> AIModelPublishResponse aIModelAdminServiceAIModelPublish(aIModelPublishRequest)
|
|
295
|
+
|
|
296
|
+
AIModelPublish 发布 AIModel,状态变更为已发布 Publish AI model, status changes to published 请求路径: POST /admin/ai-model/publish Request path: POST /admin/ai-model/publish 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
297
|
+
|
|
298
|
+
### Example
|
|
299
|
+
|
|
300
|
+
```typescript
|
|
301
|
+
import {
|
|
302
|
+
AIModelAdminServiceApi,
|
|
303
|
+
Configuration,
|
|
304
|
+
AIModelPublishRequest
|
|
305
|
+
} from '@cherryin/api-client';
|
|
306
|
+
|
|
307
|
+
const configuration = new Configuration();
|
|
308
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
309
|
+
|
|
310
|
+
let aIModelPublishRequest: AIModelPublishRequest; //
|
|
311
|
+
|
|
312
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelPublish(
|
|
313
|
+
aIModelPublishRequest
|
|
314
|
+
);
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Parameters
|
|
318
|
+
|
|
319
|
+
|Name | Type | Description | Notes|
|
|
320
|
+
|------------- | ------------- | ------------- | -------------|
|
|
321
|
+
| **aIModelPublishRequest** | **AIModelPublishRequest**| | |
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Return type
|
|
325
|
+
|
|
326
|
+
**AIModelPublishResponse**
|
|
327
|
+
|
|
328
|
+
### Authorization
|
|
329
|
+
|
|
330
|
+
No authorization required
|
|
331
|
+
|
|
332
|
+
### HTTP request headers
|
|
333
|
+
|
|
334
|
+
- **Content-Type**: application/json
|
|
335
|
+
- **Accept**: application/json
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
### HTTP response details
|
|
339
|
+
| Status code | Description | Response headers |
|
|
340
|
+
|-------------|-------------|------------------|
|
|
341
|
+
|**200** | OK | - |
|
|
342
|
+
|**0** | Default error response | - |
|
|
343
|
+
|
|
344
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
345
|
+
|
|
346
|
+
# **aIModelAdminServiceAIModelUpdate**
|
|
347
|
+
> AIModelUpdateResponse aIModelAdminServiceAIModelUpdate(aIModelUpdateRequest)
|
|
348
|
+
|
|
349
|
+
AIModelUpdate 更新现有的 AIModel Update an existing AI model 请求路径: POST /admin/ai-model/update Request path: POST /admin/ai-model/update 权限要求: 需要管理员权限 Permission: Requires admin authentication
|
|
350
|
+
|
|
351
|
+
### Example
|
|
352
|
+
|
|
353
|
+
```typescript
|
|
354
|
+
import {
|
|
355
|
+
AIModelAdminServiceApi,
|
|
356
|
+
Configuration,
|
|
357
|
+
AIModelUpdateRequest
|
|
358
|
+
} from '@cherryin/api-client';
|
|
359
|
+
|
|
360
|
+
const configuration = new Configuration();
|
|
361
|
+
const apiInstance = new AIModelAdminServiceApi(configuration);
|
|
362
|
+
|
|
363
|
+
let aIModelUpdateRequest: AIModelUpdateRequest; //
|
|
364
|
+
|
|
365
|
+
const { status, data } = await apiInstance.aIModelAdminServiceAIModelUpdate(
|
|
366
|
+
aIModelUpdateRequest
|
|
367
|
+
);
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Parameters
|
|
371
|
+
|
|
372
|
+
|Name | Type | Description | Notes|
|
|
373
|
+
|------------- | ------------- | ------------- | -------------|
|
|
374
|
+
| **aIModelUpdateRequest** | **AIModelUpdateRequest**| | |
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
### Return type
|
|
378
|
+
|
|
379
|
+
**AIModelUpdateResponse**
|
|
380
|
+
|
|
381
|
+
### Authorization
|
|
382
|
+
|
|
383
|
+
No authorization required
|
|
384
|
+
|
|
385
|
+
### HTTP request headers
|
|
386
|
+
|
|
387
|
+
- **Content-Type**: application/json
|
|
388
|
+
- **Accept**: application/json
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
### HTTP response details
|
|
392
|
+
| Status code | Description | Response headers |
|
|
393
|
+
|-------------|-------------|------------------|
|
|
394
|
+
|**200** | OK | - |
|
|
395
|
+
|**0** | Default error response | - |
|
|
396
|
+
|
|
397
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
398
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AIModelArchitecture
|
|
2
|
+
|
|
3
|
+
AIModelArchitecture AI模型架构信息 AI model architecture information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**modality** | **string** | modality 模态类型,例如 \"text+image->text\" Modality type, e.g., \"text+image->text\" | [optional] [default to undefined]
|
|
10
|
+
**input_modalities** | **Array<string>** | input_modalities 输入模态列表,例如 [\"file\", \"image\", \"text\", \"audio\"] List of input modalities, e.g., [\"file\", \"image\", \"text\", \"audio\"] | [optional] [default to undefined]
|
|
11
|
+
**output_modalities** | **Array<string>** | output_modalities 输出模态列表,例如 [\"text\"] List of output modalities, e.g., [\"text\"] | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AIModelArchitecture } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: AIModelArchitecture = {
|
|
19
|
+
modality,
|
|
20
|
+
input_modalities,
|
|
21
|
+
output_modalities,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# AIModelCreateRequest
|
|
2
|
+
|
|
3
|
+
AIModelCreateRequest 创建 AIModel 的请求(草稿状态) Request message for creating a new AI model (draft status)
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | name 模型的唯一名称标识,例如 \"gpt-4\" Unique name identifier for the model, e.g., \"gpt-4\" | [optional] [default to undefined]
|
|
10
|
+
**display_name** | **string** | display_name 模型的显示名称,例如 \"GPT-4\" Display name for the model, e.g., \"GPT-4\" | [optional] [default to undefined]
|
|
11
|
+
**group** | **string** | group 模型分组,例如 \"gpt-4\" Model group, e.g., \"gpt-4\" | [optional] [default to undefined]
|
|
12
|
+
**description** | **string** | description 模型描述(可选) Model description (optional) | [optional] [default to undefined]
|
|
13
|
+
**meta** | [**AIModelMeta**](AIModelMeta.md) | meta 元数据(可选) Metadata (optional) | [optional] [default to undefined]
|
|
14
|
+
**pricing_configs** | [**Array<AIModelPricingConfig>**](AIModelPricingConfig.md) | pricing_configs 价格配置列表(可选,草稿时可为空) Pricing configurations (optional, can be empty for draft) | [optional] [default to undefined]
|
|
15
|
+
**provider_configs** | [**Array<AIModelProviderConfigItem>**](AIModelProviderConfigItem.md) | provider_configs Provider 配置列表(可选,草稿时可为空) Provider configuration list (optional, can be empty for draft) | [optional] [default to undefined]
|
|
16
|
+
**discount_config** | [**AIModelDiscountConfig**](AIModelDiscountConfig.md) | discount_config 折扣配置 | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { AIModelCreateRequest } from '@cherryin/api-client';
|
|
22
|
+
|
|
23
|
+
const instance: AIModelCreateRequest = {
|
|
24
|
+
name,
|
|
25
|
+
display_name,
|
|
26
|
+
group,
|
|
27
|
+
description,
|
|
28
|
+
meta,
|
|
29
|
+
pricing_configs,
|
|
30
|
+
provider_configs,
|
|
31
|
+
discount_config,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AIModelCreateResponse
|
|
2
|
+
|
|
3
|
+
AIModelCreateResponse 创建 AIModel 的响应 Response message for AI model creation
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 Response message | [optional] [default to undefined]
|
|
11
|
+
**data** | [**AIModel**](AIModel.md) | data 创建成功后返回的 AIModel 信息 AIModel information returned after successful creation | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AIModelCreateResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: AIModelCreateResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
data,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# AIModelDeleteRequest
|
|
2
|
+
|
|
3
|
+
AIModelDeleteRequest 删除 AIModel 的请求 Request message for deleting an AI model
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | id 要删除的 AIModel 的唯一标识符 Unique identifier of the AI model to delete @gotags: form:\"id\" binding:\"required\" | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AIModelDeleteRequest } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: AIModelDeleteRequest = {
|
|
17
|
+
id,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# AIModelDeleteResponse
|
|
2
|
+
|
|
3
|
+
AIModelDeleteResponse 删除 AIModel 的响应 Response message for AI model deletion
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 Response message | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AIModelDeleteResponse } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: AIModelDeleteResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# AIModelDisableRequest
|
|
2
|
+
|
|
3
|
+
AIModelDisableRequest 禁用 AIModel 的请求 Request message for disabling an AI model
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | id 要禁用的 AIModel 的唯一标识符 Unique identifier of the AI model to disable @gotags: form:\"id\" binding:\"required\" | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AIModelDisableRequest } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: AIModelDisableRequest = {
|
|
17
|
+
id,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AIModelDisableResponse
|
|
2
|
+
|
|
3
|
+
AIModelDisableResponse 禁用 AIModel 的响应 Response message for AI model disable
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 Response message | [optional] [default to undefined]
|
|
11
|
+
**data** | [**AIModel**](AIModel.md) | data 禁用后的 AIModel 信息 Disabled AI model information | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AIModelDisableResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: AIModelDisableResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
data,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# AIModelDiscountConfig
|
|
2
|
+
|
|
3
|
+
AIModelDiscountConfig AI模型折扣配置
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**discount_ids** | **Array<string>** | discount_ids 折扣ID列表,关联 DiscountInfo 表 | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AIModelDiscountConfig } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: AIModelDiscountConfig = {
|
|
17
|
+
discount_ids,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AIModelGetResponse
|
|
2
|
+
|
|
3
|
+
AIModelGetResponse 获取单个 AIModel 的响应 Response message for AI model retrieval
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 Response message | [optional] [default to undefined]
|
|
11
|
+
**data** | [**AIModel**](AIModel.md) | data AIModel 信息 AIModel information | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AIModelGetResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: AIModelGetResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
data,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# AIModelListResponse
|
|
2
|
+
|
|
3
|
+
AIModelListResponse 分页查询 AIModel 列表的响应 Response message for AI model listing
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 Response message | [optional] [default to undefined]
|
|
11
|
+
**list** | [**Array<AIModel>**](AIModel.md) | list AIModel 列表 List of AI models | [optional] [default to undefined]
|
|
12
|
+
**total** | **string** | total 符合条件的 AIModel 总数 Total number of AI models matching the filter criteria | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { AIModelListResponse } from '@cherryin/api-client';
|
|
18
|
+
|
|
19
|
+
const instance: AIModelListResponse = {
|
|
20
|
+
code,
|
|
21
|
+
message,
|
|
22
|
+
list,
|
|
23
|
+
total,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AIModelMeta
|
|
2
|
+
|
|
3
|
+
AIModelMeta AI模型元数据 AI model metadata
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**endpoints** | [**Array<VersionedAPISchema>**](VersionedAPISchema.md) | endpoints 端点配置列表 - 这个模型支持的后端 API 列表 List of endpoint configurations - supported backend APIs for this model | [optional] [default to undefined]
|
|
10
|
+
**context_length** | **string** | context_length 上下文长度(token 数量) Context length (number of tokens) | [optional] [default to undefined]
|
|
11
|
+
**architecture** | [**AIModelArchitecture**](AIModelArchitecture.md) | architecture 模型架构信息 Model architecture information | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AIModelMeta } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: AIModelMeta = {
|
|
19
|
+
endpoints,
|
|
20
|
+
context_length,
|
|
21
|
+
architecture,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|