sycommon-python-lib 0.2.6a7__py3-none-any.whl → 0.2.6a8__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 = {
@@ -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.6a8
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -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
@@ -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.6a8.dist-info/METADATA,sha256=wU_B8TRehXmVXBKs-7ZjpIrTVGwU4tDPfSHCZovxpvs,7943
294
+ sycommon_python_lib-0.2.6a8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
295
+ sycommon_python_lib-0.2.6a8.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
296
+ sycommon_python_lib-0.2.6a8.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
297
+ sycommon_python_lib-0.2.6a8.dist-info/RECORD,,