File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ async def stream_request_wrapper(payload):
258258 stream_request_wrapper ,
259259 anti_truncation_payload ,
260260 max_attempts ,
261- enable_prefill_mode = ( "claude" not in str ( api_request . get ( "model" , "" )). lower ()) ,
261+ enable_prefill_mode = True ,
262262 )
263263
264264 # 包装以确保是bytes流
Original file line number Diff line number Diff line change 1111if str (project_root ) not in sys .path :
1212 sys .path .insert (0 , str (project_root ))
1313
14- # 标准库
15- import asyncio
1614import json
1715
1816# 第三方库
@@ -263,7 +261,7 @@ async def stream_request_wrapper(payload):
263261 stream_request_wrapper ,
264262 anti_truncation_payload ,
265263 max_attempts ,
266- enable_prefill_mode = ( "claude" not in str ( api_request . get ( "model" , "" )). lower ()) ,
264+ enable_prefill_mode = True ,
267265 )
268266
269267 # 迭代 process_stream() 生成器,并展开 response 包装
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ async def stream_request_wrapper(payload):
259259 stream_request_wrapper ,
260260 anti_truncation_payload ,
261261 max_attempts ,
262- enable_prefill_mode = ( "claude" not in str ( api_request . get ( "model" , "" )). lower ()) ,
262+ enable_prefill_mode = True ,
263263 )
264264
265265 # 转换为 OpenAI 格式
You can’t perform that action at this time.
0 commit comments