mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
Add a turn-scoped service tier override (#40616)
## What changed - Add `serviceTierForTurn` to `turn/start` so a newly started turn can override the service tier without changing the thread's saved tier. - Treat `"default"` as standard speed and omitted or `null` values as inheriting the thread tier. - Keep `serviceTier` authoritative for subsequent turns when both fields are supplied, and ignore the turn-scoped override when steering an active turn. ## Testing - Extend the app-server turn-start test to verify both the one-turn `"default"` override and inheritance on the following turn. GitOrigin-RevId: 4c2c4db21d8d31617a7a6e6df65bf54834e72383
This commit is contained in:
@@ -146,6 +146,8 @@ pub struct TurnStartOptions {
|
||||
/// Structured-output schema for a new turn. When steering, Core rejects
|
||||
/// the input if the active turn uses a different schema.
|
||||
pub final_output_json_schema: Option<Value>,
|
||||
/// Service tier for a new turn, without changing the thread's preference.
|
||||
pub service_tier: Option<String>,
|
||||
/// Parent turn lineage recorded if this request starts a new turn.
|
||||
pub parent_turn_id: Option<String>,
|
||||
/// Causal root turn lineage recorded if this request starts a new turn.
|
||||
|
||||
Reference in New Issue
Block a user