bitloi
2eed0d4679
refactor(go-models): add unsupported model driver defaults ( #15431 )
...
### What problem does this PR solve?
Adds a shared safe default implementation for unsupported Go
model-driver capability methods and migrates the confirmed panic-stub
providers to use it.
The Go `ModelDriver` interface requires providers to implement many
capability methods even when the provider does not support them. XunFei
had unsupported capability methods implemented as `panic("implement
me")`, Mistral still had a panic in `ParseFile`, and HuaweiCloud carried
an unreachable `panic("implement me")` after a normal chat return.
### Type of change
- [x] Refactoring
Co-authored-by: Haruko386 <tryeverypossible@163.com >
2026-06-03 19:16:28 +08:00
..
2026-05-28 13:33:01 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 14:09:07 +08:00
2026-05-18 12:03:33 +08:00
2026-05-18 12:03:33 +08:00
2026-05-21 15:32:56 +08:00
2026-05-22 18:02:01 +08:00
2026-05-21 15:32:49 +08:00
2026-06-02 15:27:26 +08:00
2026-06-03 14:09:07 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-05-26 17:10:06 +08:00
2026-05-26 17:10:06 +08:00
2026-06-03 16:33:58 +08:00
2026-05-18 14:31:16 +08:00
2026-06-03 14:09:07 +08:00
2026-04-27 14:53:33 +08:00
2026-05-26 10:52:09 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 14:09:07 +08:00
2026-06-03 14:09:07 +08:00
2026-05-27 13:19:39 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 14:09:07 +08:00
2026-06-03 14:09:07 +08:00
2026-06-01 19:24:29 +08:00
2026-06-03 14:09:07 +08:00
2026-06-01 11:22:43 +08:00
2026-06-01 11:22:43 +08:00
2026-05-22 15:24:52 +08:00
2026-06-02 15:27:26 +08:00
2026-06-03 19:16:28 +08:00
2026-06-03 16:33:58 +08:00
2026-05-29 19:50:01 +08:00
2026-06-03 14:09:07 +08:00
2026-05-29 10:09:27 +08:00
2026-06-03 16:33:58 +08:00
2026-05-18 12:03:12 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-05-13 19:35:19 +08:00
2026-06-03 14:09:07 +08:00
2026-05-29 19:34:00 +08:00
2026-06-03 14:09:07 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 14:09:07 +08:00
2026-06-03 19:16:28 +08:00
2026-06-03 19:16:28 +08:00
2026-06-03 19:16:28 +08:00
2026-05-29 19:34:00 +08:00
2026-05-28 19:41:11 +08:00
2026-06-03 15:26:46 +08:00
2026-06-02 13:40:10 +08:00
2026-06-03 14:09:07 +08:00
2026-06-02 13:23:39 +08:00
2026-06-03 14:09:07 +08:00
2026-05-11 17:21:16 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-05-25 10:25:53 +08:00
2026-06-03 14:09:07 +08:00
2026-05-22 15:19:38 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-06-03 16:33:58 +08:00
2026-05-21 15:33:02 +08:00
2026-06-02 15:27:26 +08:00
2026-06-02 15:27:26 +08:00
2026-06-02 15:27:26 +08:00
2026-06-03 16:33:58 +08:00
2026-05-22 11:52:18 +08:00
2026-05-27 14:07:00 +08:00
2026-06-03 14:09:07 +08:00
2026-05-29 19:34:00 +08:00
2026-06-03 14:09:07 +08:00
2026-06-02 15:27:26 +08:00
2026-05-22 11:52:18 +08:00
2026-06-02 15:27:26 +08:00
2026-05-27 14:39:41 +08:00
2026-06-03 16:33:58 +08:00
2026-05-22 15:21:45 +08:00
2026-06-03 14:09:07 +08:00
2026-06-03 13:23:20 +08:00
2026-05-21 15:33:21 +08:00
2026-06-03 14:09:07 +08:00
2026-05-15 13:27:22 +08:00
2026-06-03 14:09:07 +08:00
2026-05-27 13:14:56 +08:00
2026-06-03 14:09:07 +08:00
2026-05-29 19:34:00 +08:00
2026-06-03 14:09:07 +08:00
2026-05-26 19:58:20 +08:00
2026-06-03 14:09:07 +08:00
2026-05-22 11:52:18 +08:00
2026-05-21 18:28:06 +08:00
2026-06-03 19:16:28 +08:00
2026-06-03 19:16:28 +08:00
2026-05-22 11:53:18 +08:00
2026-05-26 10:50:06 +08:00
2026-06-03 16:33:58 +08:00