Commit 04486db
perf: eliminate double LLM call and reduce GitHub API timeout in AI chat
- Reuse non-streaming probe response as text stream instead of making a
second streaming LLM call when no tool use is detected, cutting chat
latency roughly in half for plain Q&A responses
- Reduce GitHub commit data timeout from 5s to 2s since it is best-effort
context that should not block the AI response on slow API calls
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1e79793 commit 04486db
2 files changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | 1263 | | |
1268 | 1264 | | |
1269 | 1265 | | |
| |||
1290 | 1286 | | |
1291 | 1287 | | |
1292 | 1288 | | |
1293 | | - | |
| 1289 | + | |
1294 | 1290 | | |
1295 | 1291 | | |
1296 | 1292 | | |
1297 | 1293 | | |
1298 | 1294 | | |
1299 | 1295 | | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1303 | 1301 | | |
1304 | 1302 | | |
1305 | 1303 | | |
| |||
0 commit comments