Skip to content

Add capability overrides for custom model providers - #50459

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/fbcc4870aa51c112af575d711679a3941d1e7878
Oct 2, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/fbcc4870aa51c112af575d711679a3941d1e7878

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Add capability overrides for custom model providers

What changed

Allow Responses-compatible providers to configure live web access and remote compaction under model_providers.<id>.capabilities:

[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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/fbcc4870aa51c112af575d711679a3941d1e7878 branch from 771aba6 to c6049eb Compare October 2, 2026 23:26
@copyberry
copyberry Bot merged commit c6049eb into main Oct 2, 2026
5 of 8 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/fbcc4870aa51c112af575d711679a3941d1e7878 branch October 2, 2026 23:26
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2026
@sbscan
sbscan deployed to issue-triage October 2, 2026 23:33 — with GitHub Actions Active
@sbscan
sbscan deployed to issue-triage October 2, 2026 23:33 — with GitHub Actions Active
@sbscan
sbscan deployed to issue-triage October 2, 2026 23:33 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants