MeUtils 2025.1.17.17.55.21__py3-none-any.whl → 2025.1.17.19.49.29__py3-none-any.whl
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.
- {MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/METADATA +28 -28
- {MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/RECORD +11 -11
- meutils/apis/fal/videos.py +1 -1
- meutils/apis/hailuoai/videos.py +1 -1
- meutils/data/VERSION +1 -1
- meutils/llm/completions/qwenllm.py +12 -2
- meutils/schemas/hailuo_types.py +26 -1
- {MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/LICENSE +0 -0
- {MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/WHEEL +0 -0
- {MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/entry_points.txt +0 -0
- {MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: MeUtils
|
3
|
-
Version: 2025.1.17.
|
3
|
+
Version: 2025.1.17.19.49.29
|
4
4
|
Summary: description
|
5
5
|
Home-page: https://github.com/yuanjie-ai/MeUtils
|
6
6
|
Author: yuanjie
|
@@ -63,42 +63,42 @@ Requires-Dist: sse-starlette ; extra == 'ai'
|
|
63
63
|
Requires-Dist: openai ; extra == 'ai'
|
64
64
|
Requires-Dist: langchain ; extra == 'ai'
|
65
65
|
Provides-Extra: all
|
66
|
-
Requires-Dist: sqlalchemy ; extra == 'all'
|
67
|
-
Requires-Dist: simplejson ; extra == 'all'
|
68
|
-
Requires-Dist: pandas-profiling[notebook] ; extra == 'all'
|
69
|
-
Requires-Dist: faiss-cpu ; extra == 'all'
|
70
|
-
Requires-Dist: fastapi[all] ; extra == 'all'
|
71
|
-
Requires-Dist: pymongo ; extra == 'all'
|
72
|
-
Requires-Dist: uvicorn ; extra == 'all'
|
73
|
-
Requires-Dist: cachetools ; extra == 'all'
|
74
|
-
Requires-Dist: gunicorn ; extra == 'all'
|
75
|
-
Requires-Dist: fastapi ; extra == 'all'
|
76
|
-
Requires-Dist: redis-py-cluster ; extra == 'all'
|
77
66
|
Requires-Dist: jieba ; extra == 'all'
|
78
|
-
Requires-Dist: pretty-errors ; extra == 'all'
|
79
|
-
Requires-Dist: jmespath ; extra == 'all'
|
80
|
-
Requires-Dist: filetype ; extra == 'all'
|
81
67
|
Requires-Dist: reportlab ; extra == 'all'
|
82
|
-
Requires-Dist:
|
68
|
+
Requires-Dist: fastapi[all] ; extra == 'all'
|
69
|
+
Requires-Dist: asyncmy ; extra == 'all'
|
83
70
|
Requires-Dist: pymupd ; extra == 'all'
|
84
|
-
Requires-Dist: pymysql ; extra == 'all'
|
85
|
-
Requires-Dist: dataframe-image ; extra == 'all'
|
86
|
-
Requires-Dist: jinja2 ; extra == 'all'
|
87
71
|
Requires-Dist: sse-starlette ; extra == 'all'
|
88
|
-
Requires-Dist:
|
89
|
-
Requires-Dist:
|
90
|
-
Requires-Dist:
|
72
|
+
Requires-Dist: sqlalchemy ; extra == 'all'
|
73
|
+
Requires-Dist: seaborn ; extra == 'all'
|
74
|
+
Requires-Dist: pretty-errors ; extra == 'all'
|
75
|
+
Requires-Dist: dataframe-image ; extra == 'all'
|
91
76
|
Requires-Dist: streamlit ; extra == 'all'
|
77
|
+
Requires-Dist: openai ; extra == 'all'
|
78
|
+
Requires-Dist: thefuck ; extra == 'all'
|
92
79
|
Requires-Dist: missingno ; extra == 'all'
|
80
|
+
Requires-Dist: pandas-summary ; extra == 'all'
|
81
|
+
Requires-Dist: langchain ; extra == 'all'
|
82
|
+
Requires-Dist: pymysql ; extra == 'all'
|
83
|
+
Requires-Dist: polars ; extra == 'all'
|
84
|
+
Requires-Dist: jmespath ; extra == 'all'
|
85
|
+
Requires-Dist: gunicorn ; extra == 'all'
|
86
|
+
Requires-Dist: pymongo ; extra == 'all'
|
93
87
|
Requires-Dist: schedule ; extra == 'all'
|
94
|
-
Requires-Dist:
|
95
|
-
Requires-Dist:
|
96
|
-
Requires-Dist:
|
88
|
+
Requires-Dist: filetype ; extra == 'all'
|
89
|
+
Requires-Dist: pandas-profiling[notebook] ; extra == 'all'
|
90
|
+
Requires-Dist: fastapi ; extra == 'all'
|
91
|
+
Requires-Dist: redis-py-cluster ; extra == 'all'
|
92
|
+
Requires-Dist: geopy ; extra == 'all'
|
93
|
+
Requires-Dist: uvicorn ; extra == 'all'
|
97
94
|
Requires-Dist: pymilvus ; extra == 'all'
|
98
|
-
Requires-Dist:
|
99
|
-
Requires-Dist:
|
95
|
+
Requires-Dist: jinja2 ; extra == 'all'
|
96
|
+
Requires-Dist: thriftpy2 ; extra == 'all'
|
97
|
+
Requires-Dist: cachetools ; extra == 'all'
|
98
|
+
Requires-Dist: iteration-utilities ; extra == 'all'
|
99
|
+
Requires-Dist: simplejson ; extra == 'all'
|
100
100
|
Requires-Dist: pyarrow ; extra == 'all'
|
101
|
-
Requires-Dist:
|
101
|
+
Requires-Dist: faiss-cpu ; extra == 'all'
|
102
102
|
Provides-Extra: ann
|
103
103
|
Requires-Dist: pymilvus ; extra == 'ann'
|
104
104
|
Requires-Dist: faiss-cpu ; extra == 'ann'
|
@@ -338,7 +338,7 @@ meutils/apis/fal/__init__.py,sha256=A7w3ZAS7Tv20N4X4Em6NshDxKSCPAzaPxHJTbM3BbyM,
|
|
338
338
|
meutils/apis/fal/files.py,sha256=Gppdo96uw8-TCDr8P691jV7dK9Si-E-kJXFJR5BVt-Q,1373
|
339
339
|
meutils/apis/fal/images.py,sha256=o4kgiLyzhRTBidnkcaEKXjAwd2KdPMTkfCfILnkF_bY,1819
|
340
340
|
meutils/apis/fal/images_.py,sha256=C-C1TTQtMJ6RRcd-4FeYPn0R5IpPRPUFmBbrTVs_ypA,1446
|
341
|
-
meutils/apis/fal/videos.py,sha256=
|
341
|
+
meutils/apis/fal/videos.py,sha256=Ohe5FZdYwsedenvLg-LxSX25TNq4ltdgcjzPf-kqLzE,2331
|
342
342
|
meutils/apis/gitee/__init__.py,sha256=rmAktsUvEtk7_F28P5C65wuu00nmrbu5bOw6PiCRTS0,271
|
343
343
|
meutils/apis/gitee/色情图片识别.py,sha256=liCftD7sL6Fw4Aq6r1PY-qxsxm5XkgVdDvlDR39lrEU,757
|
344
344
|
meutils/apis/gitee/images/__init__.py,sha256=zvS8e0ogQLqajZTAype1e0TDLJenlfbRQ16FjSYpxbY,243
|
@@ -348,7 +348,7 @@ meutils/apis/hailuoai/demo.py,sha256=WTnDFL2HgVpAjcn5BljLrbf2y2aATkvvNy75zoEIQkc
|
|
348
348
|
meutils/apis/hailuoai/hasha_new.py,sha256=1sD3fxmxYrEufmPaJZGAkYJoHKO85hfLXemnY-xYIO8,9101
|
349
349
|
meutils/apis/hailuoai/music.py,sha256=S_oi-ZDbocTfbRgREdXtGx50xzUc1PCZGuxmr917E7M,265
|
350
350
|
meutils/apis/hailuoai/upload.py,sha256=22S6W6hGQhUquVKqh7QCkXb6KHDl3iMKKi6Z0AJdFEI,6501
|
351
|
-
meutils/apis/hailuoai/videos.py,sha256=
|
351
|
+
meutils/apis/hailuoai/videos.py,sha256=oZy77nUn1zCspWMSTiM3yEYOIRlKWXRVZGODjAIbjwQ,21080
|
352
352
|
meutils/apis/hailuoai/yy.py,sha256=gJvr7VDa0YPEUkZuETdmCFWWheylDPoMUg8gbS_SVw8,8937
|
353
353
|
meutils/apis/hf/__init__.py,sha256=ZZoRl8yNYekoMhE__67XXBKNSYJaLgjtaa0netjJKUU,271
|
354
354
|
meutils/apis/hf/got_ocr.py,sha256=pZURFpryDh_Ak6PNiARztOzYgkjVrfScJ5-0XzMBrzI,1776
|
@@ -510,7 +510,7 @@ meutils/config_utils/lark_utils/demo.py,sha256=3g0Fs7oLaeW75T60gYWMLgyNg1OnfOjfH
|
|
510
510
|
meutils/config_utils/lark_utils/x.py,sha256=MlMQGhehP9xMEgetxVCX68XFaosfKoW1JA5cZ3JqN2w,1857
|
511
511
|
meutils/crawlers/__init__.py,sha256=TBU4xA-IOsHV-0yIkW7YXxn_QT7TT8NncqxO7IykEfs,271
|
512
512
|
meutils/data/SimHei.ttf,sha256=-XEnekS5yHP_URkT4XBI2w22ylV-KxudhkeIYFbrILA,10062565
|
513
|
-
meutils/data/VERSION,sha256=
|
513
|
+
meutils/data/VERSION,sha256=hJeUPBJyYp2N1Fnszo8eRX49KAnc42gBFtaM_s2ipBs,19
|
514
514
|
meutils/data/_FLAG,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
515
515
|
meutils/data/_SUCCESS,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
516
516
|
meutils/data/__init__.py,sha256=Hfwkkxs4zHqKhxht0YrhS566a9P5axtmgNvM5wF8ceQ,243
|
@@ -573,7 +573,7 @@ meutils/llm/completions/dify.py,sha256=dqL_8uxAp2d8M00pkyh2I30tflwi4pUyX-V6pwe3_
|
|
573
573
|
meutils/llm/completions/kimi.py,sha256=TSkLObebIAb_oivOMq3aKx9qoXcMy611_g2yIKex9eo,1541
|
574
574
|
meutils/llm/completions/modelscope.py,sha256=umPlJuHSL2RR0oNdTIAqts8iqEmGp_MR6Vh49g-UZuc,271
|
575
575
|
meutils/llm/completions/oi.py,sha256=DmvzxJfdLA_I3MWcULhFtiUdo90j7V2dLvYvmZ-Tm9U,293
|
576
|
-
meutils/llm/completions/qwenllm.py,sha256=
|
576
|
+
meutils/llm/completions/qwenllm.py,sha256=h2qxyWqBC0pID_DJfu7Be9EyUleZnKurUk9iNxXqqoQ,1904
|
577
577
|
meutils/llm/completions/rag.py,sha256=cpQ1aZX2QI1QDfFpODTxWHPYglK6_3qrlUM_KHLBNhc,1112
|
578
578
|
meutils/llm/completions/tryblend.py,sha256=NfVRktn1QiE2k60PzEI-LmKuxZCc7mtL_KlsrVcZg4k,8957
|
579
579
|
meutils/llm/completions/tune.py,sha256=FypfUgsB34t-E9xI6WydJYEk_-phscrLOX1iUCeKb_E,10138
|
@@ -695,7 +695,7 @@ meutils/schemas/dify_types.py,sha256=bHHWRuwoabINIx_MYukdgN0h7_h_73qA0ayDYAj85E0
|
|
695
695
|
meutils/schemas/embedding.py,sha256=rJ-XQ6X8VmACOi53BOJtkjROrNcf1ZUhzxKkClM9J0M,867
|
696
696
|
meutils/schemas/fal_types.py,sha256=a6glb5xlo0MEuKZrWtT7B8kLjwnLEhIVPbpnDWpBsJc,360
|
697
697
|
meutils/schemas/fish_types.py,sha256=yC0ZFr3Ebh8F0OhtMsXYaIfNNvzOM2LT9YtKTaRoHGU,270
|
698
|
-
meutils/schemas/hailuo_types.py,sha256=
|
698
|
+
meutils/schemas/hailuo_types.py,sha256=NSUHRg-Lance902NaEsxqZ6bz_Dvq9RR9DErmzKQ91M,6995
|
699
699
|
meutils/schemas/haimian_types.py,sha256=jGu484UviAeBgy5OIUyRY4uYCxXfv16zDPqiJQr9wNQ,1364
|
700
700
|
meutils/schemas/idphoto_types.py,sha256=nuHbpppejRSkJCiQ7YKx0Gnke0ShKZhOvdg0e7tk9-0,1074
|
701
701
|
meutils/schemas/image_types.py,sha256=pFeN4mn2fN8opSPPyOb2I5NJ0vtPKv4w851opvAi_H0,12776
|
@@ -861,9 +861,9 @@ meutils/tools/seize.py,sha256=nOKAS63w-Lbi48I0m2MPhdsokUTwxco0laPxYVmW4Mw,1064
|
|
861
861
|
meutils/tools/service_monitor.py,sha256=ibsLtBN2g2DL7ZnLJ8vhiZOiOcqTAyx711djDdBK-3M,1255
|
862
862
|
meutils/tools/sys_monitor.py,sha256=6MoyzrItqDUOSjfHcMJmMofQkEPTW36CT_aKui0rg84,429
|
863
863
|
meutils/tools/token_monitor.py,sha256=Np-YK-R4P4IPAXyZvMxwvXI4sFmNJQAQK1lSegNaYpA,997
|
864
|
-
MeUtils-2025.1.17.
|
865
|
-
MeUtils-2025.1.17.
|
866
|
-
MeUtils-2025.1.17.
|
867
|
-
MeUtils-2025.1.17.
|
868
|
-
MeUtils-2025.1.17.
|
869
|
-
MeUtils-2025.1.17.
|
864
|
+
MeUtils-2025.1.17.19.49.29.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
865
|
+
MeUtils-2025.1.17.19.49.29.dist-info/METADATA,sha256=85lGucrr7virRWL8KGHWABpTiqH9ORVCxVkkY3_JPFY,6202
|
866
|
+
MeUtils-2025.1.17.19.49.29.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
867
|
+
MeUtils-2025.1.17.19.49.29.dist-info/entry_points.txt,sha256=lufZlBHRqqZKdY-ZQJ4CSZb0qhV5hQC37egZna9M7ug,357
|
868
|
+
MeUtils-2025.1.17.19.49.29.dist-info/top_level.txt,sha256=cInfxMmkgNOskurdjwP5unau4rA7Uw48nu07tYhS7KY,22
|
869
|
+
MeUtils-2025.1.17.19.49.29.dist-info/RECORD,,
|
meutils/apis/fal/videos.py
CHANGED
@@ -47,7 +47,7 @@ async def create_task(request: FalVideoRequest, token: Optional[str] = None):
|
|
47
47
|
@alru_cache(ttl=5)
|
48
48
|
async def get_task(task_id: str, token: Optional[str] = None):
|
49
49
|
model, request_id = task_id.rsplit('::', 1)
|
50
|
-
application = f"fal-ai/{
|
50
|
+
application = f"fal-ai/{model}"
|
51
51
|
|
52
52
|
client = AsyncClient(key=token)
|
53
53
|
# status = await fal_client.status_async("fal-ai/latentsync", request_id, with_logs=True)
|
meutils/apis/hailuoai/videos.py
CHANGED
@@ -439,7 +439,7 @@ if __name__ == '__main__': # 304752356930580482
|
|
439
439
|
)
|
440
440
|
|
441
441
|
r = arun(create_task(request, token=token, vip=vip))
|
442
|
-
|
442
|
+
arun(get_task(task_id=r.task_id, token=r.system_fingerprint))
|
443
443
|
#
|
444
444
|
#
|
445
445
|
# data = {
|
meutils/data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2025.01.17.
|
1
|
+
2025.01.17.19.49.29
|
@@ -39,10 +39,20 @@ async def create(request: ChatCompletionRequest):
|
|
39
39
|
|
40
40
|
|
41
41
|
if __name__ == '__main__':
|
42
|
+
# [
|
43
|
+
# "qwen-plus-latest",
|
44
|
+
# "qvq-72b-preview",
|
45
|
+
# "qwq-32b-preview",
|
46
|
+
# "qwen2.5-coder-32b-instruct",
|
47
|
+
# "qwen-vl-max-latest",
|
48
|
+
# "qwen-turbo-latest",
|
49
|
+
# "qwen2.5-72b-instruct",
|
50
|
+
# "qwen2.5-32b-instruct"
|
51
|
+
# ]
|
42
52
|
request = ChatCompletionRequest(
|
43
53
|
# model="qwen-turbo-2024-11-01",
|
44
|
-
|
45
|
-
model="qwen-plus-latest",
|
54
|
+
model="qwen-turbo-latest",
|
55
|
+
# model="qwen-plus-latest",
|
46
56
|
|
47
57
|
messages=[
|
48
58
|
{
|
meutils/schemas/hailuo_types.py
CHANGED
@@ -18,6 +18,19 @@ FEISHU_URL_ABROAD = "https://xchatllm.feishu.cn/sheets/GYCHsvI4qhnDPNtI4VPcdw2kn
|
|
18
18
|
|
19
19
|
FEISHU_URL_OSS = "https://xchatllm.feishu.cn/sheets/MekfsfVuohfUf1tsWV0cCvTmn3c?sheet=Kcg6QC"
|
20
20
|
|
21
|
+
# """生成中是1 成功是2 失败是5 内容审核7 排队中11"""
|
22
|
+
# "status": 12,
|
23
|
+
# "message": "Optimizing prompt in progress...",
|
24
|
+
status_mapper = {
|
25
|
+
11: "Queueing",
|
26
|
+
12: "Processing", # "Optimizing prompt in progress..." # 大于10应该都算正常
|
27
|
+
|
28
|
+
1: "Processing",
|
29
|
+
2: "Success",
|
30
|
+
5: "Failed",
|
31
|
+
7: "Failed",
|
32
|
+
}
|
33
|
+
|
21
34
|
|
22
35
|
class VideoRequest(BaseModel):
|
23
36
|
"""
|
@@ -67,6 +80,13 @@ class BaseResponse(BaseModel):
|
|
67
80
|
1027,生成视频涉及敏感内容
|
68
81
|
|
69
82
|
1500002 Please try again with a different prompt
|
83
|
+
|
84
|
+
status string任务状态,包括以下状态
|
85
|
+
Preparing-准备中
|
86
|
+
Queueing-队列中
|
87
|
+
Processing-生成中
|
88
|
+
Success-成功
|
89
|
+
Fail-失败
|
70
90
|
"""
|
71
91
|
status_code: int = Field(default=0, alias="code")
|
72
92
|
|
@@ -113,11 +133,13 @@ class VideoResponse(BaseModel):
|
|
113
133
|
base_resp: BaseResponse # response.statusInfo
|
114
134
|
|
115
135
|
"""
|
136
|
+
Preparing-准备中
|
137
|
+
Queueing-队列中
|
116
138
|
Processing-生成中
|
117
139
|
Success-成功
|
118
140
|
Failed-失败
|
119
141
|
"""
|
120
|
-
status: str = "
|
142
|
+
status: str = "Queueing"
|
121
143
|
file_id: Optional[str] = None # 通过file_id 可以获取视频地址download_url
|
122
144
|
|
123
145
|
videos: Optional[List[Video]] = None # response.data.videos
|
@@ -129,6 +151,9 @@ class VideoResponse(BaseModel):
|
|
129
151
|
if self.file_id is None and self.videos:
|
130
152
|
self.file_id = self.videos[0].videoURL
|
131
153
|
|
154
|
+
if self.videos:
|
155
|
+
self.status = status_mapper.get(self.videos[0].status, "Failed")
|
156
|
+
|
132
157
|
|
133
158
|
#
|
134
159
|
# "data": {
|
File without changes
|
File without changes
|
{MeUtils-2025.1.17.17.55.21.dist-info → MeUtils-2025.1.17.19.49.29.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|