aiecs 1.3.5__py3-none-any.whl → 1.3.7__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.

Potentially problematic release.


This version of aiecs might be problematic. Click here for more details.

aiecs/__init__.py CHANGED
@@ -5,7 +5,7 @@ A powerful Python middleware framework for building AI-powered applications
5
5
  with tool orchestration, task execution, and multi-provider LLM support.
6
6
  """
7
7
 
8
- __version__ = "1.3.5"
8
+ __version__ = "1.3.7"
9
9
  __author__ = "AIECS Team"
10
10
  __email__ = "iretbl@gmail.com"
11
11
 
@@ -170,11 +170,29 @@ class VertexAIClient(BaseLLMClient):
170
170
  fixed_count = 0
171
171
 
172
172
  for i, part in enumerate(text_parts):
173
+ # Check for thinking content that needs formatting
174
+ needs_thinking_format = False
175
+
173
176
  if '<thinking>' in part and '</thinking>' not in part:
174
- # Incomplete thinking tag: add closing tag
177
+ # Incomplete <thinking> tag: add closing tag
175
178
  part = part + '\n</thinking>'
176
- fixed_count += 1
179
+ needs_thinking_format = True
177
180
  self.logger.debug(f" Part {i+1}: Incomplete <thinking> tag fixed")
181
+ elif part.startswith('thinking') and '</thinking>' not in part:
182
+ # thinking\n format: convert to <thinking>...</thinking>
183
+ if part.startswith('thinking\n'):
184
+ # thinking\n格式:提取内容并包装
185
+ content = part[8:] # 跳过 "thinking\n"
186
+ else:
187
+ # thinking开头但无换行:提取内容并包装
188
+ content = part[7:] # 跳过 "thinking"
189
+
190
+ part = f"<thinking>\n{content}\n</thinking>"
191
+ needs_thinking_format = True
192
+ self.logger.debug(f" Part {i+1}: thinking\\n format converted to <thinking> tags")
193
+
194
+ if needs_thinking_format:
195
+ fixed_count += 1
178
196
 
179
197
  processed_parts.append(part)
180
198
 
aiecs/main.py CHANGED
@@ -142,7 +142,7 @@ async def lifespan(app: FastAPI):
142
142
  app = FastAPI(
143
143
  title="AIECS - AI Execute Services",
144
144
  description="Middleware service for AI-powered task execution and tool orchestration",
145
- version="1.3.5",
145
+ version="1.3.7",
146
146
  lifespan=lifespan
147
147
  )
148
148
 
@@ -167,7 +167,7 @@ async def health_check():
167
167
  return {
168
168
  "status": "healthy",
169
169
  "service": "aiecs",
170
- "version": "1.3.5"
170
+ "version": "1.3.7"
171
171
  }
172
172
 
173
173
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiecs
3
- Version: 1.3.5
3
+ Version: 1.3.7
4
4
  Summary: AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration
5
5
  Author-email: AIECS Team <iretbl@gmail.com>
6
6
  License-Expression: MIT
@@ -1,7 +1,7 @@
1
- aiecs/__init__.py,sha256=0C3__5CeIMR8OU-fqcmKw2ETo4SIjYuFNk_MZNI_wfI,1859
1
+ aiecs/__init__.py,sha256=Q49ciQKpOVRxLMgchjo3S9r3r4aBl8MD3w97eBNG0sk,1859
2
2
  aiecs/__main__.py,sha256=AfQpzy3SgwWuP4DuymYcm4MISMuzqwhxxGSYo53PBvY,1035
3
3
  aiecs/aiecs_client.py,sha256=gIqecRBBH_bYIWhqiHCemdVgmGb9Jqdxf1b6RoqXWlQ,17276
4
- aiecs/main.py,sha256=jYY2nqk00XGoEtyQdLNkmpt-4RF52QeQyZUNU0305Ig,10837
4
+ aiecs/main.py,sha256=Y5WT2VbXicbEvopna37kWFFRHnCdgaj2n7HCPXA40VU,10837
5
5
  aiecs/application/__init__.py,sha256=NkmrUH1DqxJ3vaVC8QwscNdlWqHfC7ZagL4k3nZ_qz4,192
6
6
  aiecs/application/executors/__init__.py,sha256=WIl7L9HBsEhNfbNtJdvBvFUJXzESvNZVaiAA6tdtJcs,191
7
7
  aiecs/application/executors/operation_executor.py,sha256=-7mFo1hUnWdehVPg0fnSiRhW3LACpIiyLSH-iu7bX4U,13818
@@ -58,7 +58,7 @@ aiecs/llm/clients/__init__.py,sha256=uQM004TQappwJMqTxVZNscpVPQtirkvYUPea3QYB7d0
58
58
  aiecs/llm/clients/base_client.py,sha256=j4NY-oEdG5ALBCSddblPpjttISn5teqLVVUuZyYn7g4,5880
59
59
  aiecs/llm/clients/googleai_client.py,sha256=sTgdw4eicxWruNGOMSsuEHbfF9RuDQo8SClqEtu1JOQ,6591
60
60
  aiecs/llm/clients/openai_client.py,sha256=x7Y_yTVu0kp-gu5Z-M0Bx-O20D0YDgZoJQxzkjNpr6c,4202
61
- aiecs/llm/clients/vertex_client.py,sha256=Vd5IJIvPVQuv0l6bMQmkY2aemrkfLoHY2RM5Z5SUhVg,17139
61
+ aiecs/llm/clients/vertex_client.py,sha256=nZA3Mi10VzzvLNKO6Td2o_B_TT6Mhi3J4Tm7_n3SZ94,18561
62
62
  aiecs/llm/clients/xai_client.py,sha256=XEELb9_qFeeQaansDWvAJRJVpt8CaBRLcYskuv9uDq0,6386
63
63
  aiecs/llm/config/__init__.py,sha256=KZbwHoBlbcN7HgNueA5p-0GpyVMJRNG1V5T-tkri8G4,1115
64
64
  aiecs/llm/config/config_loader.py,sha256=PTMsZax3CoTrMo6BZlUoI7takII3_DHm3w5xTKgBJpA,8921
@@ -168,9 +168,9 @@ aiecs/utils/prompt_loader.py,sha256=cBS2bZXpYQOWSiOGkhwIzyy3_bETqwIblRi_9qQT9iQ,
168
168
  aiecs/utils/token_usage_repository.py,sha256=1xjenLYwC0YT6lKZFEGO4scRCXLuWdec2MWjzih5SZY,10210
169
169
  aiecs/ws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
170
170
  aiecs/ws/socket_server.py,sha256=j_9idVY_rWlTsF51FgmuhWCWFVt7_gAHL8vNg3IxV5g,1476
171
- aiecs-1.3.5.dist-info/licenses/LICENSE,sha256=_1YRaIS0eZu1pv6xfz245UkU0i1Va2B841hv3OWRwqg,12494
172
- aiecs-1.3.5.dist-info/METADATA,sha256=34_y02-Q5OdrWlquol8HuRW0QOgP6WRrSHM9uCaYuQM,16635
173
- aiecs-1.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
174
- aiecs-1.3.5.dist-info/entry_points.txt,sha256=TfLBuwLOfgQqKvnoF1sgTS19-Hgl0aWvCZjIdblIiig,667
175
- aiecs-1.3.5.dist-info/top_level.txt,sha256=22IlUlOqh9Ni3jXlQNMNUqzbW8dcxXPeR_EQ-BJVcV8,6
176
- aiecs-1.3.5.dist-info/RECORD,,
171
+ aiecs-1.3.7.dist-info/licenses/LICENSE,sha256=_1YRaIS0eZu1pv6xfz245UkU0i1Va2B841hv3OWRwqg,12494
172
+ aiecs-1.3.7.dist-info/METADATA,sha256=lg-uCn9FuFT0dA-sAyHRxnWYMvA9ehXKhOvpCGBt4X8,16635
173
+ aiecs-1.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
174
+ aiecs-1.3.7.dist-info/entry_points.txt,sha256=TfLBuwLOfgQqKvnoF1sgTS19-Hgl0aWvCZjIdblIiig,667
175
+ aiecs-1.3.7.dist-info/top_level.txt,sha256=22IlUlOqh9Ni3jXlQNMNUqzbW8dcxXPeR_EQ-BJVcV8,6
176
+ aiecs-1.3.7.dist-info/RECORD,,
File without changes