@ucloud-sdks/ucloud-sdk-js 0.2.45 → 0.2.46

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.
@@ -801,7 +801,15 @@ export interface GetUFSquareModelDetailResponse {
801
801
  /**
802
802
  * 关联的 batch 模型广场id
803
803
  */
804
- BatchSquareModelId: string;
804
+ BatchSquareModelId?: string;
805
+ /**
806
+ * 一级分类
807
+ */
808
+ ModelCategory?: string;
809
+ /**
810
+ * 二级分类列表
811
+ */
812
+ ModelSubCategories?: string;
805
813
  /**
806
814
  * 是否关联有可用 batch 模型
807
815
  */
@@ -810,6 +818,39 @@ export interface GetUFSquareModelDetailResponse {
810
818
  * 关联的 batch 模型名称
811
819
  */
812
820
  BatchName?: string;
821
+ /**
822
+ * 是否有关联的推理地域模型
823
+ */
824
+ IsHasInferenceRegions?: boolean;
825
+ /**
826
+ * 推理地域模型列表
827
+ */
828
+ InferenceRegions?: {
829
+ /**
830
+ * 地域代码: sg(新加坡)/us(美国)/hk(香港)
831
+ */
832
+ RegionCode?: string;
833
+ /**
834
+ * 地域名称: 新加坡/美国/香港
835
+ */
836
+ RegionName?: string;
837
+ /**
838
+ * 地域名称(英文): Singapore/United States/Hong Kong
839
+ */
840
+ RegionNameEn?: string;
841
+ /**
842
+ * 地域模型ID (例如: deepseek-v4-flash-sg)
843
+ */
844
+ ModelId?: string;
845
+ /**
846
+ * 广场模型ID (umodel-xxx)
847
+ */
848
+ SquareModelId?: string;
849
+ /**
850
+ * 状态: published(已发布)/unpublished(未发布)
851
+ */
852
+ Status?: string;
853
+ }[];
813
854
  /**
814
855
  * 制造商
815
856
  */
@@ -835,13 +876,62 @@ export interface GetUFSquareModelDetailResponse {
835
876
  */
836
877
  Language?: string[];
837
878
  /**
838
- * 模型长度
879
+ * 模型长度,单位 token
839
880
  */
840
881
  MaxModelLen?: number;
882
+ /**
883
+ * 模型长度,单位 K tokens
884
+ */
885
+ MaxModelLenNew?: number;
886
+ /**
887
+ * 最大输入token数
888
+ */
889
+ MaxInputTokens?: number;
890
+ /**
891
+ * 最大输出token数
892
+ */
893
+ MaxOutputTokens?: number;
894
+ /**
895
+ * 模型类型映射
896
+ */
897
+ ModelTypeMap?: {
898
+ /**
899
+ * 文生文模型,true 表示是文生文模型,下同
900
+ */
901
+ TextGeneration?: boolean;
902
+ /**
903
+ * 图生图模型
904
+ */
905
+ ImageToImage?: boolean;
906
+ /**
907
+ * 文生图模型
908
+ */
909
+ TextToImage?: boolean;
910
+ /**
911
+ * 文生视频模型
912
+ */
913
+ TextToVideo?: boolean;
914
+ /**
915
+ * 图生视频模型
916
+ */
917
+ ImageToVideo?: boolean;
918
+ /**
919
+ * 海外模型
920
+ */
921
+ Sensitive?: boolean;
922
+ /**
923
+ * 微调模型
924
+ */
925
+ Inference?: boolean;
926
+ };
841
927
  /**
842
928
  * 模型类型
843
929
  */
844
930
  ModelType?: string;
931
+ /**
932
+ * 模型封面链接
933
+ */
934
+ CoverUrl?: string;
845
935
  /**
846
936
  * HuggingFace 更新时间
847
937
  */
@@ -858,6 +948,76 @@ export interface GetUFSquareModelDetailResponse {
858
948
  * 模型能力
859
949
  */
860
950
  SupportedCapabilities?: string[];
951
+ /**
952
+ * 模型能力详细映射
953
+ */
954
+ Capabilities?: {
955
+ /**
956
+ * 是否支持上下文缓存
957
+ */
958
+ ContextCaching?: boolean;
959
+ /**
960
+ * 是否支持批量推理
961
+ */
962
+ BatchInference?: boolean;
963
+ /**
964
+ * 是否支持结构化输出
965
+ */
966
+ StructuredOutput?: boolean;
967
+ /**
968
+ * 是否支持函数调用
969
+ */
970
+ FunctionCall?: boolean;
971
+ /**
972
+ * 是否支持联网搜索
973
+ */
974
+ WebSearch?: boolean;
975
+ /**
976
+ * 是否支持知识库
977
+ */
978
+ KnowledgeBase?: boolean;
979
+ /**
980
+ * 是否支持MCP
981
+ */
982
+ Mcp?: boolean;
983
+ /**
984
+ * 是否支持体验
985
+ */
986
+ Experience?: boolean;
987
+ };
988
+ /**
989
+ * 模型额外标签
990
+ */
991
+ ExtraModelTags?: string[];
992
+ /**
993
+ * api协议映射
994
+ */
995
+ ApiProtocols?: {
996
+ /**
997
+ * 是否支持chat协议
998
+ */
999
+ ChatCompletions?: boolean;
1000
+ /**
1001
+ * 是否支持responses协议
1002
+ */
1003
+ Responses?: boolean;
1004
+ /**
1005
+ * 是否支持gemini协议
1006
+ */
1007
+ Gemini?: boolean;
1008
+ /**
1009
+ * 是否支持Anthropic协议
1010
+ */
1011
+ Anthropic?: boolean;
1012
+ };
1013
+ /**
1014
+ * 输入模态
1015
+ */
1016
+ InputModalities?: string[];
1017
+ /**
1018
+ * 输出模态
1019
+ */
1020
+ OutputModalities?: string[];
861
1021
  /**
862
1022
  * 图标
863
1023
  */
@@ -1581,7 +1741,15 @@ export interface ListUFSquareModelResponse {
1581
1741
  /**
1582
1742
  * 关联的 batch 模型广场id
1583
1743
  */
1584
- BatchSquareModelId: string;
1744
+ BatchSquareModelId?: string;
1745
+ /**
1746
+ * 一级分类
1747
+ */
1748
+ ModelCategory?: string;
1749
+ /**
1750
+ * 二级分类列表
1751
+ */
1752
+ ModelSubCategories?: string;
1585
1753
  /**
1586
1754
  * 是否关联有可用 batch 模型
1587
1755
  */
@@ -1590,6 +1758,39 @@ export interface ListUFSquareModelResponse {
1590
1758
  * 关联的 batch 模型名称
1591
1759
  */
1592
1760
  BatchName?: string;
1761
+ /**
1762
+ * 是否有关联的推理地域模型
1763
+ */
1764
+ IsHasInferenceRegions?: boolean;
1765
+ /**
1766
+ * 推理地域模型列表
1767
+ */
1768
+ InferenceRegions?: {
1769
+ /**
1770
+ * 地域代码: sg(新加坡)/us(美国)/hk(香港)
1771
+ */
1772
+ RegionCode?: string;
1773
+ /**
1774
+ * 地域名称: 新加坡/美国/香港
1775
+ */
1776
+ RegionName?: string;
1777
+ /**
1778
+ * 地域名称(英文): Singapore/United States/Hong Kong
1779
+ */
1780
+ RegionNameEn?: string;
1781
+ /**
1782
+ * 地域模型ID (例如: deepseek-v4-flash-sg)
1783
+ */
1784
+ ModelId?: string;
1785
+ /**
1786
+ * 广场模型ID (umodel-xxx)
1787
+ */
1788
+ SquareModelId?: string;
1789
+ /**
1790
+ * 状态: published(已发布)/unpublished(未发布)
1791
+ */
1792
+ Status?: string;
1793
+ }[];
1593
1794
  /**
1594
1795
  * 制造商
1595
1796
  */
@@ -1615,13 +1816,62 @@ export interface ListUFSquareModelResponse {
1615
1816
  */
1616
1817
  Language?: string[];
1617
1818
  /**
1618
- * 模型长度
1819
+ * 模型长度,单位 token
1619
1820
  */
1620
1821
  MaxModelLen?: number;
1822
+ /**
1823
+ * 模型长度,单位 K tokens
1824
+ */
1825
+ MaxModelLenNew?: number;
1826
+ /**
1827
+ * 最大输入token数
1828
+ */
1829
+ MaxInputTokens?: number;
1830
+ /**
1831
+ * 最大输出token数
1832
+ */
1833
+ MaxOutputTokens?: number;
1834
+ /**
1835
+ * 模型类型映射
1836
+ */
1837
+ ModelTypeMap?: {
1838
+ /**
1839
+ * 文生文模型,true 表示是文生文模型,下同
1840
+ */
1841
+ TextGeneration?: boolean;
1842
+ /**
1843
+ * 图生图模型
1844
+ */
1845
+ ImageToImage?: boolean;
1846
+ /**
1847
+ * 文生图模型
1848
+ */
1849
+ TextToImage?: boolean;
1850
+ /**
1851
+ * 文生视频模型
1852
+ */
1853
+ TextToVideo?: boolean;
1854
+ /**
1855
+ * 图生视频模型
1856
+ */
1857
+ ImageToVideo?: boolean;
1858
+ /**
1859
+ * 海外模型
1860
+ */
1861
+ Sensitive?: boolean;
1862
+ /**
1863
+ * 微调模型
1864
+ */
1865
+ Inference?: boolean;
1866
+ };
1621
1867
  /**
1622
1868
  * 模型类型
1623
1869
  */
1624
1870
  ModelType?: string;
1871
+ /**
1872
+ * 模型封面链接
1873
+ */
1874
+ CoverUrl?: string;
1625
1875
  /**
1626
1876
  * HuggingFace 更新时间
1627
1877
  */
@@ -1638,6 +1888,76 @@ export interface ListUFSquareModelResponse {
1638
1888
  * 模型能力
1639
1889
  */
1640
1890
  SupportedCapabilities?: string[];
1891
+ /**
1892
+ * 模型能力详细映射
1893
+ */
1894
+ Capabilities?: {
1895
+ /**
1896
+ * 是否支持上下文缓存
1897
+ */
1898
+ ContextCaching?: boolean;
1899
+ /**
1900
+ * 是否支持批量推理
1901
+ */
1902
+ BatchInference?: boolean;
1903
+ /**
1904
+ * 是否支持结构化输出
1905
+ */
1906
+ StructuredOutput?: boolean;
1907
+ /**
1908
+ * 是否支持函数调用
1909
+ */
1910
+ FunctionCall?: boolean;
1911
+ /**
1912
+ * 是否支持联网搜索
1913
+ */
1914
+ WebSearch?: boolean;
1915
+ /**
1916
+ * 是否支持知识库
1917
+ */
1918
+ KnowledgeBase?: boolean;
1919
+ /**
1920
+ * 是否支持MCP
1921
+ */
1922
+ Mcp?: boolean;
1923
+ /**
1924
+ * 是否支持体验
1925
+ */
1926
+ Experience?: boolean;
1927
+ };
1928
+ /**
1929
+ * 模型额外标签
1930
+ */
1931
+ ExtraModelTags?: string[];
1932
+ /**
1933
+ * api协议映射
1934
+ */
1935
+ ApiProtocols?: {
1936
+ /**
1937
+ * 是否支持chat协议
1938
+ */
1939
+ ChatCompletions?: boolean;
1940
+ /**
1941
+ * 是否支持responses协议
1942
+ */
1943
+ Responses?: boolean;
1944
+ /**
1945
+ * 是否支持gemini协议
1946
+ */
1947
+ Gemini?: boolean;
1948
+ /**
1949
+ * 是否支持Anthropic协议
1950
+ */
1951
+ Anthropic?: boolean;
1952
+ };
1953
+ /**
1954
+ * 输入模态
1955
+ */
1956
+ InputModalities?: string[];
1957
+ /**
1958
+ * 输出模态
1959
+ */
1960
+ OutputModalities?: string[];
1641
1961
  /**
1642
1962
  * 图标
1643
1963
  */
@@ -1740,6 +2060,195 @@ export interface ListUFSquareModelFiltersAuthRequest {
1740
2060
  * ListUFSquareModelFiltersAuth - 登录状态下获取模型广场过滤器中内容
1741
2061
  */
1742
2062
  export interface ListUFSquareModelFiltersAuthResponse {
2063
+ /**
2064
+ * 模型类型筛选(一级/二级分类树)
2065
+ */
2066
+ ModalTypes?: {
2067
+ /**
2068
+ *
2069
+ */
2070
+ Children: string;
2071
+ /**
2072
+ * 显示标签
2073
+ */
2074
+ Label?: string;
2075
+ /**
2076
+ * 英文标签
2077
+ */
2078
+ LabelEn?: string;
2079
+ /**
2080
+ * 枚举值
2081
+ */
2082
+ Value?: string;
2083
+ }[];
2084
+ /**
2085
+ * 厂商选项
2086
+ */
2087
+ Manufacturers?: {
2088
+ /**
2089
+ *
2090
+ */
2091
+ Children: string;
2092
+ /**
2093
+ * 显示标签
2094
+ */
2095
+ Label?: string;
2096
+ /**
2097
+ * 英文标签
2098
+ */
2099
+ LabelEn?: string;
2100
+ /**
2101
+ * 枚举值
2102
+ */
2103
+ Value?: string;
2104
+ }[];
2105
+ /**
2106
+ * 最大上下文长度选项
2107
+ */
2108
+ MaxModelLens?: {
2109
+ /**
2110
+ *
2111
+ */
2112
+ Children: string;
2113
+ /**
2114
+ * 显示标签
2115
+ */
2116
+ Label?: string;
2117
+ /**
2118
+ * 英文标签
2119
+ */
2120
+ LabelEn?: string;
2121
+ /**
2122
+ * 枚举值
2123
+ */
2124
+ Value?: string;
2125
+ }[];
2126
+ /**
2127
+ * 能力选项
2128
+ */
2129
+ Capabilities?: {
2130
+ /**
2131
+ *
2132
+ */
2133
+ Children: string;
2134
+ /**
2135
+ * 显示标签
2136
+ */
2137
+ Label?: string;
2138
+ /**
2139
+ * 英文标签
2140
+ */
2141
+ LabelEn?: string;
2142
+ /**
2143
+ * 枚举值
2144
+ */
2145
+ Value?: string;
2146
+ }[];
2147
+ /**
2148
+ * 输入模态选项
2149
+ */
2150
+ InputModalities?: {
2151
+ /**
2152
+ *
2153
+ */
2154
+ Children: string;
2155
+ /**
2156
+ * 显示标签
2157
+ */
2158
+ Label?: string;
2159
+ /**
2160
+ * 英文标签
2161
+ */
2162
+ LabelEn?: string;
2163
+ /**
2164
+ * 枚举值
2165
+ */
2166
+ Value?: string;
2167
+ }[];
2168
+ /**
2169
+ * 输出模态选项
2170
+ */
2171
+ OutputModalities?: {
2172
+ /**
2173
+ *
2174
+ */
2175
+ Children: string;
2176
+ /**
2177
+ * 显示标签
2178
+ */
2179
+ Label?: string;
2180
+ /**
2181
+ * 英文标签
2182
+ */
2183
+ LabelEn?: string;
2184
+ /**
2185
+ * 枚举值
2186
+ */
2187
+ Value?: string;
2188
+ }[];
2189
+ /**
2190
+ * API协议选项
2191
+ */
2192
+ ApiProtocols?: {
2193
+ /**
2194
+ *
2195
+ */
2196
+ Children: string;
2197
+ /**
2198
+ * 显示标签
2199
+ */
2200
+ Label?: string;
2201
+ /**
2202
+ * 英文标签
2203
+ */
2204
+ LabelEn?: string;
2205
+ /**
2206
+ * 枚举值
2207
+ */
2208
+ Value?: string;
2209
+ }[];
2210
+ /**
2211
+ * 推理地域选项
2212
+ */
2213
+ InferenceRegions?: {
2214
+ /**
2215
+ *
2216
+ */
2217
+ Children: string;
2218
+ /**
2219
+ * 显示标签
2220
+ */
2221
+ Label?: string;
2222
+ /**
2223
+ * 英文标签
2224
+ */
2225
+ LabelEn?: string;
2226
+ /**
2227
+ * 枚举值
2228
+ */
2229
+ Value?: string;
2230
+ }[];
2231
+ /**
2232
+ * 模型状态选项
2233
+ */
2234
+ IsComingOffline?: {
2235
+ /**
2236
+ *
2237
+ */
2238
+ Children: string;
2239
+ /**
2240
+ * 显示标签
2241
+ */
2242
+ Label?: string;
2243
+ /**
2244
+ * 英文标签
2245
+ */
2246
+ LabelEn?: string;
2247
+ /**
2248
+ * 枚举值
2249
+ */
2250
+ Value?: string;
2251
+ }[];
1743
2252
  }
1744
2253
  /**
1745
2254
  * ListUMInferAPIKey - 列表查询apikey
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.45",
4
+ "version": "0.2.46",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,