Repository navigation
Commit 76795a6
committed
fix(native-api): 修复批量嵌入子请求网络异常未捕获导致 500 的问题;
在 _vertex_batch_embed._single 中为 client.send() 添加与 _vertex_single_embed
一致的 httpx 网络异常处理(TimeoutException/ConnectError/ReadError/RemoteProtocolError),
确保子请求超时或连接失败时返回 502 而非触发未处理异常。
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>1 parent efb9ae6 commit 76795a6
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
557 | 565 | | |
558 | 566 | | |
559 | 567 | | |
| |||
0 commit comments