@ucloud-sdks/ucloud-sdk-js 0.2.16 → 0.2.17
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.
|
@@ -39,6 +39,12 @@ export default class UAIModelverseClient extends Client {
|
|
|
39
39
|
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_order_summary
|
|
40
40
|
*/
|
|
41
41
|
downloadOrderSummary(request?: DownloadOrderSummaryRequest): Promise<DownloadOrderSummaryResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* DownloadUMInferRequestLog - 导出推理请求日志。单次导出时间范围最长 30 天,最多导出 2000 万条日志;同一 TopOrganizationID 同一时间仅允许 1 个导出任务在执行,已有任务执行中时请稍后重试。
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_um_infer_request_log
|
|
46
|
+
*/
|
|
47
|
+
downloadUMInferRequestLog(request?: DownloadUMInferRequestLogRequest): Promise<DownloadUMInferRequestLogResponse>;
|
|
42
48
|
/**
|
|
43
49
|
* GetFilterOptions - 查询可用于订单筛选的资源、模型、地域等选项列表
|
|
44
50
|
*
|
|
@@ -52,17 +58,23 @@ export default class UAIModelverseClient extends Client {
|
|
|
52
58
|
*/
|
|
53
59
|
getOrderAmount(request?: GetOrderAmountRequest): Promise<GetOrderAmountResponse>;
|
|
54
60
|
/**
|
|
55
|
-
*
|
|
61
|
+
* GetUFSquareModelDetail - 获取广场模型详情
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_uf_square_model_detail
|
|
64
|
+
*/
|
|
65
|
+
getUFSquareModelDetail(request?: GetUFSquareModelDetailRequest): Promise<GetUFSquareModelDetailResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* GetUFSquareModelPrices - 批量查询模型价格
|
|
56
68
|
*
|
|
57
|
-
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/
|
|
69
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_uf_square_model_prices
|
|
58
70
|
*/
|
|
59
|
-
|
|
71
|
+
getUFSquareModelPrices(request?: GetUFSquareModelPricesRequest): Promise<GetUFSquareModelPricesResponse>;
|
|
60
72
|
/**
|
|
61
|
-
*
|
|
73
|
+
* GetUMInferRequestLogDetail - 原始日志详情
|
|
62
74
|
*
|
|
63
|
-
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/
|
|
75
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_um_infer_request_log_detail
|
|
64
76
|
*/
|
|
65
|
-
|
|
77
|
+
getUMInferRequestLogDetail(request?: GetUMInferRequestLogDetailRequest): Promise<GetUMInferRequestLogDetailResponse>;
|
|
66
78
|
/**
|
|
67
79
|
* ListPaidOrderSummary - 按指定维度汇总查询已完成(已支付)订单的统计数据
|
|
68
80
|
*
|
|
@@ -81,12 +93,24 @@ export default class UAIModelverseClient extends Client {
|
|
|
81
93
|
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_uf_square_model
|
|
82
94
|
*/
|
|
83
95
|
listUFSquareModel(request?: ListUFSquareModelRequest): Promise<ListUFSquareModelResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* ListUFSquareModelFiltersAuth - 登录状态下获取模型广场过滤器中内容
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_uf_square_model_filters_auth
|
|
100
|
+
*/
|
|
101
|
+
listUFSquareModelFiltersAuth(request?: ListUFSquareModelFiltersAuthRequest): Promise<ListUFSquareModelFiltersAuthResponse>;
|
|
84
102
|
/**
|
|
85
103
|
* ListUMInferAPIKey - 列表查询apikey
|
|
86
104
|
*
|
|
87
105
|
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_api_key
|
|
88
106
|
*/
|
|
89
107
|
listUMInferAPIKey(request?: ListUMInferAPIKeyRequest): Promise<ListUMInferAPIKeyResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* ListUMInferRequestLogs - 日志明细列表
|
|
110
|
+
*
|
|
111
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_request_logs
|
|
112
|
+
*/
|
|
113
|
+
listUMInferRequestLogs(request?: ListUMInferRequestLogsRequest): Promise<ListUMInferRequestLogsResponse>;
|
|
90
114
|
/**
|
|
91
115
|
* ListUnpaidOrderSummary - 按指定维度汇总查询欠费订单的统计数据
|
|
92
116
|
*
|
|
@@ -99,6 +123,12 @@ export default class UAIModelverseClient extends Client {
|
|
|
99
123
|
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_unpaid_orders
|
|
100
124
|
*/
|
|
101
125
|
listUnpaidOrders(request?: ListUnpaidOrdersRequest): Promise<ListUnpaidOrdersResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* StartPayUnpaidOrders - 批量支付欠费订单,指定 OrderNos 支付,最多 50 个
|
|
128
|
+
*
|
|
129
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/start_pay_unpaid_orders
|
|
130
|
+
*/
|
|
131
|
+
startPayUnpaidOrders(request?: StartPayUnpaidOrdersRequest): Promise<StartPayUnpaidOrdersResponse>;
|
|
102
132
|
/**
|
|
103
133
|
* UpdateUMInferAPIKey - 更新apikey
|
|
104
134
|
*
|
|
@@ -452,6 +482,52 @@ export interface DownloadOrderSummaryResponse {
|
|
|
452
482
|
FileSize?: number;
|
|
453
483
|
};
|
|
454
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* DownloadUMInferRequestLog - 导出推理请求日志。单次导出时间范围最长 30 天,最多导出 2000 万条日志;同一 TopOrganizationID 同一时间仅允许 1 个导出任务在执行,已有任务执行中时请稍后重试。
|
|
487
|
+
*/
|
|
488
|
+
export interface DownloadUMInferRequestLogRequest {
|
|
489
|
+
/**
|
|
490
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
491
|
+
*/
|
|
492
|
+
Zone: string;
|
|
493
|
+
/**
|
|
494
|
+
* 导出开始时间,Unix 毫秒时间戳
|
|
495
|
+
*/
|
|
496
|
+
StartTime: number;
|
|
497
|
+
/**
|
|
498
|
+
* 导出结束时间,Unix 毫秒时间戳,最长支持 30 天范围
|
|
499
|
+
*/
|
|
500
|
+
EndTime: number;
|
|
501
|
+
/**
|
|
502
|
+
* 接收导出结果的邮箱地址
|
|
503
|
+
*/
|
|
504
|
+
Email: string;
|
|
505
|
+
/**
|
|
506
|
+
* 模型名称列表,用于过滤
|
|
507
|
+
*/
|
|
508
|
+
ModelNames?: string[];
|
|
509
|
+
/**
|
|
510
|
+
* API Key ID 列表,用于过滤
|
|
511
|
+
*/
|
|
512
|
+
ApiKeyIds?: string[];
|
|
513
|
+
/**
|
|
514
|
+
* 请求 ID,用于精确过滤
|
|
515
|
+
*/
|
|
516
|
+
RequestId?: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* DownloadUMInferRequestLog - 导出推理请求日志。单次导出时间范围最长 30 天,最多导出 2000 万条日志;同一 TopOrganizationID 同一时间仅允许 1 个导出任务在执行,已有任务执行中时请稍后重试。
|
|
520
|
+
*/
|
|
521
|
+
export interface DownloadUMInferRequestLogResponse {
|
|
522
|
+
/**
|
|
523
|
+
* 导出任务 ID
|
|
524
|
+
*/
|
|
525
|
+
TaskId?: string;
|
|
526
|
+
/**
|
|
527
|
+
* 本次导出查询命中的日志行数
|
|
528
|
+
*/
|
|
529
|
+
TotalCount?: number;
|
|
530
|
+
}
|
|
455
531
|
/**
|
|
456
532
|
* GetFilterOptions - 查询可用于订单筛选的资源、模型、地域等选项列表
|
|
457
533
|
*/
|
|
@@ -674,36 +750,32 @@ export interface GetOrderAmountResponse {
|
|
|
674
750
|
UnpaidCount?: number;
|
|
675
751
|
}
|
|
676
752
|
/**
|
|
677
|
-
*
|
|
753
|
+
* GetUFSquareModelDetail - 获取广场模型详情
|
|
678
754
|
*/
|
|
679
|
-
export interface
|
|
680
|
-
/**
|
|
681
|
-
* apikey 的id
|
|
682
|
-
*/
|
|
683
|
-
KeyId?: string;
|
|
755
|
+
export interface GetUFSquareModelDetailRequest {
|
|
684
756
|
/**
|
|
685
|
-
*
|
|
757
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
686
758
|
*/
|
|
687
|
-
|
|
759
|
+
Zone: string;
|
|
688
760
|
/**
|
|
689
|
-
*
|
|
761
|
+
* 主键
|
|
690
762
|
*/
|
|
691
|
-
|
|
763
|
+
Id: string;
|
|
692
764
|
}
|
|
693
765
|
/**
|
|
694
|
-
*
|
|
766
|
+
* GetUFSquareModelDetail - 获取广场模型详情
|
|
695
767
|
*/
|
|
696
|
-
export interface
|
|
768
|
+
export interface GetUFSquareModelDetailResponse {
|
|
697
769
|
/**
|
|
698
|
-
*
|
|
770
|
+
* 模型
|
|
699
771
|
*/
|
|
700
|
-
|
|
772
|
+
SquareModel: {
|
|
701
773
|
/**
|
|
702
|
-
*
|
|
774
|
+
* 制造商
|
|
703
775
|
*/
|
|
704
|
-
|
|
776
|
+
Manufacturer?: string;
|
|
705
777
|
/**
|
|
706
|
-
*
|
|
778
|
+
* 主键
|
|
707
779
|
*/
|
|
708
780
|
Id?: string;
|
|
709
781
|
/**
|
|
@@ -711,19 +783,47 @@ export interface GetUMInferAPIModelResponse {
|
|
|
711
783
|
*/
|
|
712
784
|
Name?: string;
|
|
713
785
|
/**
|
|
714
|
-
*
|
|
786
|
+
* 简要描述
|
|
715
787
|
*/
|
|
716
788
|
SimpleDescribe?: string;
|
|
789
|
+
/**
|
|
790
|
+
* 详细描述
|
|
791
|
+
*/
|
|
792
|
+
Describe?: string;
|
|
717
793
|
/**
|
|
718
794
|
* 语言
|
|
719
795
|
*/
|
|
720
796
|
Language?: string[];
|
|
721
797
|
/**
|
|
722
|
-
*
|
|
798
|
+
* 模型长度
|
|
799
|
+
*/
|
|
800
|
+
MaxModelLen?: number;
|
|
801
|
+
/**
|
|
802
|
+
* 模型类型
|
|
803
|
+
*/
|
|
804
|
+
ModelType?: string;
|
|
805
|
+
/**
|
|
806
|
+
* HuggingFace 更新时间
|
|
807
|
+
*/
|
|
808
|
+
HfUpdateTime?: number;
|
|
809
|
+
/**
|
|
810
|
+
* 创建时间
|
|
811
|
+
*/
|
|
812
|
+
CreateAt?: number;
|
|
813
|
+
/**
|
|
814
|
+
* 更新时间
|
|
815
|
+
*/
|
|
816
|
+
UpdateAt?: number;
|
|
817
|
+
/**
|
|
818
|
+
* 模型能力
|
|
819
|
+
*/
|
|
820
|
+
SupportedCapabilities?: string[];
|
|
821
|
+
/**
|
|
822
|
+
* 图标
|
|
723
823
|
*/
|
|
724
824
|
Icon?: string;
|
|
725
825
|
/**
|
|
726
|
-
*
|
|
826
|
+
* 定价策略
|
|
727
827
|
*/
|
|
728
828
|
Pricing?: {
|
|
729
829
|
/**
|
|
@@ -738,91 +838,273 @@ export interface GetUMInferAPIModelResponse {
|
|
|
738
838
|
* 生图定价
|
|
739
839
|
*/
|
|
740
840
|
Image?: number;
|
|
841
|
+
/**
|
|
842
|
+
* 生视频定价
|
|
843
|
+
*/
|
|
844
|
+
Video?: string;
|
|
741
845
|
/**
|
|
742
846
|
* 币种
|
|
743
847
|
*/
|
|
744
848
|
Currency?: string;
|
|
849
|
+
/**
|
|
850
|
+
* 单位(中文),如“次” “百万”
|
|
851
|
+
*/
|
|
852
|
+
Unit?: string;
|
|
853
|
+
/**
|
|
854
|
+
* 单位(English),如“Time” “Million”
|
|
855
|
+
*/
|
|
856
|
+
UnitEn?: string;
|
|
745
857
|
};
|
|
746
858
|
/**
|
|
747
|
-
*
|
|
748
|
-
*/
|
|
749
|
-
CreateAt?: number;
|
|
750
|
-
/**
|
|
751
|
-
* 更新时间
|
|
859
|
+
* 价格阶梯(有序数组)
|
|
752
860
|
*/
|
|
753
|
-
|
|
754
|
-
|
|
861
|
+
Tiers?: {
|
|
862
|
+
/**
|
|
863
|
+
* 该档位下的收费列表(有序数组)
|
|
864
|
+
*/
|
|
865
|
+
Rates: {
|
|
866
|
+
/**
|
|
867
|
+
* 收费项描述英文描述
|
|
868
|
+
*/
|
|
869
|
+
ChargeItemDescriptionEn: string;
|
|
870
|
+
/**
|
|
871
|
+
* 货币单位
|
|
872
|
+
*/
|
|
873
|
+
Currency: string;
|
|
874
|
+
/**
|
|
875
|
+
* 计价单位
|
|
876
|
+
*/
|
|
877
|
+
Unit: string;
|
|
878
|
+
/**
|
|
879
|
+
* 计价单位英文
|
|
880
|
+
*/
|
|
881
|
+
UnitEn: string;
|
|
882
|
+
/**
|
|
883
|
+
* 收费项:input/output/thinking/tool...
|
|
884
|
+
*/
|
|
885
|
+
ChargeItem?: string;
|
|
886
|
+
/**
|
|
887
|
+
* 收费项描述
|
|
888
|
+
*/
|
|
889
|
+
ChargeItemDescription?: string;
|
|
890
|
+
/**
|
|
891
|
+
* 价格
|
|
892
|
+
*/
|
|
893
|
+
Price?: string;
|
|
894
|
+
}[];
|
|
895
|
+
/**
|
|
896
|
+
* 档位描述(例如 "标准上下文 32k")
|
|
897
|
+
*/
|
|
898
|
+
DescriptionEn: string;
|
|
899
|
+
/**
|
|
900
|
+
* 档位/条件(例如 "32k"、"128k")
|
|
901
|
+
*/
|
|
902
|
+
Condition?: string;
|
|
903
|
+
/**
|
|
904
|
+
* 档位描述(例如 "标准上下文 32k")
|
|
905
|
+
*/
|
|
906
|
+
Description?: string;
|
|
907
|
+
}[];
|
|
908
|
+
};
|
|
755
909
|
}
|
|
756
910
|
/**
|
|
757
|
-
*
|
|
911
|
+
* GetUFSquareModelPrices - 批量查询模型价格
|
|
758
912
|
*/
|
|
759
|
-
export interface
|
|
760
|
-
/**
|
|
761
|
-
* apikey的id
|
|
762
|
-
*/
|
|
763
|
-
KeyId: string;
|
|
913
|
+
export interface GetUFSquareModelPricesRequest {
|
|
764
914
|
/**
|
|
765
|
-
*
|
|
915
|
+
* 模型名称模糊搜索(例:deepseek-r1)
|
|
766
916
|
*/
|
|
767
|
-
|
|
917
|
+
Keyword?: string;
|
|
768
918
|
/**
|
|
769
|
-
*
|
|
919
|
+
* 列表起始位置偏移量,默认为0
|
|
770
920
|
*/
|
|
771
|
-
|
|
921
|
+
Offset?: number;
|
|
772
922
|
/**
|
|
773
|
-
*
|
|
923
|
+
* 返回数据长度,默认为20
|
|
774
924
|
*/
|
|
775
|
-
|
|
925
|
+
Limit?: number;
|
|
776
926
|
}
|
|
777
927
|
/**
|
|
778
|
-
*
|
|
928
|
+
* GetUFSquareModelPrices - 批量查询模型价格
|
|
779
929
|
*/
|
|
780
|
-
export interface
|
|
930
|
+
export interface GetUFSquareModelPricesResponse {
|
|
781
931
|
/**
|
|
782
|
-
*
|
|
932
|
+
* 匹配模型的价格信息
|
|
783
933
|
*/
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* 总token量
|
|
787
|
-
*/
|
|
788
|
-
Total?: number;
|
|
789
|
-
/**
|
|
790
|
-
* 输出总token
|
|
791
|
-
*/
|
|
792
|
-
InTotal?: number;
|
|
934
|
+
Models: {
|
|
793
935
|
/**
|
|
794
|
-
*
|
|
936
|
+
* 制造商
|
|
795
937
|
*/
|
|
796
|
-
|
|
938
|
+
Manufacturer: string;
|
|
797
939
|
/**
|
|
798
|
-
*
|
|
940
|
+
* 模型名称
|
|
799
941
|
*/
|
|
800
|
-
|
|
942
|
+
ModelName?: string;
|
|
801
943
|
/**
|
|
802
|
-
*
|
|
944
|
+
* ModelId
|
|
803
945
|
*/
|
|
804
|
-
|
|
946
|
+
ModelId?: string;
|
|
805
947
|
/**
|
|
806
|
-
*
|
|
948
|
+
* 价格阶梯(有序数组)
|
|
807
949
|
*/
|
|
808
|
-
|
|
950
|
+
Tiers?: {
|
|
809
951
|
/**
|
|
810
|
-
*
|
|
952
|
+
* 该档位下的收费列表(有序数组)
|
|
811
953
|
*/
|
|
812
|
-
|
|
954
|
+
Rates: {
|
|
955
|
+
/**
|
|
956
|
+
* 收费项描述英文描述
|
|
957
|
+
*/
|
|
958
|
+
ChargeItemDescriptionEn: string;
|
|
959
|
+
/**
|
|
960
|
+
* 货币单位
|
|
961
|
+
*/
|
|
962
|
+
Currency: string;
|
|
963
|
+
/**
|
|
964
|
+
* 计价单位
|
|
965
|
+
*/
|
|
966
|
+
Unit: string;
|
|
967
|
+
/**
|
|
968
|
+
* 计价单位英文
|
|
969
|
+
*/
|
|
970
|
+
UnitEn: string;
|
|
971
|
+
/**
|
|
972
|
+
* 收费项:input/output/thinking/tool...
|
|
973
|
+
*/
|
|
974
|
+
ChargeItem?: string;
|
|
975
|
+
/**
|
|
976
|
+
* 收费项描述
|
|
977
|
+
*/
|
|
978
|
+
ChargeItemDescription?: string;
|
|
979
|
+
/**
|
|
980
|
+
* 价格
|
|
981
|
+
*/
|
|
982
|
+
Price?: string;
|
|
983
|
+
}[];
|
|
813
984
|
/**
|
|
814
|
-
*
|
|
985
|
+
* 档位描述(例如 "标准上下文 32k")
|
|
815
986
|
*/
|
|
816
|
-
|
|
987
|
+
DescriptionEn: string;
|
|
817
988
|
/**
|
|
818
|
-
*
|
|
989
|
+
* 档位/条件(例如 "32k"、"128k")
|
|
819
990
|
*/
|
|
820
|
-
|
|
991
|
+
Condition?: string;
|
|
821
992
|
/**
|
|
822
|
-
*
|
|
993
|
+
* 档位描述(例如 "标准上下文 32k")
|
|
823
994
|
*/
|
|
824
|
-
|
|
995
|
+
Description?: string;
|
|
825
996
|
}[];
|
|
997
|
+
}[];
|
|
998
|
+
/**
|
|
999
|
+
* 总条数用于翻页
|
|
1000
|
+
*/
|
|
1001
|
+
TotalCount?: number;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* GetUMInferRequestLogDetail - 原始日志详情
|
|
1005
|
+
*/
|
|
1006
|
+
export interface GetUMInferRequestLogDetailRequest {
|
|
1007
|
+
/**
|
|
1008
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
1009
|
+
*/
|
|
1010
|
+
Zone: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* 请求 ID
|
|
1013
|
+
*/
|
|
1014
|
+
RequestId: string;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* GetUMInferRequestLogDetail - 原始日志详情
|
|
1018
|
+
*/
|
|
1019
|
+
export interface GetUMInferRequestLogDetailResponse {
|
|
1020
|
+
/**
|
|
1021
|
+
* 请求日志详情
|
|
1022
|
+
*/
|
|
1023
|
+
Data: {
|
|
1024
|
+
/**
|
|
1025
|
+
* 请求 ID
|
|
1026
|
+
*/
|
|
1027
|
+
RequestId?: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* 顶级组织 ID
|
|
1030
|
+
*/
|
|
1031
|
+
TopOrganizationId?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* 组织 ID
|
|
1034
|
+
*/
|
|
1035
|
+
OrganizationId?: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* 客户端 IP
|
|
1038
|
+
*/
|
|
1039
|
+
ClientIp?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* 业务地域
|
|
1042
|
+
*/
|
|
1043
|
+
Region?: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* 请求开始时间,Unix 毫秒时间戳
|
|
1046
|
+
*/
|
|
1047
|
+
StartTime?: number;
|
|
1048
|
+
/**
|
|
1049
|
+
* 请求开始时间,可读格式
|
|
1050
|
+
*/
|
|
1051
|
+
StartTimeReadable?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* 模型名称
|
|
1054
|
+
*/
|
|
1055
|
+
ModelName?: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* 是否流式请求
|
|
1058
|
+
*/
|
|
1059
|
+
IsStream?: boolean;
|
|
1060
|
+
/**
|
|
1061
|
+
* API Key ID
|
|
1062
|
+
*/
|
|
1063
|
+
ApiKeyId?: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* HTTP 状态码
|
|
1066
|
+
*/
|
|
1067
|
+
HttpStatusCode?: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* 错误码
|
|
1070
|
+
*/
|
|
1071
|
+
ErrorCode?: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* 错误信息
|
|
1074
|
+
*/
|
|
1075
|
+
ErrorMessage?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* 请求是否成功
|
|
1078
|
+
*/
|
|
1079
|
+
IsSuccess?: boolean;
|
|
1080
|
+
/**
|
|
1081
|
+
* 请求总延迟,单位毫秒
|
|
1082
|
+
*/
|
|
1083
|
+
Latency?: number;
|
|
1084
|
+
/**
|
|
1085
|
+
* 首 Token 延迟,单位毫秒
|
|
1086
|
+
*/
|
|
1087
|
+
FirstTokenLatency?: number;
|
|
1088
|
+
/**
|
|
1089
|
+
* 输出 Token 吞吐
|
|
1090
|
+
*/
|
|
1091
|
+
OutputTokenThroughput?: number;
|
|
1092
|
+
/**
|
|
1093
|
+
* 模型返回的 usage 原文 JSON
|
|
1094
|
+
*/
|
|
1095
|
+
Usage?: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* 请求原文,本期返回为空
|
|
1098
|
+
*/
|
|
1099
|
+
Request?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* 响应原文,本期返回为空
|
|
1102
|
+
*/
|
|
1103
|
+
Response?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* 扩展信息,本期返回为空
|
|
1106
|
+
*/
|
|
1107
|
+
Extras?: string;
|
|
826
1108
|
};
|
|
827
1109
|
}
|
|
828
1110
|
/**
|
|
@@ -1248,6 +1530,10 @@ export interface ListUFSquareModelResponse {
|
|
|
1248
1530
|
* 广场模型
|
|
1249
1531
|
*/
|
|
1250
1532
|
SquareModels: {
|
|
1533
|
+
/**
|
|
1534
|
+
* 制造商
|
|
1535
|
+
*/
|
|
1536
|
+
Manufacturer?: string;
|
|
1251
1537
|
/**
|
|
1252
1538
|
* 主键
|
|
1253
1539
|
*/
|
|
@@ -1312,13 +1598,89 @@ export interface ListUFSquareModelResponse {
|
|
|
1312
1598
|
* 生图定价
|
|
1313
1599
|
*/
|
|
1314
1600
|
Image?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* 生视频定价
|
|
1603
|
+
*/
|
|
1604
|
+
Video?: string;
|
|
1315
1605
|
/**
|
|
1316
1606
|
* 币种
|
|
1317
1607
|
*/
|
|
1318
1608
|
Currency?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* 单位(中文),如“次” “百万”
|
|
1611
|
+
*/
|
|
1612
|
+
Unit?: string;
|
|
1613
|
+
/**
|
|
1614
|
+
* 单位(English),如“Time” “Million”
|
|
1615
|
+
*/
|
|
1616
|
+
UnitEn?: string;
|
|
1319
1617
|
};
|
|
1618
|
+
/**
|
|
1619
|
+
* 价格阶梯(有序数组)
|
|
1620
|
+
*/
|
|
1621
|
+
Tiers?: {
|
|
1622
|
+
/**
|
|
1623
|
+
* 该档位下的收费列表(有序数组)
|
|
1624
|
+
*/
|
|
1625
|
+
Rates: {
|
|
1626
|
+
/**
|
|
1627
|
+
* 收费项描述英文描述
|
|
1628
|
+
*/
|
|
1629
|
+
ChargeItemDescriptionEn: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* 货币单位
|
|
1632
|
+
*/
|
|
1633
|
+
Currency: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* 计价单位
|
|
1636
|
+
*/
|
|
1637
|
+
Unit: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* 计价单位英文
|
|
1640
|
+
*/
|
|
1641
|
+
UnitEn: string;
|
|
1642
|
+
/**
|
|
1643
|
+
* 收费项:input/output/thinking/tool...
|
|
1644
|
+
*/
|
|
1645
|
+
ChargeItem?: string;
|
|
1646
|
+
/**
|
|
1647
|
+
* 收费项描述
|
|
1648
|
+
*/
|
|
1649
|
+
ChargeItemDescription?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* 价格
|
|
1652
|
+
*/
|
|
1653
|
+
Price?: string;
|
|
1654
|
+
}[];
|
|
1655
|
+
/**
|
|
1656
|
+
* 档位描述(例如 "标准上下文 32k")
|
|
1657
|
+
*/
|
|
1658
|
+
DescriptionEn: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* 档位/条件(例如 "32k"、"128k")
|
|
1661
|
+
*/
|
|
1662
|
+
Condition?: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* 档位描述(例如 "标准上下文 32k")
|
|
1665
|
+
*/
|
|
1666
|
+
Description?: string;
|
|
1667
|
+
}[];
|
|
1320
1668
|
}[];
|
|
1321
1669
|
}
|
|
1670
|
+
/**
|
|
1671
|
+
* ListUFSquareModelFiltersAuth - 登录状态下获取模型广场过滤器中内容
|
|
1672
|
+
*/
|
|
1673
|
+
export interface ListUFSquareModelFiltersAuthRequest {
|
|
1674
|
+
/**
|
|
1675
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
1676
|
+
*/
|
|
1677
|
+
Zone: string;
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* ListUFSquareModelFiltersAuth - 登录状态下获取模型广场过滤器中内容
|
|
1681
|
+
*/
|
|
1682
|
+
export interface ListUFSquareModelFiltersAuthResponse {
|
|
1683
|
+
}
|
|
1322
1684
|
/**
|
|
1323
1685
|
* ListUMInferAPIKey - 列表查询apikey
|
|
1324
1686
|
*/
|
|
@@ -1422,6 +1784,155 @@ export interface ListUMInferAPIKeyResponse {
|
|
|
1422
1784
|
GrantedModels?: string[];
|
|
1423
1785
|
}[];
|
|
1424
1786
|
}
|
|
1787
|
+
/**
|
|
1788
|
+
* ListUMInferRequestLogs - 日志明细列表
|
|
1789
|
+
*/
|
|
1790
|
+
export interface ListUMInferRequestLogsRequest {
|
|
1791
|
+
/**
|
|
1792
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
1793
|
+
*/
|
|
1794
|
+
Zone: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* 查询开始时间,Unix 毫秒时间戳
|
|
1797
|
+
*/
|
|
1798
|
+
StartTime: number;
|
|
1799
|
+
/**
|
|
1800
|
+
* 查询结束时间,Unix 毫秒时间戳,必须大于等于 StartTime
|
|
1801
|
+
*/
|
|
1802
|
+
EndTime: number;
|
|
1803
|
+
/**
|
|
1804
|
+
* 模型名称列表,用于过滤
|
|
1805
|
+
*/
|
|
1806
|
+
ModelNames?: string[];
|
|
1807
|
+
/**
|
|
1808
|
+
* API Key ID 列表,用于过滤
|
|
1809
|
+
*/
|
|
1810
|
+
ApiKeyIds?: string[];
|
|
1811
|
+
/**
|
|
1812
|
+
* 请求 ID,用于精确过滤
|
|
1813
|
+
*/
|
|
1814
|
+
RequestId?: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* 列表偏移量,默认 0
|
|
1817
|
+
*/
|
|
1818
|
+
Offset?: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* 返回数量,默认 20
|
|
1821
|
+
*/
|
|
1822
|
+
Limit?: number;
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* ListUMInferRequestLogs - 日志明细列表
|
|
1826
|
+
*/
|
|
1827
|
+
export interface ListUMInferRequestLogsResponse {
|
|
1828
|
+
/**
|
|
1829
|
+
* 日志明细列表返回数据
|
|
1830
|
+
*/
|
|
1831
|
+
Data: {
|
|
1832
|
+
/**
|
|
1833
|
+
* 汇总信息
|
|
1834
|
+
*/
|
|
1835
|
+
Summary?: {
|
|
1836
|
+
/**
|
|
1837
|
+
* 查询条件命中的总请求数
|
|
1838
|
+
*/
|
|
1839
|
+
TotalRequests?: number;
|
|
1840
|
+
/**
|
|
1841
|
+
* 查询条件命中的失败请求数
|
|
1842
|
+
*/
|
|
1843
|
+
FailedRequests?: number;
|
|
1844
|
+
};
|
|
1845
|
+
/**
|
|
1846
|
+
* 日志列表,数组元素为 RequestLogItem
|
|
1847
|
+
*/
|
|
1848
|
+
Items?: {
|
|
1849
|
+
/**
|
|
1850
|
+
* 请求 ID
|
|
1851
|
+
*/
|
|
1852
|
+
RequestId?: string;
|
|
1853
|
+
/**
|
|
1854
|
+
* 请求开始时间,Unix 毫秒时间戳
|
|
1855
|
+
*/
|
|
1856
|
+
StartTime?: number;
|
|
1857
|
+
/**
|
|
1858
|
+
* 请求开始时间,可读格式
|
|
1859
|
+
*/
|
|
1860
|
+
StartTimeReadable?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* 业务地域
|
|
1863
|
+
*/
|
|
1864
|
+
Region?: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* 模型名称
|
|
1867
|
+
*/
|
|
1868
|
+
ModelName?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* API Key ID
|
|
1871
|
+
*/
|
|
1872
|
+
ApiKeyId?: string;
|
|
1873
|
+
/**
|
|
1874
|
+
* API Key 名称
|
|
1875
|
+
*/
|
|
1876
|
+
ApiKeyName?: string;
|
|
1877
|
+
/**
|
|
1878
|
+
* 请求总延迟,单位毫秒
|
|
1879
|
+
*/
|
|
1880
|
+
Latency?: number;
|
|
1881
|
+
/**
|
|
1882
|
+
* 首 Token 延迟,单位毫秒
|
|
1883
|
+
*/
|
|
1884
|
+
FirstTokenLatency?: number;
|
|
1885
|
+
/**
|
|
1886
|
+
* 输出 Token 吞吐
|
|
1887
|
+
*/
|
|
1888
|
+
OutputTokenThroughput?: number;
|
|
1889
|
+
/**
|
|
1890
|
+
* HTTP 状态码
|
|
1891
|
+
*/
|
|
1892
|
+
HttpStatusCode?: number;
|
|
1893
|
+
/**
|
|
1894
|
+
* 错误码
|
|
1895
|
+
*/
|
|
1896
|
+
ErrorCode?: string;
|
|
1897
|
+
/**
|
|
1898
|
+
* 请求是否成功
|
|
1899
|
+
*/
|
|
1900
|
+
IsSuccess?: boolean;
|
|
1901
|
+
/**
|
|
1902
|
+
* 总 Token 数
|
|
1903
|
+
*/
|
|
1904
|
+
TotalTokens?: number;
|
|
1905
|
+
/**
|
|
1906
|
+
* 输入 Token 数
|
|
1907
|
+
*/
|
|
1908
|
+
PromptTokens?: number;
|
|
1909
|
+
/**
|
|
1910
|
+
* 输出 Token 数
|
|
1911
|
+
*/
|
|
1912
|
+
CompletionTokens?: number;
|
|
1913
|
+
/**
|
|
1914
|
+
* 缓存命中 Token 数
|
|
1915
|
+
*/
|
|
1916
|
+
CacheHitTokens?: number;
|
|
1917
|
+
/**
|
|
1918
|
+
* 缓存写入 Token 数
|
|
1919
|
+
*/
|
|
1920
|
+
CacheCreationTokens?: number;
|
|
1921
|
+
/**
|
|
1922
|
+
* 5 分钟缓存写入 Token 数
|
|
1923
|
+
*/
|
|
1924
|
+
CacheCreation5mTokens?: number;
|
|
1925
|
+
/**
|
|
1926
|
+
* 1 小时缓存写入 Token 数
|
|
1927
|
+
*/
|
|
1928
|
+
CacheCreation1hTokens?: number;
|
|
1929
|
+
/**
|
|
1930
|
+
* 是否存在推理日志
|
|
1931
|
+
*/
|
|
1932
|
+
HasInferenceLog?: boolean;
|
|
1933
|
+
}[];
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1425
1936
|
/**
|
|
1426
1937
|
* ListUnpaidOrderSummary - 按指定维度汇总查询欠费订单的统计数据
|
|
1427
1938
|
*/
|
|
@@ -1772,6 +2283,45 @@ export interface ListUnpaidOrdersResponse {
|
|
|
1772
2283
|
ProductCodeDisplay?: string;
|
|
1773
2284
|
}[];
|
|
1774
2285
|
}
|
|
2286
|
+
/**
|
|
2287
|
+
* StartPayUnpaidOrders - 批量支付欠费订单,指定 OrderNos 支付,最多 50 个
|
|
2288
|
+
*/
|
|
2289
|
+
export interface StartPayUnpaidOrdersRequest {
|
|
2290
|
+
/**
|
|
2291
|
+
* 欠费订单号列表,最多 50 个
|
|
2292
|
+
*/
|
|
2293
|
+
OrderNos: string[];
|
|
2294
|
+
}
|
|
2295
|
+
/**
|
|
2296
|
+
* StartPayUnpaidOrders - 批量支付欠费订单,指定 OrderNos 支付,最多 50 个
|
|
2297
|
+
*/
|
|
2298
|
+
export interface StartPayUnpaidOrdersResponse {
|
|
2299
|
+
/**
|
|
2300
|
+
* 支付成功数量
|
|
2301
|
+
*/
|
|
2302
|
+
SuccessCount: number;
|
|
2303
|
+
/**
|
|
2304
|
+
* 支付失败数量
|
|
2305
|
+
*/
|
|
2306
|
+
FailureCount: number;
|
|
2307
|
+
/**
|
|
2308
|
+
* 支付结果
|
|
2309
|
+
*/
|
|
2310
|
+
Results?: {
|
|
2311
|
+
/**
|
|
2312
|
+
* 订单号
|
|
2313
|
+
*/
|
|
2314
|
+
OrderNo?: string;
|
|
2315
|
+
/**
|
|
2316
|
+
* 是否支付成功
|
|
2317
|
+
*/
|
|
2318
|
+
Success?: boolean;
|
|
2319
|
+
/**
|
|
2320
|
+
* 失败原因(成功时为空)
|
|
2321
|
+
*/
|
|
2322
|
+
Reason?: string;
|
|
2323
|
+
};
|
|
2324
|
+
}
|
|
1775
2325
|
/**
|
|
1776
2326
|
* UpdateUMInferAPIKey - 更新apikey
|
|
1777
2327
|
*/
|
|
@@ -57,6 +57,15 @@ class UAIModelverseClient extends client_1.default {
|
|
|
57
57
|
const args = Object.assign({ Action: 'DownloadOrderSummary' }, (request || {}));
|
|
58
58
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* DownloadUMInferRequestLog - 导出推理请求日志。单次导出时间范围最长 30 天,最多导出 2000 万条日志;同一 TopOrganizationID 同一时间仅允许 1 个导出任务在执行,已有任务执行中时请稍后重试。
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_um_infer_request_log
|
|
64
|
+
*/
|
|
65
|
+
downloadUMInferRequestLog(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'DownloadUMInferRequestLog' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
60
69
|
/**
|
|
61
70
|
* GetFilterOptions - 查询可用于订单筛选的资源、模型、地域等选项列表
|
|
62
71
|
*
|
|
@@ -76,21 +85,30 @@ class UAIModelverseClient extends client_1.default {
|
|
|
76
85
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
86
|
}
|
|
78
87
|
/**
|
|
79
|
-
*
|
|
88
|
+
* GetUFSquareModelDetail - 获取广场模型详情
|
|
80
89
|
*
|
|
81
|
-
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_uf_square_model_detail
|
|
82
91
|
*/
|
|
83
|
-
|
|
84
|
-
const args = Object.assign({ Action: '
|
|
92
|
+
getUFSquareModelDetail(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'GetUFSquareModelDetail' }, (request || {}));
|
|
85
94
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
95
|
}
|
|
87
96
|
/**
|
|
88
|
-
*
|
|
97
|
+
* GetUFSquareModelPrices - 批量查询模型价格
|
|
89
98
|
*
|
|
90
|
-
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_uf_square_model_prices
|
|
91
100
|
*/
|
|
92
|
-
|
|
93
|
-
const args = Object.assign({ Action: '
|
|
101
|
+
getUFSquareModelPrices(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'GetUFSquareModelPrices' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* GetUMInferRequestLogDetail - 原始日志详情
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_um_infer_request_log_detail
|
|
109
|
+
*/
|
|
110
|
+
getUMInferRequestLogDetail(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'GetUMInferRequestLogDetail' }, (request || {}));
|
|
94
112
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
113
|
}
|
|
96
114
|
/**
|
|
@@ -120,6 +138,15 @@ class UAIModelverseClient extends client_1.default {
|
|
|
120
138
|
const args = Object.assign({ Action: 'ListUFSquareModel' }, (request || {}));
|
|
121
139
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* ListUFSquareModelFiltersAuth - 登录状态下获取模型广场过滤器中内容
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_uf_square_model_filters_auth
|
|
145
|
+
*/
|
|
146
|
+
listUFSquareModelFiltersAuth(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'ListUFSquareModelFiltersAuth' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
123
150
|
/**
|
|
124
151
|
* ListUMInferAPIKey - 列表查询apikey
|
|
125
152
|
*
|
|
@@ -129,6 +156,15 @@ class UAIModelverseClient extends client_1.default {
|
|
|
129
156
|
const args = Object.assign({ Action: 'ListUMInferAPIKey' }, (request || {}));
|
|
130
157
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* ListUMInferRequestLogs - 日志明细列表
|
|
161
|
+
*
|
|
162
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_request_logs
|
|
163
|
+
*/
|
|
164
|
+
listUMInferRequestLogs(request) {
|
|
165
|
+
const args = Object.assign({ Action: 'ListUMInferRequestLogs' }, (request || {}));
|
|
166
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
167
|
+
}
|
|
132
168
|
/**
|
|
133
169
|
* ListUnpaidOrderSummary - 按指定维度汇总查询欠费订单的统计数据
|
|
134
170
|
*
|
|
@@ -147,6 +183,15 @@ class UAIModelverseClient extends client_1.default {
|
|
|
147
183
|
const args = Object.assign({ Action: 'ListUnpaidOrders' }, (request || {}));
|
|
148
184
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* StartPayUnpaidOrders - 批量支付欠费订单,指定 OrderNos 支付,最多 50 个
|
|
188
|
+
*
|
|
189
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/start_pay_unpaid_orders
|
|
190
|
+
*/
|
|
191
|
+
startPayUnpaidOrders(request) {
|
|
192
|
+
const args = Object.assign({ Action: 'StartPayUnpaidOrders' }, (request || {}));
|
|
193
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
194
|
+
}
|
|
150
195
|
/**
|
|
151
196
|
* UpdateUMInferAPIKey - 更新apikey
|
|
152
197
|
*
|