@cherryin/api-client 0.0.20 → 0.1.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 +102 -235
- package/README.md +155 -342
- package/api.ts +3375 -9798
- package/dist/api.d.ts +2595 -6538
- package/dist/api.js +1630 -5652
- package/dist/esm/api.d.ts +2595 -6538
- package/dist/esm/api.js +1609 -5611
- package/docs/AIModel.md +45 -0
- package/docs/AIModelAdminServiceApi.md +90 -101
- package/docs/AIModelArchitecture.md +25 -0
- package/docs/{AdminAIModelCheckConnectionResponse.md → AIModelCheckConnectionResponse.md} +4 -4
- package/docs/{AdminAIModelCheckItem.md → AIModelCheckItem.md} +3 -3
- package/docs/{AdminAIModelCheckResult.md → AIModelCheckResult.md} +5 -5
- package/docs/AIModelCreateRequest.md +35 -0
- package/docs/{AdminAIModelCreateResponse.md → AIModelCreateResponse.md} +5 -5
- package/docs/AIModelDeleteRequest.md +21 -0
- package/docs/{AdminProviderModelDeleteResponse.md → AIModelDeleteResponse.md} +4 -4
- package/docs/AIModelDisableRequest.md +21 -0
- package/docs/{AdminAIModelPublishResponse.md → AIModelDisableResponse.md} +5 -5
- package/docs/{AdminAIModelDiscountConfig.md → AIModelDiscountConfig.md} +4 -4
- package/docs/{AdminAIModelGetResponse.md → AIModelGetResponse.md} +5 -5
- package/docs/{AdminAIModelListResponse.md → AIModelListResponse.md} +5 -5
- package/docs/AIModelMeta.md +25 -0
- package/docs/AIModelPricingConfig.md +10 -10
- package/docs/AIModelProviderConfigItem.md +29 -0
- package/docs/AIModelPublishRequest.md +21 -0
- package/docs/{AdminAIModelUpdateResponse.md → AIModelPublishResponse.md} +5 -5
- package/docs/AIModelUpdateRequest.md +37 -0
- package/docs/{AdminProviderGetResponse.md → AIModelUpdateResponse.md} +5 -5
- package/docs/{ProviderAWSAuth.md → AWSAuth.md} +3 -4
- package/docs/AudioPricing.md +8 -8
- package/docs/Auth2Account.md +33 -0
- package/docs/{AuthAdminUser.md → Auth2Admin.md} +7 -7
- package/docs/Auth2AdminServiceApi.md +469 -0
- package/docs/Auth2AdminSession.md +35 -0
- package/docs/{AuthIdToken.md → Auth2IdToken.md} +3 -3
- package/docs/Auth2Session.md +35 -0
- package/docs/Auth2User.md +33 -0
- package/docs/Auth2UserServiceApi.md +1261 -0
- package/docs/{PassportAuthAdminChangePasswordRequest.md → AuthAdminChangePasswordRequest.md} +3 -3
- package/docs/{PassportAuthEnterpriseChangePasswordResponse.md → AuthAdminChangePasswordResponse.md} +4 -4
- package/docs/{PassportAuthEnterpriseRefreshTokenResponse.md → AuthAdminGetSessionResponse.md} +6 -4
- package/docs/{PassportAuthListSessionsResponse.md → AuthAdminListSessionsResponse.md} +4 -4
- package/docs/{PassportAuthAdminUserDisableResponse.md → AuthAdminRevokeOtherSessionsResponse.md} +5 -3
- package/docs/{PassportAdminTokenAuthRequest.md → AuthAdminRevokeSessionRequest.md} +3 -3
- package/docs/{PassportAuthUserDeleteResponse.md → AuthAdminRevokeSessionResponse.md} +5 -3
- package/docs/{PassportAuthUserSignOutResponse.md → AuthAdminRevokeSessionsResponse.md} +5 -3
- package/docs/{PassportAdminSignInEmailRequest.md → AuthAdminSignInEmailRequest.md} +5 -7
- package/docs/{PassportAuthAdminUserModifyPermissionResponse.md → AuthAdminSignInEmailResponse.md} +6 -4
- package/docs/{PassportAuthRevokeOtherSessionsResponse.md → AuthAdminSignOutResponse.md} +3 -3
- package/docs/{PassportAuthAdminUpdateInfoRequest.md → AuthAdminUpdateUserRequest.md} +5 -5
- package/docs/{PassportUserInfoGetResponse.md → AuthAdminUpdateUserResponse.md} +5 -5
- package/docs/{PassportAuthUserChangeEmailRequest.md → AuthChangeEmailRequest.md} +3 -5
- package/docs/{PassportAuthAdminUpdateInfoResponse.md → AuthChangeEmailResponse.md} +6 -4
- package/docs/{PassportAuthEnterpriseChangePasswordRequest.md → AuthChangePasswordRequest.md} +3 -3
- package/docs/{PassportAuthAdminGetInfoResponse.md → AuthChangePasswordResponse.md} +6 -4
- package/docs/{PassportAuthRevokeSessionRequest.md → AuthDeleteUserRequest.md} +7 -3
- package/docs/{PassportAuthAdminRevokeOtherSessionsResponse.md → AuthDeleteUserResponse.md} +5 -3
- package/docs/{PassportAuthSocialRefreshTokenRequest.md → AuthGetAccessTokenRequest.md} +3 -3
- package/docs/{PassportAuthSocialRefreshTokenResponse.md → AuthGetAccessTokenResponse.md} +3 -3
- package/docs/AuthGetAccountInfoResponse.md +24 -0
- package/docs/{PassportAuthEnterpriseGetSessionResponse.md → AuthGetSessionResponse.md} +6 -4
- package/docs/{PassportAuthLinkSocialRequest.md → AuthLinkSocialRequest.md} +4 -6
- package/docs/{PassportAuthLinkSocialResponse.md → AuthLinkSocialResponse.md} +5 -3
- package/docs/{PassportAuthEnterpriseRevokeSessionsResponse.md → AuthListAccountsResponse.md} +5 -3
- package/docs/AuthListSessionsResponse.md +24 -0
- package/docs/{PassportEnterpriseSignUpEmailResponse.md → AuthOAuth2CallbackResponse.md} +10 -8
- package/docs/{PassportAuthSocialGetAccessTokenRequest.md → AuthRefreshTokenRequest.md} +3 -3
- package/docs/{PassportAuthSocialGetAccessTokenResponse.md → AuthRefreshTokenResponse.md} +3 -3
- package/docs/AuthRequestPasswordResetRequest.md +22 -0
- package/docs/{PassportAuthAdminSignOutResponse.md → AuthRequestPasswordResetResponse.md} +5 -3
- package/docs/{PassportAuthEnterpriseRevokeSessionRequest.md → AuthResetPasswordRequest.md} +5 -3
- package/docs/{PassportAuthAdminUserModifyInfoResponse.md → AuthResetPasswordResponse.md} +5 -5
- package/docs/AuthRevokeOtherSessionsResponse.md +24 -0
- package/docs/{PassportUserTokenAuthRequest.md → AuthRevokeSessionRequest.md} +3 -3
- package/docs/{PassportAdminSendVerificationEmailResponse.md → AuthRevokeSessionResponse.md} +5 -3
- package/docs/{PassportAuthAdminPassportDisableResponse.md → AuthRevokeSessionsResponse.md} +5 -3
- package/docs/{PassportAuthEnterpriseVerifyEmailRequest.md → AuthSendVerificationEmailRequest.md} +3 -5
- package/docs/{PassportAuthResetPasswordResponse.md → AuthSendVerificationEmailResponse.md} +5 -3
- package/docs/{PassportAuthDeleteAllRequest.md → AuthSignInEmailRequest.md} +7 -9
- package/docs/{PassportUserPasswordResetResponse.md → AuthSignInEmailResponse.md} +9 -5
- package/docs/{PassportUserSignInSocialRequest.md → AuthSignInSocialRequest.md} +6 -8
- package/docs/{PassportEnterpriseSignInEmailResponse.md → AuthSignInSocialResponse.md} +6 -6
- package/docs/{PassportAuthEnterpriseMaterialUploadResponse.md → AuthSignOutResponse.md} +5 -3
- package/docs/{PassportAuthEnterpriseDeleteRequest.md → AuthSignUpEmailRequest.md} +13 -9
- package/docs/{PassportEnterprisePasswordResetResponse.md → AuthSignUpEmailResponse.md} +7 -5
- package/docs/{PassportAuthUnlinkSocialRequest.md → AuthUnlinkAccountRequest.md} +3 -5
- package/docs/{PassportAuthAdminEnterpriseMaterialReviewResponse.md → AuthUnlinkAccountResponse.md} +5 -3
- package/docs/{PassportAuthUserUpdatePassportRequest.md → AuthUpdateUserRequest.md} +5 -5
- package/docs/AuthUpdateUserResponse.md +24 -0
- package/docs/AuthVerifyEmailResponse.md +24 -0
- package/docs/ConfigItem.md +0 -4
- 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 +17 -15
- package/docs/GCPAuth.md +27 -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/MultimodalPricing.md +4 -4
- package/docs/PricingConditions.md +7 -7
- package/docs/PricingRules.md +6 -6
- package/docs/Provider.md +37 -0
- package/docs/ProviderAdminServiceApi.md +53 -74
- package/docs/ProviderAuth.md +6 -6
- package/docs/ProviderCreateRequest.md +29 -0
- package/docs/{AdminAIModelDisableResponse.md → ProviderCreateResponse.md} +5 -5
- package/docs/{AdminAIModelDeleteResponse.md → ProviderDeleteResponse.md} +4 -4
- package/docs/{AdminProviderModelGetResponse.md → ProviderGetResponse.md} +5 -5
- package/docs/{AdminProviderListResponse.md → ProviderListResponse.md} +6 -6
- package/docs/ProviderModel.md +37 -0
- package/docs/ProviderModelAdminServiceApi.md +56 -74
- package/docs/ProviderModelCreateRequest.md +29 -0
- package/docs/{AdminProviderModelUpdateResponse.md → ProviderModelCreateResponse.md} +5 -5
- package/docs/{AdminProviderDeleteResponse.md → ProviderModelDeleteResponse.md} +4 -4
- package/docs/ProviderModelGetResponse.md +25 -0
- package/docs/{AdminProviderModelListResponse.md → ProviderModelListResponse.md} +6 -6
- package/docs/ProviderModelPayload.md +23 -0
- package/docs/ProviderModelUpdateRequest.md +31 -0
- package/docs/{AdminProviderCreateResponse.md → ProviderModelUpdateResponse.md} +5 -5
- package/docs/ProviderPayload.md +21 -0
- package/docs/ProviderUpdateRequest.md +31 -0
- package/docs/ProviderUpdateResponse.md +25 -0
- package/docs/RemoteConfigAdminServiceApi.md +3 -18
- package/docs/RemoteConfigItemGetResponse.md +2 -2
- package/docs/RemoteConfigItemUpdateRequest.md +0 -6
- package/docs/RemoteConfigItemUpdateResponse.md +2 -2
- 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/UserAPIKeyDeleteRequest.md +21 -0
- package/docs/UserAPIKeyDeleteResponse.md +3 -3
- package/docs/UserAPIKeyGetResponse.md +4 -4
- package/docs/UserAPIKeyListResponse.md +5 -5
- package/docs/UserAPIKeyServiceApi.md +27 -26
- 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/{ModelListResponse.md → UserModelListResponse.md} +11 -10
- package/docs/UserModelServiceApi.md +11 -124
- package/docs/VersionedAPISchema.md +6 -6
- package/docs/VideoPricing.md +8 -8
- package/package.json +1 -1
- package/docs/AdminAIModel.md +0 -73
- package/docs/AdminAIModelCreateRequest.md +0 -63
- package/docs/AdminAIModelDisableRequest.md +0 -23
- package/docs/AdminAIModelProviderConfigItem.md +0 -29
- package/docs/AdminAIModelPublishRequest.md +0 -23
- package/docs/AdminAIModelUpdateRequest.md +0 -25
- package/docs/AdminEnterpriseMaterials.md +0 -24
- package/docs/AdminEnterpriseUser.md +0 -24
- package/docs/AdminEnterpriseUserMaterials.md +0 -22
- package/docs/AdminPassportItem.md +0 -24
- package/docs/AdminProvider.md +0 -46
- package/docs/AdminProviderCreateRequest.md +0 -39
- package/docs/AdminProviderModel.md +0 -66
- package/docs/AdminProviderModelCreateRequest.md +0 -59
- package/docs/AdminProviderModelCreateResponse.md +0 -25
- package/docs/AdminProviderModelUpdateRequest.md +0 -25
- package/docs/AdminProviderUpdateRequest.md +0 -25
- package/docs/AdminProviderUpdateResponse.md +0 -25
- package/docs/AdminUserItem.md +0 -26
- package/docs/AuthAdminSession.md +0 -39
- package/docs/AuthEnterpriseMaterials.md +0 -33
- package/docs/AuthEnterpriseSession.md +0 -37
- package/docs/AuthEnterpriseUser.md +0 -37
- package/docs/AuthPassport.md +0 -35
- package/docs/AuthUser.md +0 -39
- package/docs/AuthUserMethod.md +0 -39
- package/docs/AuthUserSession.md +0 -41
- package/docs/FrontendModelCost.md +0 -57
- package/docs/FrontendModelExtraInfo.md +0 -21
- package/docs/FrontendModelsResponse.md +0 -29
- package/docs/FrontendProviderInfo.md +0 -31
- package/docs/FrontendProviderModel.md +0 -55
- package/docs/FrontendProvidersResponse.md +0 -29
- package/docs/FrontendSearchContextCost.md +0 -25
- package/docs/ModelCapabilities.md +0 -59
- package/docs/ModelLimits.md +0 -41
- package/docs/ModelModalities.md +0 -23
- package/docs/PassportAdminSendVerificationEmailRequest.md +0 -26
- package/docs/PassportAdminSignInEmailResponse.md +0 -26
- package/docs/PassportAdminTokenAuthResponse.md +0 -28
- package/docs/PassportAuthAdminChangePasswordResponse.md +0 -26
- package/docs/PassportAuthAdminEnterpriseMaterialListResponse.md +0 -28
- package/docs/PassportAuthAdminEnterpriseMaterialReviewRequest.md +0 -22
- package/docs/PassportAuthAdminGetSessionResponse.md +0 -26
- package/docs/PassportAuthAdminListSessionsResponse.md +0 -24
- package/docs/PassportAuthAdminPassportDisableRequest.md +0 -22
- package/docs/PassportAuthAdminPassportListRequest.md +0 -28
- package/docs/PassportAuthAdminPassportListResponse.md +0 -28
- package/docs/PassportAuthAdminPassportModifyInfoRequest.md +0 -28
- package/docs/PassportAuthAdminPassportModifyInfoResponse.md +0 -24
- package/docs/PassportAuthAdminRPCServiceApi.md +0 -61
- package/docs/PassportAuthAdminRevokeSessionRequest.md +0 -20
- package/docs/PassportAuthAdminRevokeSessionResponse.md +0 -22
- package/docs/PassportAuthAdminRevokeSessionsResponse.md +0 -22
- package/docs/PassportAuthAdminServiceApi.md +0 -1069
- package/docs/PassportAuthAdminUserDisableRequest.md +0 -26
- package/docs/PassportAuthAdminUserListRequest.md +0 -28
- package/docs/PassportAuthAdminUserListResponse.md +0 -28
- package/docs/PassportAuthAdminUserModifyInfoRequest.md +0 -32
- package/docs/PassportAuthAdminUserModifyPermissionRequest.md +0 -22
- package/docs/PassportAuthChangePasswordRequest.md +0 -26
- package/docs/PassportAuthChangePasswordResponse.md +0 -26
- package/docs/PassportAuthDeleteAllResponse.md +0 -22
- package/docs/PassportAuthEnterpriseChangePhoneRequest.md +0 -24
- package/docs/PassportAuthEnterpriseChangePhoneResponse.md +0 -22
- package/docs/PassportAuthEnterpriseDeleteResponse.md +0 -22
- package/docs/PassportAuthEnterpriseInfoGetResponse.md +0 -24
- package/docs/PassportAuthEnterpriseListSessionsResponse.md +0 -24
- package/docs/PassportAuthEnterpriseMaterialUploadRequest.md +0 -26
- package/docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md +0 -24
- package/docs/PassportAuthEnterpriseRPCServiceApi.md +0 -61
- package/docs/PassportAuthEnterpriseRefreshTokenRequest.md +0 -20
- package/docs/PassportAuthEnterpriseResetPasswordRequest.md +0 -22
- package/docs/PassportAuthEnterpriseResetPasswordResponse.md +0 -22
- package/docs/PassportAuthEnterpriseRevokeOtherSessionsResponse.md +0 -22
- package/docs/PassportAuthEnterpriseRevokeSessionResponse.md +0 -22
- package/docs/PassportAuthEnterpriseServiceApi.md +0 -1170
- package/docs/PassportAuthEnterpriseSignOutRequest.md +0 -20
- package/docs/PassportAuthEnterpriseSignOutResponse.md +0 -22
- package/docs/PassportAuthEnterpriseUpdateInfoRequest.md +0 -22
- package/docs/PassportAuthEnterpriseUpdateInfoResponse.md +0 -24
- package/docs/PassportAuthEnterpriseVerifyEmailResponse.md +0 -22
- package/docs/PassportAuthEnterpriseVerifyPhoneResponse.md +0 -22
- package/docs/PassportAuthInfoGetResponse.md +0 -26
- package/docs/PassportAuthListMethodsResponse.md +0 -24
- package/docs/PassportAuthListSocialsResponse.md +0 -24
- package/docs/PassportAuthRefreshSessionTokenRequest.md +0 -20
- package/docs/PassportAuthRefreshSessionTokenResponse.md +0 -24
- package/docs/PassportAuthResetPasswordRequest.md +0 -24
- package/docs/PassportAuthRevokeOtherSessionsRequest.md +0 -20
- package/docs/PassportAuthRevokeSessionResponse.md +0 -22
- package/docs/PassportAuthRevokeSessionsRequest.md +0 -20
- package/docs/PassportAuthRevokeSessionsResponse.md +0 -22
- package/docs/PassportAuthSendVerificationEmailRequest.md +0 -26
- package/docs/PassportAuthSendVerificationEmailResponse.md +0 -22
- package/docs/PassportAuthSendVerificationPhoneRequest.md +0 -26
- package/docs/PassportAuthSendVerificationPhoneResponse.md +0 -22
- package/docs/PassportAuthUnlinkSocialResponse.md +0 -22
- package/docs/PassportAuthUserChangeEmailResponse.md +0 -24
- package/docs/PassportAuthUserChangePhoneRequest.md +0 -26
- package/docs/PassportAuthUserChangePhoneResponse.md +0 -24
- package/docs/PassportAuthUserDeleteRequest.md +0 -30
- package/docs/PassportAuthUserGetSessionResponse.md +0 -24
- package/docs/PassportAuthUserInfoGetResponse.md +0 -24
- package/docs/PassportAuthUserRPCServiceApi.md +0 -223
- package/docs/PassportAuthUserServiceApi.md +0 -2000
- package/docs/PassportAuthUserSignOutRequest.md +0 -22
- package/docs/PassportAuthUserUpdateInfoRequest.md +0 -28
- package/docs/PassportAuthUserUpdateInfoResponse.md +0 -24
- package/docs/PassportAuthUserUpdatePassportResponse.md +0 -24
- package/docs/PassportAuthUserVerifyEmailRequest.md +0 -26
- package/docs/PassportAuthUserVerifyEmailResponse.md +0 -22
- package/docs/PassportAuthUserVerifyPhoneRequest.md +0 -24
- package/docs/PassportAuthUserVerifyPhoneResponse.md +0 -22
- package/docs/PassportEnterprisePasswordResetRequest.md +0 -24
- package/docs/PassportEnterpriseSendVerificationEmailRequest.md +0 -24
- package/docs/PassportEnterpriseSendVerificationEmailResponse.md +0 -22
- package/docs/PassportEnterpriseSendVerificationPhoneRequest.md +0 -24
- package/docs/PassportEnterpriseSendVerificationPhoneResponse.md +0 -22
- package/docs/PassportEnterpriseSignInEmailRequest.md +0 -30
- package/docs/PassportEnterpriseSignInPhoneRequest.md +0 -24
- package/docs/PassportEnterpriseSignInPhoneResponse.md +0 -26
- package/docs/PassportEnterpriseSignUpEmailRequest.md +0 -34
- package/docs/PassportEnterpriseTokenAuthRequest.md +0 -20
- package/docs/PassportEnterpriseTokenAuthResponse.md +0 -28
- package/docs/PassportSendVerificationEmailRequest.md +0 -26
- package/docs/PassportSendVerificationEmailResponse.md +0 -22
- package/docs/PassportSendVerificationPhoneRequest.md +0 -26
- package/docs/PassportSendVerificationPhoneResponse.md +0 -22
- package/docs/PassportUserInfoBatchGetRequest.md +0 -24
- package/docs/PassportUserInfoBatchGetResponse.md +0 -24
- package/docs/PassportUserInfoGetRequest.md +0 -24
- package/docs/PassportUserOAuthCallbackResponse.md +0 -36
- package/docs/PassportUserPasswordForgetRequest.md +0 -24
- package/docs/PassportUserPasswordForgetResponse.md +0 -22
- package/docs/PassportUserPasswordResetRequest.md +0 -30
- package/docs/PassportUserPasswordResetTokenVerifyRequest.md +0 -22
- package/docs/PassportUserPasswordResetTokenVerifyResponse.md +0 -26
- package/docs/PassportUserSignInEmailRequest.md +0 -32
- package/docs/PassportUserSignInEmailResponse.md +0 -32
- package/docs/PassportUserSignInPhoneRequest.md +0 -26
- package/docs/PassportUserSignInPhoneResponse.md +0 -28
- package/docs/PassportUserSignInSocialResponse.md +0 -32
- package/docs/PassportUserSignUpEmailRequest.md +0 -36
- package/docs/PassportUserSignUpEmailResponse.md +0 -32
- package/docs/PassportUserTokenAuthResponse.md +0 -28
- package/docs/PassportUserUpdateInfoRequest.md +0 -30
- package/docs/PassportUserUpdateInfoResponse.md +0 -22
- package/docs/ProviderGCPAuth.md +0 -27
- package/docs/QRCodeAdminServiceApi.md +0 -286
- package/docs/QRCodeCreateRequest.md +0 -37
- package/docs/QRCodeCreateResponse.md +0 -25
- package/docs/QRCodeDeleteResponse.md +0 -23
- package/docs/QRCodeGetResponse.md +0 -25
- package/docs/QRCodeHistoryItem.md +0 -29
- package/docs/QRCodeInfo.md +0 -59
- package/docs/QRCodeListResponse.md +0 -27
- package/docs/QRCodeSnapshot.md +0 -37
- package/docs/QRCodeUpdateRequest.md +0 -39
- package/docs/QRCodeUpdateResponse.md +0 -25
- package/docs/QRCodeWithHistory.md +0 -23
- package/docs/UserBasic.md +0 -42
- package/docs/UserExtendInfo.md +0 -20
- package/docs/UserInfoQueryOptions.md +0 -28
- package/docs/UserPaymentInfo.md +0 -20
- package/docs/UserPreferences.md +0 -22
|
@@ -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 开始 默认值: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
186
|
-
let pageSize: number; //page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
|
|
185
|
+
let page: number; //page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" (optional) (default to undefined)
|
|
186
|
+
let pageSize: number; //page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 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 开始 默认值: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
201
|
-
| **pageSize** | [**number**] | page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
|
|
200
|
+
| **page** | [**number**] | page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
|
|
201
|
+
| **pageSize** | [**number**] | page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 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 响应状态码,0 表示成功 | [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 响应状态码,0 表示成功 | [optional] [default to undefined]
|
|
9
9
|
**message** | **string** | message 响应消息 | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserModelListResponse
|
|
2
2
|
|
|
3
|
+
UserModelListResponse 模型列表响应(符合 OpenAI API 格式) Model list response (OpenAI API compatible format)
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** | code 响应状态码,
|
|
9
|
+
**code** | **string** | code 响应状态码,0 表示成功 Response code, 0 indicates success | [optional] [default to undefined]
|
|
9
10
|
**object** | **string** | object 对象类型,固定为 \"list\"(OpenAI API 格式) Object type, always \"list\" (OpenAI API format) | [optional] [default to undefined]
|
|
10
11
|
**data** | [**Array<FrontAIModel>**](FrontAIModel.md) | models FrontAIModel 列表,对应 OpenAI API 的 \"data\" 字段 List of FrontAIModel objects, maps to OpenAI API \"data\" field | [optional] [default to undefined]
|
|
11
12
|
**model_apis** | [**Array<VersionedAPISchema>**](VersionedAPISchema.md) | apis API schema 列表 NOTE: FrontAIModel.AIModelMeta.endpoints 里面只会包含 endpoint ID,不包含完整的 schema 信息 可以通过此字段获取完整的 schema 列表 | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
13
|
+
**firstId** | **string** | 分页信息 Pagination information | [optional] [default to undefined]
|
|
14
|
+
**lastId** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**hasMore** | **boolean** | | [optional] [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
18
19
|
```typescript
|
|
19
|
-
import {
|
|
20
|
+
import { UserModelListResponse } from '@cherryin/api-client';
|
|
20
21
|
|
|
21
|
-
const instance:
|
|
22
|
+
const instance: UserModelListResponse = {
|
|
22
23
|
code,
|
|
23
24
|
object,
|
|
24
25
|
data,
|
|
25
26
|
model_apis,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
firstId,
|
|
28
|
+
lastId,
|
|
29
|
+
hasMore,
|
|
29
30
|
};
|
|
30
31
|
```
|
|
31
32
|
|
|
@@ -4,127 +4,11 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**userModelServiceFrontendProviders**](#usermodelservicefrontendproviders) | **GET** /v1/frontend/providers | |
|
|
9
|
-
|[**userModelServiceModelList**](#usermodelservicemodellist) | **GET** /v1/models | |
|
|
7
|
+
|[**userModelServiceUserModelList**](#usermodelserviceusermodellist) | **GET** /v1/models | |
|
|
10
8
|
|
|
11
|
-
# **
|
|
12
|
-
>
|
|
9
|
+
# **userModelServiceUserModelList**
|
|
10
|
+
> UserModelListResponse userModelServiceUserModelList()
|
|
13
11
|
|
|
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: 暂时不需要鉴权
|
|
128
12
|
|
|
129
13
|
### Example
|
|
130
14
|
|
|
@@ -137,16 +21,18 @@ import {
|
|
|
137
21
|
const configuration = new Configuration();
|
|
138
22
|
const apiInstance = new UserModelServiceApi(configuration);
|
|
139
23
|
|
|
24
|
+
let currencyCode: string; //货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" (optional) (default to undefined)
|
|
140
25
|
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)
|
|
141
26
|
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)
|
|
142
27
|
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)
|
|
143
|
-
let
|
|
28
|
+
let withPricing: boolean; //optional extra info @gotags: form:\"with_pricing\" (optional) (default to undefined)
|
|
144
29
|
|
|
145
|
-
const { status, data } = await apiInstance.
|
|
30
|
+
const { status, data } = await apiInstance.userModelServiceUserModelList(
|
|
31
|
+
currencyCode,
|
|
146
32
|
beforeId,
|
|
147
33
|
afterId,
|
|
148
34
|
limit,
|
|
149
|
-
|
|
35
|
+
withPricing
|
|
150
36
|
);
|
|
151
37
|
```
|
|
152
38
|
|
|
@@ -154,15 +40,16 @@ const { status, data } = await apiInstance.userModelServiceModelList(
|
|
|
154
40
|
|
|
155
41
|
|Name | Type | Description | Notes|
|
|
156
42
|
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **currencyCode** | [**string**] | 货币代码过滤,例如 \"USD\", \"CNY\" Filter by currency code, e.g., \"USD\", \"CNY\" @gotags: form:\"currency_code\" | (optional) defaults to undefined|
|
|
157
44
|
| **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|
|
|
158
45
|
| **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|
|
|
159
46
|
| **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|
|
|
160
|
-
| **
|
|
47
|
+
| **withPricing** | [**boolean**] | optional extra info @gotags: form:\"with_pricing\" | (optional) defaults to undefined|
|
|
161
48
|
|
|
162
49
|
|
|
163
50
|
### Return type
|
|
164
51
|
|
|
165
|
-
**
|
|
52
|
+
**UserModelListResponse**
|
|
166
53
|
|
|
167
54
|
### Authorization
|
|
168
55
|
|
|
@@ -6,12 +6,12 @@ VersionedAPISchema represents a versioned API schema configuration 代表一个
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 约定的 ID | [optional] [default to undefined]
|
|
10
|
-
**name** | **string** | name API schema 的描述性名称 例如: \"chat/completion\", \"response\" | [optional] [default to undefined]
|
|
11
|
-
**schema** | **string** | schema API schema 的名称 例如: \"openai\", \"anthropic\" | [optional] [default to undefined]
|
|
12
|
-
**version** | **string** | version API schema 的版本(可选) | [optional] [default to undefined]
|
|
13
|
-
**path** | **string** | path API 端点路径(可选) | [optional] [default to undefined]
|
|
14
|
-
**method** | **string** | method HTTP 方法,例如 \"POST\", \"GET\"(可选) | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | id 约定的 ID Conventional ID | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | name API schema 的描述性名称 Descriptive name for the API schema 例如: \"chat/completion\", \"response\" Examples: \"chat/completion\", \"response\" | [optional] [default to undefined]
|
|
11
|
+
**schema** | **string** | schema API schema 的名称 Name of the API schema 例如: \"openai\", \"anthropic\" Examples: \"openai\", \"anthropic\" | [optional] [default to undefined]
|
|
12
|
+
**version** | **string** | version API schema 的版本(可选) Version of the API schema (optional) | [optional] [default to undefined]
|
|
13
|
+
**path** | **string** | path API 端点路径(可选) API path for this endpoint (optional) | [optional] [default to undefined]
|
|
14
|
+
**method** | **string** | method HTTP 方法,例如 \"POST\", \"GET\"(可选) HTTP method for this endpoint, e.g., \"POST\", \"GET\" (optional) | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
package/docs/VideoPricing.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# VideoPricing
|
|
2
2
|
|
|
3
|
-
VideoPricing 视频计费
|
|
3
|
+
VideoPricing 视频计费 Video pricing
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 价格配置ID | [optional] [default to undefined]
|
|
10
|
-
**mode** | **string** | mode 计费模式: \"per_second\", \"per_token\" | [optional] [default to undefined]
|
|
11
|
-
**input_per_token** | **string** | input_per_token 输入每Token费用 | [optional] [default to undefined]
|
|
12
|
-
**output_per_token** | **string** | output_per_token 输出每Token费用 | [optional] [default to undefined]
|
|
13
|
-
**input_per_second** | **string** | input_per_second 输入每秒费用 | [optional] [default to undefined]
|
|
14
|
-
**output_per_second** | **string** | output_per_second 输出每秒费用 | [optional] [default to undefined]
|
|
15
|
-
**extra** | **{ [key: string]: string; }** | extra 扩展计算 | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | id 价格配置ID Price configuration ID | [optional] [default to undefined]
|
|
10
|
+
**mode** | **string** | mode 计费模式: \"per_second\", \"per_token\" Pricing mode | [optional] [default to undefined]
|
|
11
|
+
**input_per_token** | **string** | input_per_token 输入每Token费用 Input fee per token | [optional] [default to undefined]
|
|
12
|
+
**output_per_token** | **string** | output_per_token 输出每Token费用 Output fee per token | [optional] [default to undefined]
|
|
13
|
+
**input_per_second** | **string** | input_per_second 输入每秒费用 Input fee per second | [optional] [default to undefined]
|
|
14
|
+
**output_per_second** | **string** | output_per_second 输出每秒费用 Output fee per second | [optional] [default to undefined]
|
|
15
|
+
**extra** | **{ [key: string]: string; }** | extra 扩展计算 Extra calculation options | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
package/package.json
CHANGED
package/docs/AdminAIModel.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# AdminAIModel
|
|
2
|
-
|
|
3
|
-
AdminAIModel 代表面向终端用户的 AI 模型配置 - 内部统一定义,提供给用户的是裁剪信息后的 FrontAIModel
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 模型 ID | [optional] [default to undefined]
|
|
10
|
-
**name** | **string** | name 模型名称 | [optional] [default to undefined]
|
|
11
|
-
**family** | **string** | family 模型家族 | [optional] [default to undefined]
|
|
12
|
-
**source** | **string** | source 模型信息源 | [optional] [default to undefined]
|
|
13
|
-
**model_card** | **string** | model_card 模型卡片 URL | [optional] [default to undefined]
|
|
14
|
-
**temperature** | **boolean** | temperature 是否支持温度参数 | [optional] [default to undefined]
|
|
15
|
-
**knowledge** | **string** | knowledge 知识截止日期 | [optional] [default to undefined]
|
|
16
|
-
**release_date** | **string** | release_date 发布日期 | [optional] [default to undefined]
|
|
17
|
-
**last_updated** | **string** | last_updated 最后更新日期 | [optional] [default to undefined]
|
|
18
|
-
**open_weights** | **boolean** | open_weights 是否开源权重 | [optional] [default to undefined]
|
|
19
|
-
**deprecation_date** | **string** | deprecation_date 弃用日期 | [optional] [default to undefined]
|
|
20
|
-
**context_length** | **string** | 最大上下文长度(即 limits.max_input_tokens + max_output_tokens) | [optional] [default to undefined]
|
|
21
|
-
**modalities** | [**ModelModalities**](ModelModalities.md) | modalities 模态信息 | [optional] [default to undefined]
|
|
22
|
-
**limits** | [**ModelLimits**](ModelLimits.md) | limits 模型限制 | [optional] [default to undefined]
|
|
23
|
-
**capabilities** | [**ModelCapabilities**](ModelCapabilities.md) | capabilities 模型能力 | [optional] [default to undefined]
|
|
24
|
-
**cost** | [**FrontendModelCost**](FrontendModelCost.md) | cost 模型成本(注意需要和 AIModelPricingConfig 进行交叉比对) pricing_configs 是内部计价结构,cost 是外部展示计价结构 | [optional] [default to undefined]
|
|
25
|
-
**extra_info** | [**FrontendModelExtraInfo**](FrontendModelExtraInfo.md) | extra_info 额外信息 | [optional] [default to undefined]
|
|
26
|
-
**is_official** | **boolean** | 是否为官方供应商,官方供应商会额外写官方供应商表. | [optional] [default to undefined]
|
|
27
|
-
**endpoints** | [**Array<VersionedAPISchema>**](VersionedAPISchema.md) | endpoints 端点配置列表 - 供应商往往支持多个 API 端点 注意,这是 CherryIN 网关独有的配置,需要和 ModelCapabilities.supported_endpoints 进行映射检查 | [optional] [default to undefined]
|
|
28
|
-
**provider_configs** | [**Array<AdminAIModelProviderConfigItem>**](AdminAIModelProviderConfigItem.md) | provider_configs Provider 配置列表 | [optional] [default to undefined]
|
|
29
|
-
**pricing_configs** | [**Array<AIModelPricingConfig>**](AIModelPricingConfig.md) | pricing_configs 价格配置列表 (NEW) | [optional] [default to undefined]
|
|
30
|
-
**discount_config** | [**AdminAIModelDiscountConfig**](AdminAIModelDiscountConfig.md) | discount_config 折扣配置 | [optional] [default to undefined]
|
|
31
|
-
**model_status** | **number** | 模型状态 | [optional] [default to undefined]
|
|
32
|
-
**record_id** | **string** | 数据库自增 id,方便区别 | [optional] [default to undefined]
|
|
33
|
-
**created_at** | **string** | created_at 创建时间戳(Unix 时间戳) | [optional] [default to undefined]
|
|
34
|
-
**updated_at** | **string** | updated_at 更新时间戳(Unix 时间戳) | [optional] [default to undefined]
|
|
35
|
-
**deleted_at** | **string** | deleted_at 软删除时间戳,0 表示未删除 | [optional] [default to undefined]
|
|
36
|
-
|
|
37
|
-
## Example
|
|
38
|
-
|
|
39
|
-
```typescript
|
|
40
|
-
import { AdminAIModel } from '@cherryin/api-client';
|
|
41
|
-
|
|
42
|
-
const instance: AdminAIModel = {
|
|
43
|
-
id,
|
|
44
|
-
name,
|
|
45
|
-
family,
|
|
46
|
-
source,
|
|
47
|
-
model_card,
|
|
48
|
-
temperature,
|
|
49
|
-
knowledge,
|
|
50
|
-
release_date,
|
|
51
|
-
last_updated,
|
|
52
|
-
open_weights,
|
|
53
|
-
deprecation_date,
|
|
54
|
-
context_length,
|
|
55
|
-
modalities,
|
|
56
|
-
limits,
|
|
57
|
-
capabilities,
|
|
58
|
-
cost,
|
|
59
|
-
extra_info,
|
|
60
|
-
is_official,
|
|
61
|
-
endpoints,
|
|
62
|
-
provider_configs,
|
|
63
|
-
pricing_configs,
|
|
64
|
-
discount_config,
|
|
65
|
-
model_status,
|
|
66
|
-
record_id,
|
|
67
|
-
created_at,
|
|
68
|
-
updated_at,
|
|
69
|
-
deleted_at,
|
|
70
|
-
};
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
[[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,63 +0,0 @@
|
|
|
1
|
-
# AdminAIModelCreateRequest
|
|
2
|
-
|
|
3
|
-
AdminAIModelCreateRequest 创建 AIModel 的请求(草稿状态) Request message for creating a new AI model (draft status)
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | id 模型 ID | [optional] [default to undefined]
|
|
10
|
-
**name** | **string** | name 模型名称 | [optional] [default to undefined]
|
|
11
|
-
**family** | **string** | family 模型家族 | [optional] [default to undefined]
|
|
12
|
-
**source** | **string** | source 模型信息源 | [optional] [default to undefined]
|
|
13
|
-
**model_card** | **string** | model_card 模型卡片 URL | [optional] [default to undefined]
|
|
14
|
-
**temperature** | **boolean** | temperature 是否支持温度参数 | [optional] [default to undefined]
|
|
15
|
-
**knowledge** | **string** | knowledge 知识截止日期 | [optional] [default to undefined]
|
|
16
|
-
**release_date** | **string** | release_date 发布日期 | [optional] [default to undefined]
|
|
17
|
-
**last_updated** | **string** | last_updated 最后更新日期 | [optional] [default to undefined]
|
|
18
|
-
**open_weights** | **boolean** | open_weights 是否开源权重 | [optional] [default to undefined]
|
|
19
|
-
**deprecation_date** | **string** | deprecation_date 弃用日期 | [optional] [default to undefined]
|
|
20
|
-
**context_length** | **string** | 最大上下文长度(即 limits.max_input_tokens + max_output_tokens) | [optional] [default to undefined]
|
|
21
|
-
**modalities** | [**ModelModalities**](ModelModalities.md) | modalities 模态信息 | [optional] [default to undefined]
|
|
22
|
-
**limits** | [**ModelLimits**](ModelLimits.md) | limits 模型限制 | [optional] [default to undefined]
|
|
23
|
-
**capabilities** | [**ModelCapabilities**](ModelCapabilities.md) | capabilities 模型能力 | [optional] [default to undefined]
|
|
24
|
-
**cost** | [**FrontendModelCost**](FrontendModelCost.md) | cost 模型成本(注意需要和 AIModelPricingConfig 进行交叉比对) pricing_configs 是内部计价结构,cost 是外部展示计价结构 | [optional] [default to undefined]
|
|
25
|
-
**extra_info** | [**FrontendModelExtraInfo**](FrontendModelExtraInfo.md) | extra_info 额外信息 | [optional] [default to undefined]
|
|
26
|
-
**is_official** | **boolean** | 是否为官方供应商,官方供应商会额外写官方供应商表. | [optional] [default to undefined]
|
|
27
|
-
**endpoints** | [**Array<VersionedAPISchema>**](VersionedAPISchema.md) | endpoints 端点配置列表 - 供应商往往支持多个 API 端点 注意,这是 CherryIN 网关独有的配置,需要和 ModelCapabilities.supported_endpoints 进行映射检查 | [optional] [default to undefined]
|
|
28
|
-
**provider_configs** | [**Array<AdminAIModelProviderConfigItem>**](AdminAIModelProviderConfigItem.md) | provider_configs Provider 配置列表 | [optional] [default to undefined]
|
|
29
|
-
**pricing_configs** | [**Array<AIModelPricingConfig>**](AIModelPricingConfig.md) | pricing_configs 价格配置列表 (NEW) | [optional] [default to undefined]
|
|
30
|
-
**discount_config** | [**AdminAIModelDiscountConfig**](AdminAIModelDiscountConfig.md) | discount_config 折扣配置 | [optional] [default to undefined]
|
|
31
|
-
|
|
32
|
-
## Example
|
|
33
|
-
|
|
34
|
-
```typescript
|
|
35
|
-
import { AdminAIModelCreateRequest } from '@cherryin/api-client';
|
|
36
|
-
|
|
37
|
-
const instance: AdminAIModelCreateRequest = {
|
|
38
|
-
id,
|
|
39
|
-
name,
|
|
40
|
-
family,
|
|
41
|
-
source,
|
|
42
|
-
model_card,
|
|
43
|
-
temperature,
|
|
44
|
-
knowledge,
|
|
45
|
-
release_date,
|
|
46
|
-
last_updated,
|
|
47
|
-
open_weights,
|
|
48
|
-
deprecation_date,
|
|
49
|
-
context_length,
|
|
50
|
-
modalities,
|
|
51
|
-
limits,
|
|
52
|
-
capabilities,
|
|
53
|
-
cost,
|
|
54
|
-
extra_info,
|
|
55
|
-
is_official,
|
|
56
|
-
endpoints,
|
|
57
|
-
provider_configs,
|
|
58
|
-
pricing_configs,
|
|
59
|
-
discount_config,
|
|
60
|
-
};
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
[[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,23 +0,0 @@
|
|
|
1
|
-
# AdminAIModelDisableRequest
|
|
2
|
-
|
|
3
|
-
AdminAIModelDisableRequest 禁用 AIModel 的请求
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | Provider 的唯一标识符 @gotags: form:\"id\" | [optional] [default to undefined]
|
|
10
|
-
**record_id** | **string** | Provider 数据库自增 id - record_id @gotags: form:\"record_id\" | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AdminAIModelDisableRequest } from '@cherryin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: AdminAIModelDisableRequest = {
|
|
18
|
-
id,
|
|
19
|
-
record_id,
|
|
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,29 +0,0 @@
|
|
|
1
|
-
# AdminAIModelProviderConfigItem
|
|
2
|
-
|
|
3
|
-
AdminAIModelProviderConfigItem 代表创建/更新 AIModel 时的 Provider 配置项
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**provider_id** | **string** | provider_id 关联的 Provider ID | [optional] [default to undefined]
|
|
10
|
-
**provider_model_id** | **string** | provider_model_id 关联的 ProviderModel ID | [optional] [default to undefined]
|
|
11
|
-
**priority** | **string** | priority 优先级,数值越小优先级越高 | [optional] [default to undefined]
|
|
12
|
-
**traffic_permille** | **string** | traffic_permille 流量千分比 (0-1000) | [optional] [default to undefined]
|
|
13
|
-
**endpoint_mapping** | **{ [key: string]: string; }** | endpoint_mapping 端点映射配置 key: ai model endpoint id (e.g., \"openai:chat/completions\") value: provider api endpoint id (e.g., \"anthropic:messages\") | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { AdminAIModelProviderConfigItem } from '@cherryin/api-client';
|
|
19
|
-
|
|
20
|
-
const instance: AdminAIModelProviderConfigItem = {
|
|
21
|
-
provider_id,
|
|
22
|
-
provider_model_id,
|
|
23
|
-
priority,
|
|
24
|
-
traffic_permille,
|
|
25
|
-
endpoint_mapping,
|
|
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)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# AdminAIModelPublishRequest
|
|
2
|
-
|
|
3
|
-
AdminAIModelPublishRequest 发布 AIModel 的请求
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | Provider 的唯一标识符 @gotags: form:\"id\" | [optional] [default to undefined]
|
|
10
|
-
**record_id** | **string** | Provider 数据库自增 id - record_id @gotags: form:\"record_id\" | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AdminAIModelPublishRequest } from '@cherryin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: AdminAIModelPublishRequest = {
|
|
18
|
-
id,
|
|
19
|
-
record_id,
|
|
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,25 +0,0 @@
|
|
|
1
|
-
# AdminAIModelUpdateRequest
|
|
2
|
-
|
|
3
|
-
AdminAIModelUpdateRequest 更新 AIModel 的请求 Request message for updating an existing AI model
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **string** | Provider 的唯一标识符 | [optional] [default to undefined]
|
|
10
|
-
**record_id** | **string** | Provider 数据库自增 id - record_id optional: id or record_id | [optional] [default to undefined]
|
|
11
|
-
**payload** | [**AdminAIModel**](AdminAIModel.md) | payload 模型的配置详情 | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { AdminAIModelUpdateRequest } from '@cherryin/api-client';
|
|
17
|
-
|
|
18
|
-
const instance: AdminAIModelUpdateRequest = {
|
|
19
|
-
id,
|
|
20
|
-
record_id,
|
|
21
|
-
payload,
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# AdminEnterpriseMaterials
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**materials** | [**AuthEnterpriseMaterials**](AuthEnterpriseMaterials.md) | | [optional] [default to undefined]
|
|
9
|
-
**created_at** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**updated_at** | **string** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AdminEnterpriseMaterials } from '@cherryin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: AdminEnterpriseMaterials = {
|
|
18
|
-
materials,
|
|
19
|
-
created_at,
|
|
20
|
-
updated_at,
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
[[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,24 +0,0 @@
|
|
|
1
|
-
# AdminEnterpriseUser
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**user** | [**AuthEnterpriseUser**](AuthEnterpriseUser.md) | 企业用户信息 | [optional] [default to undefined]
|
|
9
|
-
**created_at** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**updated_at** | **string** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AdminEnterpriseUser } from '@cherryin/api-client';
|
|
16
|
-
|
|
17
|
-
const instance: AdminEnterpriseUser = {
|
|
18
|
-
user,
|
|
19
|
-
created_at,
|
|
20
|
-
updated_at,
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
[[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,22 +0,0 @@
|
|
|
1
|
-
# AdminEnterpriseUserMaterials
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**user** | [**AdminEnterpriseUser**](AdminEnterpriseUser.md) | | [optional] [default to undefined]
|
|
9
|
-
**materials** | [**AdminEnterpriseMaterials**](AdminEnterpriseMaterials.md) | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { AdminEnterpriseUserMaterials } from '@cherryin/api-client';
|
|
15
|
-
|
|
16
|
-
const instance: AdminEnterpriseUserMaterials = {
|
|
17
|
-
user,
|
|
18
|
-
materials,
|
|
19
|
-
};
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|