mm-qa-mcp 0.4.0__py3-none-any.whl → 0.6.0__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.
- minimax_qa_mcp/src/get_weaviate_info/get_weaviate_info.py +3 -3
- minimax_qa_mcp/src/grafana/service.py +3 -4
- {mm_qa_mcp-0.4.0.dist-info → mm_qa_mcp-0.6.0.dist-info}/METADATA +6 -8
- {mm_qa_mcp-0.4.0.dist-info → mm_qa_mcp-0.6.0.dist-info}/RECORD +7 -7
- {mm_qa_mcp-0.4.0.dist-info → mm_qa_mcp-0.6.0.dist-info}/WHEEL +0 -0
- {mm_qa_mcp-0.4.0.dist-info → mm_qa_mcp-0.6.0.dist-info}/entry_points.txt +0 -0
- {mm_qa_mcp-0.4.0.dist-info → mm_qa_mcp-0.6.0.dist-info}/top_level.txt +0 -0
@@ -49,8 +49,8 @@ class GetWeaviateInfo:
|
|
49
49
|
使用Weaviate 3.x版本的API
|
50
50
|
"""
|
51
51
|
try:
|
52
|
-
# 在方法内部延迟导入weaviate
|
53
|
-
import
|
52
|
+
# 在方法内部延迟导入weaviate的client模块,避免导入整个包
|
53
|
+
from weaviate import client
|
54
54
|
from urllib.parse import urlparse
|
55
55
|
|
56
56
|
# 获取主机地址,确保不重复http://
|
@@ -64,7 +64,7 @@ class GetWeaviateInfo:
|
|
64
64
|
logger.info(f"尝试连接到Weaviate服务器: {http_host_value}:{HTTP_PORT}")
|
65
65
|
|
66
66
|
# 使用Weaviate 3.x的客户端连接方式
|
67
|
-
self.client =
|
67
|
+
self.client = client.Client(f"http://{http_host_value}:{HTTP_PORT}")
|
68
68
|
|
69
69
|
# 检查连接
|
70
70
|
self.client.is_ready()
|
@@ -16,8 +16,7 @@ class GetFromGrafana:
|
|
16
16
|
to_formatted_time = datetime.now(timezone(timedelta(hours=8))).isoformat()
|
17
17
|
# 获取一天前的时间
|
18
18
|
# 格式化为 ISO 8601 格式的字符串,包含微秒和时区信息
|
19
|
-
from_formatted_time = (datetime.now(timezone(timedelta(hours=
|
20
|
-
|
19
|
+
from_formatted_time = (datetime.now(timezone(timedelta(hours=8))) - timedelta(hours=23)).isoformat()
|
21
20
|
self.to_time = str(to_formatted_time)
|
22
21
|
self.from_time = str(from_formatted_time)
|
23
22
|
else:
|
@@ -99,8 +98,8 @@ class GetApiFromGrafana:
|
|
99
98
|
|
100
99
|
if __name__ == '__main__':
|
101
100
|
scene = "hailuo_video_cn_pre"
|
102
|
-
from_time = "2024-05-15T00:00:00.000+08:00"
|
103
|
-
to_time = "2024-05-15T23:59:59.999+08:00"
|
101
|
+
# from_time = "2024-05-15T00:00:00.000+08:00"
|
102
|
+
# to_time = "2024-05-15T23:59:59.999+08:00"
|
104
103
|
msgs = ["5208af62da70dbe9a308b3b98d696a29"]
|
105
104
|
# print("test")
|
106
105
|
print(GetFromGrafana(scene).post_grafana(msgs))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mm_qa_mcp
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.6.0
|
4
4
|
Summary: QA agent service 集合
|
5
5
|
Author-email: xingyun <xingyun@minimaxi.com>
|
6
6
|
License: MIT
|
@@ -13,11 +13,10 @@ Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
14
14
|
Requires-Dist: annotated-types>=0.7.0
|
15
15
|
Requires-Dist: anyio>=4.9.0
|
16
|
-
Requires-Dist: Authlib
|
16
|
+
Requires-Dist: Authlib<2.0.0,>=1.2.1
|
17
17
|
Requires-Dist: certifi>=2025.1.31
|
18
18
|
Requires-Dist: cffi>=1.17.1
|
19
19
|
Requires-Dist: charset-normalizer>=3.4.1
|
20
|
-
Requires-Dist: classes>=0.4.1
|
21
20
|
Requires-Dist: click>=8.1.8
|
22
21
|
Requires-Dist: cryptography>=44.0.2
|
23
22
|
Requires-Dist: h11>=0.14.0
|
@@ -43,7 +42,7 @@ Requires-Dist: python-dateutil>=2.9.0.post0
|
|
43
42
|
Requires-Dist: python-dotenv>=1.1.0
|
44
43
|
Requires-Dist: pytz>=2025.2
|
45
44
|
Requires-Dist: PyYAML>=6.0.2
|
46
|
-
Requires-Dist: requests
|
45
|
+
Requires-Dist: requests<3.0.0,>=2.30.0
|
47
46
|
Requires-Dist: requests-toolbelt>=1.0.0
|
48
47
|
Requires-Dist: six>=1.17.0
|
49
48
|
Requires-Dist: sniffio>=1.3.1
|
@@ -54,12 +53,11 @@ Requires-Dist: tenacity>=9.1.2
|
|
54
53
|
Requires-Dist: typing-inspection>=0.4.0
|
55
54
|
Requires-Dist: typing_extensions>=4.13.1
|
56
55
|
Requires-Dist: tzdata>=2025.2
|
57
|
-
Requires-Dist: urllib3
|
56
|
+
Requires-Dist: urllib3<3.0.0,>=1.21.1
|
58
57
|
Requires-Dist: uvicorn>=0.34.0
|
59
|
-
Requires-Dist: validators
|
58
|
+
Requires-Dist: validators<1.0.0,>=0.21.2
|
60
59
|
Requires-Dist: wcwidth>=0.2.13
|
61
|
-
Requires-Dist: weaviate
|
62
|
-
Requires-Dist: weaviate-client>=3.26.7
|
60
|
+
Requires-Dist: weaviate-client<4.0.0,>=3.25.0
|
63
61
|
Requires-Dist: zstandard>=0.23.0
|
64
62
|
Provides-Extra: dev
|
65
63
|
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
@@ -11,9 +11,9 @@ minimax_qa_mcp/src/generator_case/__init__.py,sha256=Sy4ncJFUvzzFAlwlJAC7cQ2YdD4
|
|
11
11
|
minimax_qa_mcp/src/generator_case/generator_case.py,sha256=0DyJCW_NDnFFEKGYzz1mJEtnO4kVJOjqIBGDPa2cc6g,50084
|
12
12
|
minimax_qa_mcp/src/generator_case/generator_case_langchain.py,sha256=i0OnLBFEWtQymBVH28iILR1XqfKWXhgpYZzewUNSzl0,43256
|
13
13
|
minimax_qa_mcp/src/get_weaviate_info/__init__.py,sha256=sMKXpobyDsZBnRFR7ozqPfpJEN1x3cIBM7mTTPrv1PE,80
|
14
|
-
minimax_qa_mcp/src/get_weaviate_info/get_weaviate_info.py,sha256=
|
14
|
+
minimax_qa_mcp/src/get_weaviate_info/get_weaviate_info.py,sha256=BLnRN96S4EOrOc3Cqf-QSSzVDMYieB7hA7NCwdsLadI,10415
|
15
15
|
minimax_qa_mcp/src/grafana/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
-
minimax_qa_mcp/src/grafana/service.py,sha256=
|
16
|
+
minimax_qa_mcp/src/grafana/service.py,sha256=jf-LTpS4XTnB5NvQPe6-icIUpL4Z-1_VQXGEy08Ukk8,4434
|
17
17
|
minimax_qa_mcp/src/query_segments/__init__.py,sha256=nNfm8AmQKuQMPPVMtimtgiz_f_yYKY70JoUCa-s7TJ0,80
|
18
18
|
minimax_qa_mcp/src/query_segments/query_segments.py,sha256=ZtFEjR9npd1zoCQOVkukvUFXmCub6MaJ_GTy0abLQes,93237
|
19
19
|
minimax_qa_mcp/src/xmind2markdown/__init__.py,sha256=IqnCkza9xw5r-0mEetNQoQrkoX-E8yaMmkcgi4MOoPk,80
|
@@ -21,8 +21,8 @@ minimax_qa_mcp/src/xmind2markdown/xmind_to_markdown.py,sha256=86WZ4aTf1Y4jDLsoBa
|
|
21
21
|
minimax_qa_mcp/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
minimax_qa_mcp/utils/logger.py,sha256=R1SyLTra9ngjSu4vKJ21krgl83Or33Q0dRz6-K_OYS8,1089
|
23
23
|
minimax_qa_mcp/utils/utils.py,sha256=Xb9d6lz4p3wVDbLKrctfG3v5_Lx1ge6vFMmtAqZ9qF4,8703
|
24
|
-
mm_qa_mcp-0.
|
25
|
-
mm_qa_mcp-0.
|
26
|
-
mm_qa_mcp-0.
|
27
|
-
mm_qa_mcp-0.
|
28
|
-
mm_qa_mcp-0.
|
24
|
+
mm_qa_mcp-0.6.0.dist-info/METADATA,sha256=9I12p5ivY4kOFa5zYVqV6PmqCVUjqGFrlPU5fNyD1FU,6281
|
25
|
+
mm_qa_mcp-0.6.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
26
|
+
mm_qa_mcp-0.6.0.dist-info/entry_points.txt,sha256=iP2Pl72UfrJCDakHv_Zxg6ci6gtvZipc8cN1SvqueJk,63
|
27
|
+
mm_qa_mcp-0.6.0.dist-info/top_level.txt,sha256=cXfV8AjI2zW5yK2aw4Z2TMV9oRPx6eU04K9ZxwqAtxw,15
|
28
|
+
mm_qa_mcp-0.6.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|