试了一圈没试出来,好像默认是关闭的
1 个赞
你试试问题的提示词带一下思考等关键词,看看返回是否是带思考内容的;
好像还真没有,我看了iflow-bot的代码,感觉是没有用标准的SDK,
自己拼了命令行,通过ACP交互。
```python
async def _build_command(
self,
message: str,
model: Optional[str] = None,
session_id: Optional[str] = None,
continue_session: bool = False,
yolo: bool = True,
thinking: bool = False,
) -> list[str]:
"""构建 iflow 命令。"""
cmd = [self.iflow_path]
if model:
cmd.extend(["-m", model])
if session_id:
cmd.extend(["-r", session_id])
elif continue_session:
cmd.append("-c")
if yolo:
cmd.append("-y")
if thinking:
cmd.append("--thinking")
cmd.extend(["-p", message])
return cmd
```
我一般会加上“深度思考”,然后它就自己想去了。
我记得配置那里有开启思考的配置,不想的话,可以试着修改一下。(应该不违规吧
)