@cherryin/api-client 0.0.18 → 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 -42
- package/README.md +70 -64
- package/api.ts +3089 -2216
- package/dist/api.d.ts +2068 -1343
- package/dist/api.js +723 -470
- package/dist/esm/api.d.ts +2068 -1343
- package/dist/esm/api.js +723 -470
- 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 +26 -27
- 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/docs/UserAPIKeyDeleteRequest.md +0 -21
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# FrontendProvidersResponse
|
|
2
|
+
|
|
3
|
+
FrontendProvidersResponse 前端供应商列表响应
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**code** | **string** | code 响应状态码,200 表示成功 | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
11
|
+
**data** | [**Array<FrontendProviderInfo>**](FrontendProviderInfo.md) | data 供应商列表 | [optional] [default to undefined]
|
|
12
|
+
**total** | **string** | total 总数量(分页时返回) | [optional] [default to undefined]
|
|
13
|
+
**has_more** | **boolean** | has_more 是否还有更多数据 | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { FrontendProvidersResponse } from '@cherryin/api-client';
|
|
19
|
+
|
|
20
|
+
const instance: FrontendProvidersResponse = {
|
|
21
|
+
code,
|
|
22
|
+
message,
|
|
23
|
+
data,
|
|
24
|
+
total,
|
|
25
|
+
has_more,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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
|
+
# FrontendSearchContextCost
|
|
2
|
+
|
|
3
|
+
FrontendSearchContextCost 搜索上下文成本
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**search_context_size_high** | **number** | search_context_size_high 高搜索上下文大小成本 | [optional] [default to undefined]
|
|
10
|
+
**search_context_size_low** | **number** | search_context_size_low 低搜索上下文大小成本 | [optional] [default to undefined]
|
|
11
|
+
**search_context_size_medium** | **number** | search_context_size_medium 中搜索上下文大小成本 | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { FrontendSearchContextCost } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: FrontendSearchContextCost = {
|
|
19
|
+
search_context_size_high,
|
|
20
|
+
search_context_size_low,
|
|
21
|
+
search_context_size_medium,
|
|
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)
|
package/docs/ImagePricing.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# ImagePricing
|
|
2
2
|
|
|
3
|
-
ImagePricing 图片计费
|
|
3
|
+
ImagePricing 图片计费
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 价格配置ID
|
|
10
|
-
**mode** | **string** | mode 计费模式: \"per_item\", \"per_token\", \"hybrid\"
|
|
11
|
-
**per_image** | **string** | per_image 每张图片费用
|
|
12
|
-
**per_token** | **string** | per_token 每Token价格
|
|
13
|
-
**resolution_multiplier** | **{ [key: string]: string; }** | resolution_multiplier 分辨率倍数(key: 分辨率如\"1024x1024\", value: 倍数)
|
|
14
|
-
**extra** | **{ [key: string]: string; }** | extra 扩展计算
|
|
9
|
+
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
+
**mode** | **string** | mode 计费模式: \"per_item\", \"per_token\", \"hybrid\" | [optional] [default to undefined]
|
|
11
|
+
**per_image** | **string** | per_image 每张图片费用 | [optional] [default to undefined]
|
|
12
|
+
**per_token** | **string** | per_token 每Token价格 | [optional] [default to undefined]
|
|
13
|
+
**resolution_multiplier** | **{ [key: string]: string; }** | resolution_multiplier 分辨率倍数(key: 分辨率如\"1024x1024\", value: 倍数) | [optional] [default to undefined]
|
|
14
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展计算 | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -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** | [**Label**](Label.md) | 创建的 Discount 信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -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
|
|
@@ -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<Label>**](Label.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
|
**data** | [**Label**](Label.md) | 创建的 Discount 信息 | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ModelCapabilities
|
|
2
|
+
|
|
3
|
+
ModelCapabilities 模型能力标记
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**supported_endpoints** | **{ [key: string]: string; }** | supported_endpoints 支持的端点 API 列表 | [optional] [default to undefined]
|
|
10
|
+
**supported_regions** | **Array<string>** | supported_regions 支持的地区 | [optional] [default to undefined]
|
|
11
|
+
**supported_resolutions** | **Array<string>** | supported_resolutions 支持的输出图片分辨率 | [optional] [default to undefined]
|
|
12
|
+
**supports_audio_input** | **boolean** | supports_audio_input 支持音频输入 | [optional] [default to undefined]
|
|
13
|
+
**supports_vision** | **boolean** | supports_vision 支持视觉 | [optional] [default to undefined]
|
|
14
|
+
**supports_pdf_input** | **boolean** | supports_pdf_input 支持 PDF 输入 | [optional] [default to undefined]
|
|
15
|
+
**supports_video_input** | **boolean** | supports_video_input 支持视频输入 | [optional] [default to undefined]
|
|
16
|
+
**supports_audio_output** | **boolean** | supports_audio_output 支持音频输出 | [optional] [default to undefined]
|
|
17
|
+
**supports_tool_call** | **boolean** | supports_tool_call 支持 ToolCall (Anthropic/Google) | [optional] [default to undefined]
|
|
18
|
+
**supports_function_calling** | **boolean** | supports_function_calling 支持 FunctionCalling (专指 OpenAI) | [optional] [default to undefined]
|
|
19
|
+
**supports_parallel_function_calling** | **boolean** | supports_parallel_function_calling 支持并行 FunctionCalling | [optional] [default to undefined]
|
|
20
|
+
**supports_prompt_caching** | **boolean** | supports_prompt_caching 支持提示词缓存 | [optional] [default to undefined]
|
|
21
|
+
**supports_reasoning** | **boolean** | supports_reasoning 支持推理 | [optional] [default to undefined]
|
|
22
|
+
**supports_response_schema** | **boolean** | supports_response_schema 支持响应结构化 | [optional] [default to undefined]
|
|
23
|
+
**supports_system_messages** | **boolean** | supports_system_messages 支持设置系统提示词 | [optional] [default to undefined]
|
|
24
|
+
**supports_web_search** | **boolean** | supports_web_search 支持 WebSearch | [optional] [default to undefined]
|
|
25
|
+
**supports_assistant_prefill** | **boolean** | supports_assistant_prefill 支持助手预填 | [optional] [default to undefined]
|
|
26
|
+
**supports_tool_choice** | **boolean** | supports_tool_choice 支持 ToolChoice | [optional] [default to undefined]
|
|
27
|
+
**supports_computer_use** | **boolean** | supports_computer_use 支持 computer use | [optional] [default to undefined]
|
|
28
|
+
**supports_native_streaming** | **boolean** | supports_native_streaming 支持 OpenAI Native Streaming | [optional] [default to undefined]
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { ModelCapabilities } from '@cherryin/api-client';
|
|
34
|
+
|
|
35
|
+
const instance: ModelCapabilities = {
|
|
36
|
+
supported_endpoints,
|
|
37
|
+
supported_regions,
|
|
38
|
+
supported_resolutions,
|
|
39
|
+
supports_audio_input,
|
|
40
|
+
supports_vision,
|
|
41
|
+
supports_pdf_input,
|
|
42
|
+
supports_video_input,
|
|
43
|
+
supports_audio_output,
|
|
44
|
+
supports_tool_call,
|
|
45
|
+
supports_function_calling,
|
|
46
|
+
supports_parallel_function_calling,
|
|
47
|
+
supports_prompt_caching,
|
|
48
|
+
supports_reasoning,
|
|
49
|
+
supports_response_schema,
|
|
50
|
+
supports_system_messages,
|
|
51
|
+
supports_web_search,
|
|
52
|
+
supports_assistant_prefill,
|
|
53
|
+
supports_tool_choice,
|
|
54
|
+
supports_computer_use,
|
|
55
|
+
supports_native_streaming,
|
|
56
|
+
};
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[[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,41 @@
|
|
|
1
|
+
# ModelLimits
|
|
2
|
+
|
|
3
|
+
ModelLimits 模型限制
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**rpm** | **number** | rpm 每分钟请求数 | [optional] [default to undefined]
|
|
10
|
+
**tpm** | **number** | tpm 每分钟 token 数 | [optional] [default to undefined]
|
|
11
|
+
**max_tokens** | **number** | max_tokens 最大输出 token 数(老定义) | [optional] [default to undefined]
|
|
12
|
+
**max_input_tokens** | **number** | max_input_tokens 最大输入 token 数 | [optional] [default to undefined]
|
|
13
|
+
**max_output_tokens** | **number** | max_output_tokens 最大输出 token 数 | [optional] [default to undefined]
|
|
14
|
+
**max_audio_length_hours** | **number** | max_audio_length_hours 最大音频时长(小时) | [optional] [default to undefined]
|
|
15
|
+
**max_audio_per_prompt** | **number** | max_audio_per_prompt 每次请求最大音频数 | [optional] [default to undefined]
|
|
16
|
+
**max_images_per_prompt** | **number** | max_images_per_prompt 每次请求最大图片数 | [optional] [default to undefined]
|
|
17
|
+
**max_pdf_size_mb** | **number** | max_pdf_size_mb 最大 PDF 大小(MB) | [optional] [default to undefined]
|
|
18
|
+
**max_video_length** | **number** | max_video_length 最大视频时长 | [optional] [default to undefined]
|
|
19
|
+
**max_videos_per_prompt** | **number** | max_videos_per_prompt 每次请求最大视频数 | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ModelLimits } from '@cherryin/api-client';
|
|
25
|
+
|
|
26
|
+
const instance: ModelLimits = {
|
|
27
|
+
rpm,
|
|
28
|
+
tpm,
|
|
29
|
+
max_tokens,
|
|
30
|
+
max_input_tokens,
|
|
31
|
+
max_output_tokens,
|
|
32
|
+
max_audio_length_hours,
|
|
33
|
+
max_audio_per_prompt,
|
|
34
|
+
max_images_per_prompt,
|
|
35
|
+
max_pdf_size_mb,
|
|
36
|
+
max_video_length,
|
|
37
|
+
max_videos_per_prompt,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ModelListResponse
|
|
2
2
|
|
|
3
|
-
UserModelListResponse 模型列表响应(符合 OpenAI API 格式) Model list response (OpenAI API compatible format)
|
|
4
3
|
|
|
5
4
|
## Properties
|
|
6
5
|
|
|
7
6
|
Name | Type | Description | Notes
|
|
8
7
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**code** | **string** | code 响应状态码,
|
|
8
|
+
**code** | **string** | code 响应状态码,200 表示成功 Response code, 200 indicates success | [optional] [default to undefined]
|
|
10
9
|
**object** | **string** | object 对象类型,固定为 \"list\"(OpenAI API 格式) Object type, always \"list\" (OpenAI API format) | [optional] [default to undefined]
|
|
11
10
|
**data** | [**Array<FrontAIModel>**](FrontAIModel.md) | models FrontAIModel 列表,对应 OpenAI API 的 \"data\" 字段 List of FrontAIModel objects, maps to OpenAI API \"data\" field | [optional] [default to undefined]
|
|
12
11
|
**model_apis** | [**Array<VersionedAPISchema>**](VersionedAPISchema.md) | apis API schema 列表 NOTE: FrontAIModel.AIModelMeta.endpoints 里面只会包含 endpoint ID,不包含完整的 schema 信息 可以通过此字段获取完整的 schema 列表 | [optional] [default to undefined]
|
|
13
|
-
**
|
|
14
|
-
**
|
|
15
|
-
**
|
|
12
|
+
**first_id** | **string** | 分页信息 Pagination information | [optional] [default to undefined]
|
|
13
|
+
**last_id** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**has_more** | **boolean** | | [optional] [default to undefined]
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|
|
19
18
|
```typescript
|
|
20
|
-
import {
|
|
19
|
+
import { ModelListResponse } from '@cherryin/api-client';
|
|
21
20
|
|
|
22
|
-
const instance:
|
|
21
|
+
const instance: ModelListResponse = {
|
|
23
22
|
code,
|
|
24
23
|
object,
|
|
25
24
|
data,
|
|
26
25
|
model_apis,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
first_id,
|
|
27
|
+
last_id,
|
|
28
|
+
has_more,
|
|
30
29
|
};
|
|
31
30
|
```
|
|
32
31
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ModelModalities
|
|
2
|
+
|
|
3
|
+
ModelModalities 模型模态信息
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**input** | **Array<string>** | input 输入模态列表 | [optional] [default to undefined]
|
|
10
|
+
**output** | **Array<string>** | output 输出模态列表 | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ModelModalities } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: ModelModalities = {
|
|
18
|
+
input,
|
|
19
|
+
output,
|
|
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)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# MultimodalPricing
|
|
2
2
|
|
|
3
|
-
MultimodalPricing 多模态计费
|
|
3
|
+
MultimodalPricing 多模态计费
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**image** | [**ImagePricing**](ImagePricing.md) | image 图片计费
|
|
10
|
-
**audio** | [**AudioPricing**](AudioPricing.md) | audio 音频计费
|
|
11
|
-
**video** | [**VideoPricing**](VideoPricing.md) | video 视频计费
|
|
9
|
+
**image** | [**ImagePricing**](ImagePricing.md) | image 图片计费 | [optional] [default to undefined]
|
|
10
|
+
**audio** | [**AudioPricing**](AudioPricing.md) | audio 音频计费 | [optional] [default to undefined]
|
|
11
|
+
**video** | [**VideoPricing**](VideoPricing.md) | video 视频计费 | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# PricingConditions
|
|
2
2
|
|
|
3
|
-
PricingConditions 价格生效条件
|
|
3
|
+
PricingConditions 价格生效条件
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**user_tiers** | **Array<string>** | user_tiers 用户层级:standard, premium, enterprise
|
|
10
|
-
**api_versions** | **Array<string>** | api_versions API版本:v1, v2
|
|
11
|
-
**regions** | **Array<string>** | regions 区域:us, eu, asia
|
|
12
|
-
**min_balance** | **string** | min_balance 最低余额要求
|
|
13
|
-
**max_daily_usage** | **string** | max_daily_usage 每日使用上限
|
|
14
|
-
**extra** | **{ [key: string]: string; }** | extra 扩展条件
|
|
9
|
+
**user_tiers** | **Array<string>** | user_tiers 用户层级:standard, premium, enterprise | [optional] [default to undefined]
|
|
10
|
+
**api_versions** | **Array<string>** | api_versions API版本:v1, v2 | [optional] [default to undefined]
|
|
11
|
+
**regions** | **Array<string>** | regions 区域:us, eu, asia | [optional] [default to undefined]
|
|
12
|
+
**min_balance** | **string** | min_balance 最低余额要求 | [optional] [default to undefined]
|
|
13
|
+
**max_daily_usage** | **string** | max_daily_usage 每日使用上限 | [optional] [default to undefined]
|
|
14
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展条件 | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
package/docs/PricingRules.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# PricingRules
|
|
2
2
|
|
|
3
|
-
PricingRules 价格规则配置
|
|
3
|
+
PricingRules 价格规则配置
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**text_token_pricing** | [**TextTokenPricing**](TextTokenPricing.md) | text_token_pricing Text Token计费规则
|
|
10
|
-
**request_pricing** | [**RequestPricing**](RequestPricing.md) | request_pricing 请求级别计费
|
|
11
|
-
**multimodal_pricing** | [**MultimodalPricing**](MultimodalPricing.md) | multimodal_pricing 多模态计费
|
|
12
|
-
**feature_cost_pricing** | [**Array<FeatureCostPricing>**](FeatureCostPricing.md) | feature_cost_pricing 特殊功能计费(新版)
|
|
13
|
-
**extra** | **{ [key: string]: string; }** | extra 扩展字段,支持自定义规则
|
|
9
|
+
**text_token_pricing** | [**TextTokenPricing**](TextTokenPricing.md) | text_token_pricing Text Token计费规则 | [optional] [default to undefined]
|
|
10
|
+
**request_pricing** | [**RequestPricing**](RequestPricing.md) | request_pricing 请求级别计费 | [optional] [default to undefined]
|
|
11
|
+
**multimodal_pricing** | [**MultimodalPricing**](MultimodalPricing.md) | multimodal_pricing 多模态计费 | [optional] [default to undefined]
|
|
12
|
+
**feature_cost_pricing** | [**Array<FeatureCostPricing>**](FeatureCostPricing.md) | feature_cost_pricing 特殊功能计费(新版) | [optional] [default to undefined]
|
|
13
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展字段,支持自定义规则 | [optional] [default to undefined]
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ProviderAWSAuth
|
|
2
2
|
|
|
3
|
+
ProviderAWSAuth AWS credentials
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
@@ -12,9 +13,9 @@ Name | Type | Description | Notes
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
14
15
|
```typescript
|
|
15
|
-
import {
|
|
16
|
+
import { ProviderAWSAuth } from '@cherryin/api-client';
|
|
16
17
|
|
|
17
|
-
const instance:
|
|
18
|
+
const instance: ProviderAWSAuth = {
|
|
18
19
|
region,
|
|
19
20
|
ak,
|
|
20
21
|
sk,
|