Commit b9ab3f5
providers/compatible: gate tool_stream on requires_tool_stream() in streaming paths
- stream_chat_with_tools 两个分支无条件发 tool_stream: Some(true),非 Z.AI
provider 报 400
- 两处都改成 tool_stream_for_tools() 门控,与非流式路径一致
- 加 non_zai_provider_omits_tool_stream 回归测试
Ports upstream 1da35db (zeroclaw-labs#5806) to master_wecom's
pre-workspace-split layout.
Co-authored-by: Eugene Zavertiaev <152089142+zavertiaev@users.noreply.github.com>1 parent a44274f commit b9ab3f5
2 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2067 | 2067 | | |
2068 | 2068 | | |
2069 | 2069 | | |
2070 | | - | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
2071 | 2075 | | |
2072 | 2076 | | |
2073 | 2077 | | |
| |||
2091 | 2095 | | |
2092 | 2096 | | |
2093 | 2097 | | |
2094 | | - | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2095 | 2103 | | |
2096 | 2104 | | |
2097 | 2105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1042 | 1049 | | |
1043 | 1050 | | |
1044 | 1051 | | |
| |||
0 commit comments