Celia Chen
c6049ebd96
Add capability overrides for custom model providers ( #50459 )
...
## What changed
Allow Responses-compatible providers to configure live web access and remote compaction under `model_providers.<id>.capabilities`:
```toml
[model_providers.custom.capabilities]
external_web_access = false
remote_compaction = "v2"
```
`external_web_access = false` keeps hosted web search from accessing the live web. `remote_compaction` accepts `v2` to send `compaction_trigger` items through the Responses endpoint, or `unsupported` to use local compaction. Omitted capabilities retain existing provider defaults.
## Testing
Add unit coverage for preserving unspecified defaults and a request-snapshot scenario verifying cached web search and V2 compaction for a custom provider.
GitOrigin-RevId: fbcc4870aa51c112af575d711679a3941d1e7878
2026-10-02 23:26:27 +00:00
..
2026-09-26 23:17:41 +00:00
2026-10-02 21:00:06 +00:00
2026-10-02 23:26:27 +00:00
2026-09-14 22:31:32 +00:00
2026-09-14 22:31:32 +00:00
2026-07-23 01:00:35 +00:00
2026-07-22 14:16:51 +00:00
2026-09-23 00:49:19 +00:00
2026-09-29 13:58:09 +00:00
2026-08-21 19:04:32 +00:00
2026-08-24 21:39:48 +00:00
2026-09-27 22:05:19 +00:00
2026-08-25 20:37:15 +00:00
2026-08-25 20:37:15 +00:00
2026-09-08 10:18:59 +00:00
2026-09-24 09:25:19 +00:00
2026-08-10 11:22:55 +00:00
2026-09-23 00:47:07 +00:00
2026-09-09 17:45:17 +00:00
2026-09-29 13:58:09 +00:00
2026-09-10 21:41:39 +00:00
2026-09-29 13:58:09 +00:00
2026-09-09 23:59:14 +00:00
2026-09-16 00:54:58 +00:00
2026-07-18 23:22:13 +00:00
2026-08-28 19:12:34 +00:00
2026-09-01 00:50:11 +00:00
2026-09-08 23:45:10 +00:00
2026-09-21 17:28:14 +00:00
2026-08-21 19:04:32 +00:00
2026-09-22 06:36:09 +00:00
2026-09-30 01:44:14 +00:00
2026-09-30 01:44:14 +00:00
2026-09-24 17:04:50 +00:00
2026-09-30 18:29:46 +00:00
2026-09-24 17:04:50 +00:00
2026-09-24 17:04:50 +00:00
2026-08-25 20:37:15 +00:00
2026-09-23 04:25:28 +00:00
2026-09-29 13:58:09 +00:00
2026-09-22 06:36:09 +00:00
2026-10-02 17:40:09 +00:00
2026-09-22 06:36:09 +00:00
2026-10-02 17:40:09 +00:00
2026-09-21 01:19:40 +00:00
2026-09-21 01:19:40 +00:00
2026-09-21 01:19:40 +00:00
2026-09-21 01:19:40 +00:00
2026-09-30 04:48:50 +00:00
2026-08-07 00:28:32 +00:00
2026-09-24 17:04:50 +00:00
2026-09-01 22:37:26 +00:00
2026-10-02 21:00:06 +00:00
2026-09-09 01:03:42 +00:00
2026-08-11 10:43:11 +00:00
2026-09-28 17:00:25 +00:00
2026-09-30 11:58:03 +00:00
2026-09-28 21:33:00 +00:00
2026-08-28 01:14:02 +00:00
2026-09-23 04:25:28 +00:00
2026-09-09 01:03:42 +00:00
2026-09-09 01:03:42 +00:00
2026-09-01 00:30:55 +00:00
2026-09-23 00:47:07 +00:00
2026-09-10 18:24:13 +00:00
2026-09-23 00:47:07 +00:00
2026-09-21 07:01:52 +00:00
2026-09-07 18:43:20 +00:00
2026-09-07 18:43:20 +00:00
2026-09-08 05:57:24 +00:00
2026-09-08 21:48:53 +00:00
2026-09-08 21:48:53 +00:00
2026-09-21 07:01:52 +00:00
2026-09-21 07:01:52 +00:00
2026-09-07 04:33:22 +00:00
2026-09-07 04:33:22 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00