Commit 99f930f
fix(livestream): free 路 livestream 走原生视觉,不再绕分析通道 (#1508)
livestream 主播自建 server_prefix 上游同为 Gemini 系,原生视觉与发图协议
(input_image_buffer.append)与 lanlan.app+free 一致。原判定只认 base_url 含
lanlan.app,导致 livestream free(base_url 已派生为自建地址)被当成无原生视觉,
每帧丢进 VISION_MODEL 分析通道转文字,多一次模型调用且画面延迟。
抽出共享谓词 _is_free_proxy(free + (lanlan.app 或 livestream)),统一三处原先
散落的 lanlan.app+free 字面判断:_supports_native_image、stream_image 实时发图、
prompt_ephemeral 主动注入截图。lanlan.tech free(StepFun 上游)行为不变。
Co-authored-by: Hongzhi Wen <cartabio.coder1@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6b3700f commit 99f930f
2 files changed
Lines changed: 67 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
419 | 428 | | |
420 | | - | |
| 429 | + | |
421 | 430 | | |
422 | 431 | | |
423 | 432 | | |
424 | | - | |
| 433 | + | |
425 | 434 | | |
426 | 435 | | |
427 | 436 | | |
| |||
1372 | 1381 | | |
1373 | 1382 | | |
1374 | 1383 | | |
1375 | | - | |
| 1384 | + | |
1376 | 1385 | | |
1377 | 1386 | | |
1378 | 1387 | | |
| |||
1787 | 1796 | | |
1788 | 1797 | | |
1789 | 1798 | | |
1790 | | - | |
| 1799 | + | |
1791 | 1800 | | |
1792 | 1801 | | |
1793 | 1802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
149 | 199 | | |
0 commit comments