@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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# TextTokenInputPricing
|
|
2
2
|
|
|
3
|
-
TextTokenInputPricing 输入Token价格配置
|
|
3
|
+
TextTokenInputPricing 输入Token价格配置
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 价格配置ID
|
|
10
|
-
**regular** | [**Array<TokenTier>**](TokenTier.md) | regular 常规价格层级
|
|
11
|
-
**cached** | [**Array<TokenTier>**](TokenTier.md) | cached 缓存Token价格层级
|
|
12
|
-
**cache_write** | [**Array<TokenTier>**](TokenTier.md) | cache_write 缓存写入价格层级
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**regular** | [**Array<TokenTier>**](TokenTier.md) | regular 常规价格层级 | [optional] [default to undefined]
|
|
11
|
+
**cached** | [**Array<TokenTier>**](TokenTier.md) | cached 缓存Token价格层级 | [optional] [default to undefined]
|
|
12
|
+
**cache_write** | [**Array<TokenTier>**](TokenTier.md) | cache_write 缓存写入价格层级 | [optional] [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# TextTokenOutputPricing
|
|
2
2
|
|
|
3
|
-
TextTokenOutputPricing 输出Token价格配置
|
|
3
|
+
TextTokenOutputPricing 输出Token价格配置
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 价格配置ID
|
|
10
|
-
**regular** | [**Array<TokenTier>**](TokenTier.md) | regular 常规价格层级
|
|
11
|
-
**reasoning** | [**Array<TokenTier>**](TokenTier.md) | reasoning 推理Token价格层级(如o1模型)
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**regular** | [**Array<TokenTier>**](TokenTier.md) | regular 常规价格层级 | [optional] [default to undefined]
|
|
11
|
+
**reasoning** | [**Array<TokenTier>**](TokenTier.md) | reasoning 推理Token价格层级(如o1模型) | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
package/docs/TextTokenPricing.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# TextTokenPricing
|
|
2
2
|
|
|
3
|
-
TextTokenPricing Token计费规则
|
|
3
|
+
TextTokenPricing Token计费规则
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**input** | [**TextTokenInputPricing**](TextTokenInputPricing.md) | input 输入Token价格配置
|
|
10
|
-
**output** | [**TextTokenOutputPricing**](TextTokenOutputPricing.md) | output 输出Token价格配置
|
|
9
|
+
**input** | [**TextTokenInputPricing**](TextTokenInputPricing.md) | input 输入Token价格配置 | [optional] [default to undefined]
|
|
10
|
+
**output** | [**TextTokenOutputPricing**](TextTokenOutputPricing.md) | output 输出Token价格配置 | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
package/docs/TokenTier.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# TokenTier
|
|
2
2
|
|
|
3
|
-
TokenTier Token价格层级
|
|
3
|
+
TokenTier Token价格层级
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**min_tokens** | **string** | min_tokens 最小token数量
|
|
10
|
-
**max_tokens** | **string** | max_tokens 最大token数量(0表示无限)
|
|
11
|
-
**price_per_million** | **string** | price_per_million 每百万token价格(使用字符串避免精度损失)
|
|
9
|
+
**min_tokens** | **string** | min_tokens 最小token数量 | [optional] [default to undefined]
|
|
10
|
+
**max_tokens** | **string** | max_tokens 最大token数量(0表示无限) | [optional] [default to undefined]
|
|
11
|
+
**price_per_million** | **string** | price_per_million 每百万token价格(使用字符串避免精度损失) | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
package/docs/UserAPIKey.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
# UserAPIKey
|
|
2
2
|
|
|
3
|
-
UserAPIKey 代表用户的 API 密钥
|
|
3
|
+
UserAPIKey 代表用户的 API 密钥
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id UserAPIKey 的唯一标识符
|
|
10
|
-
**created_at** | **string** | created_at 创建时间戳(Unix 时间戳)
|
|
11
|
-
**updated_at** | **string** | updated_at 更新时间戳(Unix 时间戳)
|
|
12
|
-
**deleted_at** | **string** | deleted_at 软删除时间戳,0 表示未删除
|
|
13
|
-
**uid** | **string** | uid 用户 ID
|
|
14
|
-
**name** | **string** | name API Key 的唯一名称标识
|
|
15
|
-
**key_group** | **string** | key_group API Key 分组
|
|
16
|
-
**display_name** | **string** | display_name API Key 的显示名称
|
|
17
|
-
**quota_balance_total** | **string** | quota_balance_total 总配额余额,使用 DECIMAL(24,12) 精度存储
|
|
18
|
-
**quota_balance_used** | **string** | quota_balance_used 已使用配额余额,使用 DECIMAL(24,12) 精度存储
|
|
19
|
-
**balance_code** | **string** | balance_code 余额货币代码
|
|
20
|
-
**quota_mode** | **number** | quota_mode 配额模式
|
|
21
|
-
**key_status** | **string** | key_status API Key 状态
|
|
22
|
-
**expires_at** | **string** | expires_at 过期时间戳,0 表示永不过期
|
|
9
|
+
**id** | **string** | id UserAPIKey 的唯一标识符 | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | created_at 创建时间戳(Unix 时间戳) | [optional] [default to undefined]
|
|
11
|
+
**updated_at** | **string** | updated_at 更新时间戳(Unix 时间戳) | [optional] [default to undefined]
|
|
12
|
+
**deleted_at** | **string** | deleted_at 软删除时间戳,0 表示未删除 | [optional] [default to undefined]
|
|
13
|
+
**uid** | **string** | uid 用户 ID | [optional] [default to undefined]
|
|
14
|
+
**name** | **string** | name API Key 的唯一名称标识 | [optional] [default to undefined]
|
|
15
|
+
**key_group** | **string** | key_group API Key 分组 | [optional] [default to undefined]
|
|
16
|
+
**display_name** | **string** | display_name API Key 的显示名称 | [optional] [default to undefined]
|
|
17
|
+
**quota_balance_total** | **string** | quota_balance_total 总配额余额,使用 DECIMAL(24,12) 精度存储 字符串格式,例如:\"100.50\" 表示 $100.50 或 ¥100.50 | [optional] [default to undefined]
|
|
18
|
+
**quota_balance_used** | **string** | quota_balance_used 已使用配额余额,使用 DECIMAL(24,12) 精度存储 字符串格式,例如:\"25.75\" 表示已使用 $25.75 或 ¥25.75 | [optional] [default to undefined]
|
|
19
|
+
**balance_code** | **string** | balance_code 余额货币代码 USD: 美元 (US Dollar) CNY: 人民币 (Chinese Yuan) | [optional] [default to undefined]
|
|
20
|
+
**quota_mode** | **number** | quota_mode 配额模式 1: 有限配额 (Limited) 2: 无限配额 (Unlimited) | [optional] [default to undefined]
|
|
21
|
+
**key_status** | **string** | key_status API Key 状态 1: 启用 (Enabled) 2: 禁用 (Disabled) | [optional] [default to undefined]
|
|
22
|
+
**expires_at** | **string** | expires_at 过期时间戳,0 表示永不过期 | [optional] [default to undefined]
|
|
23
23
|
|
|
24
24
|
## Example
|
|
25
25
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# UserAPIKeyCreateRequest
|
|
2
2
|
|
|
3
|
-
UserAPIKeyCreateRequest 创建 UserAPIKey 的请求
|
|
3
|
+
UserAPIKeyCreateRequest 创建 UserAPIKey 的请求
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**uid** | **string** | uid 用户 ID(管理员可以指定,普通用户自动使用当前用户)
|
|
10
|
-
**name** | **string** | name API Key 的唯一名称标识
|
|
11
|
-
**key_group** | **string** | key_group API Key 分组(可选)
|
|
12
|
-
**display_name** | **string** | display_name API Key 的显示名称
|
|
13
|
-
**quota_balance_total** | **string** | quota_balance_total 总配额余额
|
|
14
|
-
**balance_code** | **string** | balance_code 余额货币代码(仅管理员可指定,默认从 user_balances 读取)
|
|
15
|
-
**quota_mode** | **number** | quota_mode 配额模式
|
|
9
|
+
**uid** | **string** | uid 用户 ID(管理员可以指定,普通用户自动使用当前用户) | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name API Key 的唯一名称标识 | [optional] [default to undefined]
|
|
11
|
+
**key_group** | **string** | key_group API Key 分组(可选) | [optional] [default to undefined]
|
|
12
|
+
**display_name** | **string** | display_name API Key 的显示名称 | [optional] [default to undefined]
|
|
13
|
+
**quota_balance_total** | **string** | quota_balance_total 总配额余额 字符串格式,使用 DECIMAL(24,12) 精度,例如:\"100.50\" | [optional] [default to undefined]
|
|
14
|
+
**balance_code** | **string** | balance_code 余额货币代码(仅管理员可指定,默认从 user_balances 读取) USD: 美元 (US Dollar) CNY: 人民币 (Chinese Yuan) | [optional] [default to undefined]
|
|
15
|
+
**quota_mode** | **number** | quota_mode 配额模式 1: 有限配额 (Limited) 2: 无限配额 (Unlimited) | [optional] [default to undefined]
|
|
16
16
|
**key_status** | **string** | key_status API Key 状态 API Key status 1: 启用 (Enabled) 2: 禁用 (Disabled) | [optional] [default to undefined]
|
|
17
|
-
**expires_at** | **string** | expires_at 过期时间戳,0 表示永不过期
|
|
17
|
+
**expires_at** | **string** | expires_at 过期时间戳,0 表示永不过期 | [optional] [default to undefined]
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# UserAPIKeyCreateResponse
|
|
2
2
|
|
|
3
|
-
UserAPIKeyCreateResponse 创建 UserAPIKey 的响应
|
|
3
|
+
UserAPIKeyCreateResponse 创建 UserAPIKey 的响应
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**code** | **string** | code 响应状态码,
|
|
10
|
-
**message** | **string** | message 响应消息
|
|
11
|
-
**data** | [**UserAPIKey**](UserAPIKey.md) | data 创建成功后返回的 UserAPIKey 信息
|
|
9
|
+
**code** | **string** | code 响应状态码,20200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**data** | [**UserAPIKey**](UserAPIKey.md) | data 创建成功后返回的 UserAPIKey 信息 | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# UserAPIKeyDeleteResponse
|
|
2
2
|
|
|
3
|
-
UserAPIKeyDeleteResponse 删除 UserAPIKey 的响应
|
|
3
|
+
UserAPIKeyDeleteResponse 删除 UserAPIKey 的响应
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**code** | **string** | code 响应状态码,
|
|
10
|
-
**message** | **string** | message 响应消息
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# UserAPIKeyGetResponse
|
|
2
2
|
|
|
3
|
-
UserAPIKeyGetResponse 获取单个 UserAPIKey 的响应
|
|
3
|
+
UserAPIKeyGetResponse 获取单个 UserAPIKey 的响应
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**code** | **string** | code 响应状态码,
|
|
10
|
-
**message** | **string** | message 响应消息
|
|
11
|
-
**data** | [**UserAPIKey**](UserAPIKey.md) | data UserAPIKey 信息
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**data** | [**UserAPIKey**](UserAPIKey.md) | data UserAPIKey 信息 | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# UserAPIKeyListResponse
|
|
2
2
|
|
|
3
|
-
UserAPIKeyListResponse 分页查询 UserAPIKey 列表的响应
|
|
3
|
+
UserAPIKeyListResponse 分页查询 UserAPIKey 列表的响应
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**code** | **string** | code 响应状态码,
|
|
10
|
-
**message** | **string** | message 响应消息
|
|
11
|
-
**list** | [**Array<UserAPIKey>**](UserAPIKey.md) | list UserAPIKey 列表
|
|
12
|
-
**total** | **string** | total 符合条件的 UserAPIKey 总数
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**list** | [**Array<UserAPIKey>**](UserAPIKey.md) | list UserAPIKey 列表 | [optional] [default to undefined]
|
|
12
|
+
**total** | **string** | total 符合条件的 UserAPIKey 总数 | [optional] [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -13,7 +13,7 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
# **userAPIKeyServiceUserAPIKeyCreate**
|
|
14
14
|
> UserAPIKeyCreateResponse userAPIKeyServiceUserAPIKeyCreate(userAPIKeyCreateRequest)
|
|
15
15
|
|
|
16
|
-
UserAPIKeyCreate 创建新的 UserAPIKey
|
|
16
|
+
UserAPIKeyCreate 创建新的 UserAPIKey 请求路径: POST /api/user/api-key/create
|
|
17
17
|
|
|
18
18
|
### Example
|
|
19
19
|
|
|
@@ -66,7 +66,7 @@ No authorization required
|
|
|
66
66
|
# **userAPIKeyServiceUserAPIKeyDelete**
|
|
67
67
|
> UserAPIKeyDeleteResponse userAPIKeyServiceUserAPIKeyDelete()
|
|
68
68
|
|
|
69
|
-
UserAPIKeyDelete 删除 UserAPIKey(软删除)
|
|
69
|
+
UserAPIKeyDelete 删除 UserAPIKey(软删除) 请求路径: POST /api/user/api-key/delete
|
|
70
70
|
|
|
71
71
|
### Example
|
|
72
72
|
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
80
|
const apiInstance = new UserAPIKeyServiceApi(configuration);
|
|
81
81
|
|
|
82
|
-
let id: string; //id 要删除的 UserAPIKey 的唯一标识符
|
|
82
|
+
let id: string; //id 要删除的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" binding:\"required\" (optional) (default to undefined)
|
|
83
83
|
|
|
84
84
|
const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyDelete(
|
|
85
85
|
id
|
|
@@ -90,7 +90,7 @@ const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyDelete(
|
|
|
90
90
|
|
|
91
91
|
|Name | Type | Description | Notes|
|
|
92
92
|
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **id** | [**string**] | id 要删除的 UserAPIKey 的唯一标识符
|
|
93
|
+
| **id** | [**string**] | id 要删除的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" binding:\"required\" | (optional) defaults to undefined|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
### Return type
|
|
@@ -118,7 +118,7 @@ No authorization required
|
|
|
118
118
|
# **userAPIKeyServiceUserAPIKeyGet**
|
|
119
119
|
> UserAPIKeyGetResponse userAPIKeyServiceUserAPIKeyGet()
|
|
120
120
|
|
|
121
|
-
UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey
|
|
121
|
+
UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
122
122
|
|
|
123
123
|
### Example
|
|
124
124
|
|
|
@@ -131,8 +131,8 @@ import {
|
|
|
131
131
|
const configuration = new Configuration();
|
|
132
132
|
const apiInstance = new UserAPIKeyServiceApi(configuration);
|
|
133
133
|
|
|
134
|
-
let id: string; //id 要获取的 UserAPIKey 的唯一标识符
|
|
135
|
-
let name: string; //name 要获取的 UserAPIKey 的名称
|
|
134
|
+
let id: string; //id 要获取的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" (optional) (default to undefined)
|
|
135
|
+
let name: string; //name 要获取的 UserAPIKey 的名称 如果同时提供 id 和 name,以 id 为准 @gotags: form:\"name\" (optional) (default to undefined)
|
|
136
136
|
|
|
137
137
|
const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyGet(
|
|
138
138
|
id,
|
|
@@ -144,8 +144,8 @@ const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyGet(
|
|
|
144
144
|
|
|
145
145
|
|Name | Type | Description | Notes|
|
|
146
146
|
|------------- | ------------- | ------------- | -------------|
|
|
147
|
-
| **id** | [**string**] | id 要获取的 UserAPIKey 的唯一标识符
|
|
148
|
-
| **name** | [**string**] | name 要获取的 UserAPIKey 的名称
|
|
147
|
+
| **id** | [**string**] | id 要获取的 UserAPIKey 的唯一标识符 @gotags: form:\"id\" | (optional) defaults to undefined|
|
|
148
|
+
| **name** | [**string**] | name 要获取的 UserAPIKey 的名称 如果同时提供 id 和 name,以 id 为准 @gotags: form:\"name\" | (optional) defaults to undefined|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
### Return type
|
|
@@ -173,7 +173,7 @@ No authorization required
|
|
|
173
173
|
# **userAPIKeyServiceUserAPIKeyList**
|
|
174
174
|
> UserAPIKeyListResponse userAPIKeyServiceUserAPIKeyList()
|
|
175
175
|
|
|
176
|
-
UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤
|
|
176
|
+
UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
177
177
|
|
|
178
178
|
### Example
|
|
179
179
|
|
|
@@ -186,11 +186,11 @@ import {
|
|
|
186
186
|
const configuration = new Configuration();
|
|
187
187
|
const apiInstance = new UserAPIKeyServiceApi(configuration);
|
|
188
188
|
|
|
189
|
-
let page: number; //page 页码,从 1 开始
|
|
190
|
-
let pageSize: number; //page_size 每页数量
|
|
191
|
-
let uid: string; //uid 按用户 ID 过滤(可选,管理员可用)
|
|
192
|
-
let keyStatus: string; //key_status 按状态过滤(可选)
|
|
193
|
-
let keyGroup: string; //key_group 按分组过滤(可选)
|
|
189
|
+
let page: number; //page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
190
|
+
let pageSize: number; //page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
|
|
191
|
+
let uid: string; //uid 按用户 ID 过滤(可选,管理员可用) 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\" (optional) (default to undefined)
|
|
192
|
+
let keyStatus: string; //key_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key @gotags: form:\"key_status\" (optional) (default to undefined)
|
|
193
|
+
let keyGroup: string; //key_group 按分组过滤(可选) @gotags: form:\"key_group\" (optional) (default to undefined)
|
|
194
194
|
|
|
195
195
|
const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyList(
|
|
196
196
|
page,
|
|
@@ -205,11 +205,11 @@ const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyList(
|
|
|
205
205
|
|
|
206
206
|
|Name | Type | Description | Notes|
|
|
207
207
|
|------------- | ------------- | ------------- | -------------|
|
|
208
|
-
| **page** | [**number**] | page 页码,从 1 开始
|
|
209
|
-
| **pageSize** | [**number**] | page_size 每页数量
|
|
210
|
-
| **uid** | [**string**] | uid 按用户 ID 过滤(可选,管理员可用)
|
|
211
|
-
| **keyStatus** | [**string**] | key_status 按状态过滤(可选)
|
|
212
|
-
| **keyGroup** | [**string**] | key_group 按分组过滤(可选)
|
|
208
|
+
| **page** | [**number**] | page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
209
|
+
| **pageSize** | [**number**] | page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
210
|
+
| **uid** | [**string**] | uid 按用户 ID 过滤(可选,管理员可用) 0: return API keys from all users (admin only) > 0: return API keys from specific user only @gotags: form:\"uid\" | (optional) defaults to undefined|
|
|
211
|
+
| **keyStatus** | [**string**] | key_status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回启用的 API Key 2: 仅返回禁用的 API Key @gotags: form:\"key_status\" | (optional) defaults to undefined|
|
|
212
|
+
| **keyGroup** | [**string**] | key_group 按分组过滤(可选) @gotags: form:\"key_group\" | (optional) defaults to undefined|
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
### Return type
|
|
@@ -237,7 +237,7 @@ No authorization required
|
|
|
237
237
|
# **userAPIKeyServiceUserAPIKeyUpdate**
|
|
238
238
|
> UserAPIKeyUpdateResponse userAPIKeyServiceUserAPIKeyUpdate(userAPIKeyUpdateRequest)
|
|
239
239
|
|
|
240
|
-
UserAPIKeyUpdate 更新现有的 UserAPIKey
|
|
240
|
+
UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
241
241
|
|
|
242
242
|
### Example
|
|
243
243
|
|
|
@@ -6,9 +6,9 @@ UserAPIKeyUpdateResponse 更新 UserAPIKey 的响应 Response message for UserA
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**code** | **string** | code 响应状态码,
|
|
10
|
-
**message** | **string** | message 响应消息
|
|
11
|
-
**data** | [**UserAPIKey**](UserAPIKey.md) | data 更新后的 UserAPIKey 信息
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**data** | [**UserAPIKey**](UserAPIKey.md) | data 更新后的 UserAPIKey 信息 | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
9
|
-
**message** | **string** | message 响应消息
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**data** | [**UserBalance**](UserBalance.md) | data 更新后的 UserBalance 信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
9
|
-
**message** | **string** | message 响应消息
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**data** | [**UserBalance**](UserBalance.md) | data 更新后的 UserBalance 信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
9
|
-
**message** | **string** | message 响应消息
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**list** | [**Array<UserBalance>**](UserBalance.md) | list UserBalance 列表 | [optional] [default to undefined]
|
|
11
11
|
**total** | **string** | total 符合条件的 UserBalance 总数 | [optional] [default to undefined]
|
|
12
12
|
|
|
@@ -182,8 +182,8 @@ import {
|
|
|
182
182
|
const configuration = new Configuration();
|
|
183
183
|
const apiInstance = new UserBalanceServiceApi(configuration);
|
|
184
184
|
|
|
185
|
-
let page: number; //page 页码,从 1 开始
|
|
186
|
-
let pageSize: number; //page_size 每页数量
|
|
185
|
+
let page: number; //page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
186
|
+
let pageSize: number; //page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
|
|
187
187
|
let uidList: Array<string>; //uid_list 用户 ID 列表,空表示不按用户 ID 过滤 (optional) (default to undefined)
|
|
188
188
|
|
|
189
189
|
const { status, data } = await apiInstance.userBalanceServiceUserBalanceList(
|
|
@@ -197,8 +197,8 @@ const { status, data } = await apiInstance.userBalanceServiceUserBalanceList(
|
|
|
197
197
|
|
|
198
198
|
|Name | Type | Description | Notes|
|
|
199
199
|
|------------- | ------------- | ------------- | -------------|
|
|
200
|
-
| **page** | [**number**] | page 页码,从 1 开始
|
|
201
|
-
| **pageSize** | [**number**] | page_size 每页数量
|
|
200
|
+
| **page** | [**number**] | page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
201
|
+
| **pageSize** | [**number**] | page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
202
202
|
| **uidList** | **Array<string>** | uid_list 用户 ID 列表,空表示不按用户 ID 过滤 | (optional) defaults to undefined|
|
|
203
203
|
|
|
204
204
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
**data** | [**Array<UserLabelItem>**](UserLabelItem.md) | | [optional] [default to undefined]
|
|
11
11
|
**total** | **string** | | [optional] [default to undefined]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -4,11 +4,127 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**userModelServiceFrontendModels**](#usermodelservicefrontendmodels) | **GET** /v1/frontend/models | |
|
|
8
|
+
|[**userModelServiceFrontendProviders**](#usermodelservicefrontendproviders) | **GET** /v1/frontend/providers | |
|
|
9
|
+
|[**userModelServiceModelList**](#usermodelservicemodellist) | **GET** /v1/models | |
|
|
8
10
|
|
|
9
|
-
# **
|
|
10
|
-
>
|
|
11
|
+
# **userModelServiceFrontendModels**
|
|
12
|
+
> FrontendModelsResponse userModelServiceFrontendModels()
|
|
11
13
|
|
|
14
|
+
FrontendModels 获取前端模型列表 NOTE: 暂时不需要鉴权
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
UserModelServiceApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@cherryin/api-client';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UserModelServiceApi(configuration);
|
|
26
|
+
|
|
27
|
+
let providerId: string; //provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\" (optional) (default to undefined)
|
|
28
|
+
let limit: number; //limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" (optional) (default to undefined)
|
|
29
|
+
let offset: number; //offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" (optional) (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.userModelServiceFrontendModels(
|
|
32
|
+
providerId,
|
|
33
|
+
limit,
|
|
34
|
+
offset
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **providerId** | [**string**] | provider_id 可选的供应商 ID 过滤 @gotags: form:\"provider_id\" | (optional) defaults to undefined|
|
|
43
|
+
| **limit** | [**number**] | limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" | (optional) defaults to undefined|
|
|
44
|
+
| **offset** | [**number**] | offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" | (optional) defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**FrontendModelsResponse**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
No authorization required
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: Not defined
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | OK | - |
|
|
65
|
+
|**0** | Default error response | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **userModelServiceFrontendProviders**
|
|
70
|
+
> FrontendProvidersResponse userModelServiceFrontendProviders()
|
|
71
|
+
|
|
72
|
+
FrontendProviders 获取前端供应商列表 NOTE: 暂时不需要鉴权
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
UserModelServiceApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@cherryin/api-client';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new UserModelServiceApi(configuration);
|
|
84
|
+
|
|
85
|
+
let limit: number; //limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" (optional) (default to undefined)
|
|
86
|
+
let offset: number; //offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.userModelServiceFrontendProviders(
|
|
89
|
+
limit,
|
|
90
|
+
offset
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **limit** | [**number**] | limit 每页数量,0 或不传表示返回全部(默认不分页) Page size, 0 or not set means return all (no pagination by default) @gotags: form:\"limit\" | (optional) defaults to undefined|
|
|
99
|
+
| **offset** | [**number**] | offset 偏移量,配合 limit 使用 Offset, used with limit @gotags: form:\"offset\" | (optional) defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**FrontendProvidersResponse**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
No authorization required
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | OK | - |
|
|
120
|
+
|**0** | Default error response | - |
|
|
121
|
+
|
|
122
|
+
[[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)
|
|
123
|
+
|
|
124
|
+
# **userModelServiceModelList**
|
|
125
|
+
> ModelListResponse userModelServiceModelList()
|
|
126
|
+
|
|
127
|
+
ModelList OpenAI 通用模型列表 NOTE: 暂时不需要鉴权
|
|
12
128
|
|
|
13
129
|
### Example
|
|
14
130
|
|
|
@@ -21,18 +137,16 @@ import {
|
|
|
21
137
|
const configuration = new Configuration();
|
|
22
138
|
const apiInstance = new UserModelServiceApi(configuration);
|
|
23
139
|
|
|
24
|
-
let currencyCode: string; //货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" (optional) (default to undefined)
|
|
25
140
|
let beforeId: string; //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\" (optional) (default to undefined)
|
|
26
141
|
let afterId: string; //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\" (optional) (default to undefined)
|
|
27
142
|
let limit: string; //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\" (optional) (default to undefined)
|
|
28
|
-
let
|
|
143
|
+
let pricingCode: string; //model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\" (optional) (default to undefined)
|
|
29
144
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
currencyCode,
|
|
145
|
+
const { status, data } = await apiInstance.userModelServiceModelList(
|
|
32
146
|
beforeId,
|
|
33
147
|
afterId,
|
|
34
148
|
limit,
|
|
35
|
-
|
|
149
|
+
pricingCode
|
|
36
150
|
);
|
|
37
151
|
```
|
|
38
152
|
|
|
@@ -40,16 +154,15 @@ const { status, data } = await apiInstance.userModelServiceUserModelList(
|
|
|
40
154
|
|
|
41
155
|
|Name | Type | Description | Notes|
|
|
42
156
|
|------------- | ------------- | ------------- | -------------|
|
|
43
|
-
| **currencyCode** | [**string**] | 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" | (optional) defaults to undefined|
|
|
44
157
|
| **beforeId** | [**string**] | 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\" | (optional) defaults to undefined|
|
|
45
158
|
| **afterId** | [**string**] | 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\" | (optional) defaults to undefined|
|
|
46
159
|
| **limit** | [**string**] | 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\" | (optional) defaults to undefined|
|
|
47
|
-
| **
|
|
160
|
+
| **pricingCode** | [**string**] | model pricing currency code. eg. USD/CNY @gotags: form:\"pricing_code\" | (optional) defaults to undefined|
|
|
48
161
|
|
|
49
162
|
|
|
50
163
|
### Return type
|
|
51
164
|
|
|
52
|
-
**
|
|
165
|
+
**ModelListResponse**
|
|
53
166
|
|
|
54
167
|
### Authorization
|
|
55
168
|
|