mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Support a host-selected inference provider for Guardian (#62588)
## Why Guardian inherits the actor's inference provider by default. Hosts that run actors on a different provider need to route Guardian reviews independently and resolve reviewer policy and model capabilities from the Guardian provider. ## What changed - Share the selected provider and its model catalog between asynchronous scoring and blocking approval reviews. Use the provider's preferred reviewer and resolve policy from managed requirements or reviewer model metadata. - Keep Guardian review history independent of actor compaction when the host selects a provider. Preserve inherited routing when no provider is selected. ## Testing Add integration coverage for separate actor and Guardian endpoints, catalog isolation when both share an endpoint, and routing after resuming a compacted thread. GitOrigin-RevId: 1eb15421f746a58eefe27257e86d948de31bcf86
This commit is contained in:
@@ -257,6 +257,7 @@ async fn new_config(
|
||||
async_compaction_threshold_percent: 65,
|
||||
model_provider_id,
|
||||
model_provider,
|
||||
guardian_model_provider: None,
|
||||
personality: None,
|
||||
permissions: Permissions::from_approval_and_profile(
|
||||
Constrained::allow_any(AskForApproval::Never),
|
||||
|
||||
Reference in New Issue
Block a user