sycommon-python-lib 0.2.6a7__py3-none-any.whl → 0.2.6a9__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.
sycommon/llm/get_llm.py CHANGED
@@ -152,7 +152,8 @@ def get_llm(
152
152
  callbacks = [LLMLogger()] + langfuse_callbacks
153
153
 
154
154
  # 根据 wrap_structured 决定默认超时
155
- if timeout is _TIMEOUT_UNSET:
155
+ # 使用 isinstance 检查而非 is 哨兵,避免模块重复导入导致哨兵对象不一致
156
+ if not isinstance(timeout, (int, float)):
156
157
  timeout = 180 if wrap_structured else 300
157
158
 
158
159
  init_params = {
@@ -50,7 +50,6 @@ class KafkaSink:
50
50
  compression_type='gzip',
51
51
  batch_size=16384,
52
52
  linger_ms=5,
53
- buffer_memory=33554432,
54
53
  )
55
54
  self._producer = self._producer_obj
56
55
 
@@ -7,7 +7,7 @@ def setup_logger_levels():
7
7
  logging.getLogger("nacos.client").setLevel(logging.WARNING)
8
8
 
9
9
  # Kafka Python客户端:屏蔽INFO级的连接/版本检测日志
10
- logging.getLogger("kafka.conn").setLevel(logging.WARNING)
10
+ logging.getLogger("kafka.net.connection").setLevel(logging.WARNING)
11
11
  logging.getLogger("kafka.producer").setLevel(logging.WARNING)
12
12
 
13
13
  # Uvicorn/FastAPI:屏蔽启动/应用初始化的INFO日志(保留ERROR/WARNING)
@@ -71,7 +71,6 @@ class ProcessLogger:
71
71
  compression_type='gzip',
72
72
  batch_size=16384,
73
73
  linger_ms=5,
74
- buffer_memory=33554432,
75
74
  )
76
75
  self._initialized = True
77
76
  return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sycommon-python-lib
3
- Version: 0.2.6a7
3
+ Version: 0.2.6a9
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -13,9 +13,9 @@ Requires-Dist: deepagents==0.6.8
13
13
  Requires-Dist: elasticsearch==9.4.1
14
14
  Requires-Dist: fastapi==0.136.3
15
15
  Requires-Dist: jinja2==3.1.6
16
- Requires-Dist: kafka-python==2.3.2
16
+ Requires-Dist: kafka-python==3.0.0
17
17
  Requires-Dist: langchain==1.3.7
18
- Requires-Dist: langchain-core==1.4.4
18
+ Requires-Dist: langchain-core==1.4.6
19
19
  Requires-Dist: langchain-openai==1.3.0
20
20
  Requires-Dist: langfuse==4.7.1
21
21
  Requires-Dist: langgraph==1.2.4
@@ -34,7 +34,7 @@ Requires-Dist: pyyaml==6.0.3
34
34
  Requires-Dist: redis==7.4.0
35
35
  Requires-Dist: sentry-sdk[fastapi]==2.62.0
36
36
  Requires-Dist: sqlalchemy[asyncio]==2.0.50
37
- Requires-Dist: starlette[full]==1.2.1
37
+ Requires-Dist: starlette[full]==1.3.0
38
38
  Requires-Dist: tiktoken==0.13.0
39
39
  Requires-Dist: uvicorn==0.49.0
40
40
  Requires-Dist: wecom-aibot-python-sdk==1.0.2
@@ -186,7 +186,7 @@ sycommon/heartbeat_process/heartbeat_process_manager.py,sha256=24qUKs8qegdWHqcox
186
186
  sycommon/heartbeat_process/heartbeat_process_worker.py,sha256=duuAEFwda43Y6pZE8tOOspitlyxecaFsg1n1iH9jQDQ,16863
187
187
  sycommon/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
188
188
  sycommon/llm/embedding.py,sha256=Xwmg1HcgbdW7OcpYyzu8k7U-27rC5lzjIqbg221CcyY,19129
189
- sycommon/llm/get_llm.py,sha256=9F2EJhP3ujbk78h1jW8T9Jafb-79U2QAUutYaSbTHvY,7572
189
+ sycommon/llm/get_llm.py,sha256=GN2ZXLYY3Aw-EhDhG0Otl13V5_yk13uX8dI6s9UBaMQ,7685
190
190
  sycommon/llm/llm_logger.py,sha256=LLXiESwDP5f8dB50nFabShVoLKv8UCf2ll69zo1FOso,3365
