JPette1783
4b10c0b885
fix(go-models): guard nil pointers in DeepSeek and VolcEngine streaming ( #15817 )
...
### What problem does this PR solve?
`ChatStreamlyWithSender` in two Go model drivers could panic on nil
pointer dereferences when a caller passes a nil model config or omits
the reasoning `Effort`:
- **deepseek.go** - `switch *chatModelConfig.Effort` dereferenced
`Effort` without a nil check. It now defaults to `"high"` when nil.
- **volcengine.go** - the `modelConfig` pointer itself was dereferenced
(`Stream`, `MaxTokens`, `Temperature`, .) with no guard, and `Effort`
was dereferenced unchecked. `modelConfig` now defaults to an empty
`&ChatConfig{}` when nil so the optional-field accesses are safe, and
`Effort` defaults to `"medium"` when nil.
Addresses the CodeRabbit review on `volcengine.go`
`ChatStreamlyWithSender`. Per maintainer feedback ("one PR do one
thing"), the unrelated `handler/auth.go` and
`service/heartbeat_sender.go` changes were removed so this PR is scoped
to the model-provider fixes.
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2026-06-11 13:32:24 +08:00
..
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 20:06:57 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 19:32:19 +08:00
2026-06-08 19:32:19 +08:00
2026-05-26 10:52:09 +08:00
2026-06-09 19:01:00 +08:00
2026-06-11 13:32:24 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 13:09:36 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-10 13:59:23 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:26:52 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-05-18 12:03:12 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 20:06:57 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-03 19:16:28 +08:00
2026-06-09 21:12:15 +08:00
2026-06-10 20:36:43 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-02 13:40:10 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 20:06:57 +08:00
2026-06-09 19:01:00 +08:00
2026-05-11 17:21:16 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:26:52 +08:00
2026-05-25 10:25:53 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 20:06:57 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 13:32:52 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 13:10:10 +08:00
2026-06-09 19:01:00 +08:00
2026-06-02 15:27:26 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 19:01:00 +08:00
2026-05-21 15:33:21 +08:00
2026-06-09 19:01:00 +08:00
2026-05-15 13:27:22 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-11 13:32:24 +08:00
2026-05-29 19:34:00 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-08 21:11:21 +08:00
2026-06-09 19:01:00 +08:00
2026-06-09 21:12:15 +08:00
2026-06-09 19:01:00 +08:00
2026-06-03 19:16:28 +08:00
2026-06-09 19:01:00 +08:00
2026-05-22 11:53:18 +08:00
2026-05-26 10:50:06 +08:00
2026-06-09 19:01:00 +08:00