jay77721
288be805f1
feat(go-models): migrate nvidia/siliconflow/groq/longcat to unified h… ( #17643 )
...
## Summary
Relate to #17284
Migrate four OpenAI-compatible drivers (`nvidia`, `siliconflow`, `groq`,
`longcat`) to use the unified response handlers
(`HandleNonStreamingResponse` / `HandleStreamingResponse`), following
the same pattern established by `deepseek` in #17634 .
- Cut ~100 lines per driver (541 lines removed, 19 added across 4
files).
- `nvidia` now extracts token usage (previously had none).
- All four drivers produce the unified `StreamUsage` log.
2026-08-03 10:05:25 +08:00
..
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-22 22:30:57 +08:00
2026-07-22 22:30:57 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 18:32:07 +08:00
2026-06-08 19:32:19 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-22 22:30:57 +08:00
2026-07-28 19:19:00 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-21 13:51:17 +08:00
2026-07-21 13:51:17 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 18:40:11 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-28 19:19:00 +08:00
2026-07-31 19:15:38 +08:00
2026-08-03 10:05:25 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-24 19:23:51 +08:00
2026-07-24 19:23:51 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-08-03 10:05:25 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-14 21:06:11 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-06-02 13:40:10 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-08-03 10:05:25 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 18:32:07 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 18:32:07 +08:00
2026-07-31 19:15:38 +08:00
2026-08-03 10:05:25 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-28 19:16:31 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 18:32:07 +08:00
2026-07-31 18:32:07 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00
2026-07-31 19:15:38 +08:00