191
191
  sycommon/llm/llm_tokens.py,sha256=yGEessxfk5wRMrPGyWHhiiIIQFDVT23FSaqnwqHGCoY,4712
192
192
  sycommon/llm/llm_with_token_tracking.py,sha256=VJYHQSSuqvAbJ7qFs7Zml_thFDZoqL2rXFj8Nrj6rNo,13834
@@ -202,10 +202,10 @@ sycommon/llm/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4,sha256=Ijkh
202
202
  sycommon/llm/tiktoken_cache/fb374d419588a4632f3f557e76b4b70aebbca790,sha256=RGqVOMtsNI41FhINfAiwn1fDZJXirP_-WaW_iwz7Gi0,3613922
203
203
  sycommon/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
204
204
  sycommon/logging/async_sql_logger.py,sha256=_OY36XkUm__U3NhMgiecy-qd-nptZ_0gpE3J8lGAr58,2619
205
- sycommon/logging/kafka_log.py,sha256=RHfz3K3F0lV96VIjwFExmgNvtvED8CZWD9smzdFVs-Q,13382
206
- sycommon/logging/logger_levels.py,sha256=_-uQ_T1N8NkNgcAmLrMmJ83nHTDw5ZNvXFPvdk89XGY,1144
205
+ sycommon/logging/kafka_log.py,sha256=bS9ZFCZMNEOpkECk9v4cmkbIkCYA3cTigCMizvFjCfQ,13346
206
+ sycommon/logging/logger_levels.py,sha256=xJBzPV2H7GpEQggOIjyckEsA4yf6s4NpI9ckgO3xWKA,1154
207
207
  sycommon/logging/logger_wrapper.py,sha256=TtzmGw_K5NjBGBq9Gjqtnh834izAv8TQwsOeL2fIbAI,481
208
- sycommon/logging/process_logger.py,sha256=rjunPTaDejtusvobSrc3G44DEqnt_bbNSY3r8cWqBsY,5895
208
+ sycommon/logging/process_logger.py,sha256=vNGnuUYvXMcsSDnsv7A36tVJenErfT03Tp0czrKVZ4k,5847
209
209
  sycommon/logging/sql_logger.py,sha256=liLB17ukwCxhsUsiL3jVr1rIKhNZ2QrVTR8XzcTyscY,2021
210
210
  sycommon/mcp_server/__init__.py,sha256=iweQoesjnIl4I9LA98ZARc8p3AatxWcyLS4uYi_58sU,266
211
211
  sycommon/mcp_server/server.py,sha256=NjPtEN6_QsI-Cc2tuPAew_PorBEJ60Xuxjaox0Dku4E,6269
@@ -290,8 +290,8 @@ sycommon/tools/syemail.py,sha256=BDFhgf7WDOQeTcjxJEQdu0dQhnHFPO_p3eI0-Ni3LhQ,561
290
290
  sycommon/tools/timing.py,sha256=OiiE7P07lRoMzX9kzb8sZU9cDb0zNnqIlY5pWqHcnkY,2064
291
291
  sycommon/xxljob/__init__.py,sha256=7eoBlQxv-B39IfRSCY2bkqdGYs1QRe1umAWd88VMEEM,86
292
292
  sycommon/xxljob/xxljob_service.py,sha256=JIEJaGXhqrTLcyxlyynSrsHg9bBnDNzX-D4qIWLRPUE,6815
293
- sycommon_python_lib-0.2.6a7.dist-info/METADATA,sha256=Qt9qMQ8h1yV9xYD7s-i7A6P36MganMalIcwrV7ojNlk,7943
294
- sycommon_python_lib-0.2.6a7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
295
- sycommon_python_lib-0.2.6a7.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
296
- sycommon_python_lib-0.2.6a7.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
297
- sycommon_python_lib-0.2.6a7.dist-info/RECORD,,
293
+ sycommon_python_lib-0.2.6a9.dist-info/METADATA,sha256=GzDA8gxSXEBhEkUTNkK0VETlVxCNgELGRFzTl8zSw8U,7943
294
+ sycommon_python_lib-0.2.6a9.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
295
+ sycommon_python_lib-0.2.6a9.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
296
+ sycommon_python_lib-0.2.6a9.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
297
+ sycommon_python_lib-0.2.6a9.dist-info/RECORD,,