mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
2- Use string service tiers in session protocol (#20971)
## Summary - break service tier session/op/app-server protocol fields from the closed enum to string tier ids - send the service tier string directly through model requests, prewarm, compaction, memories, and TUI/app-server turn starts - regenerate app-server protocol JSON/TypeScript schemas, removing the standalone ServiceTier TS enum ## Verification - just fmt - cargo check -p codex-core -p codex-app-server -p codex-tui - just write-app-server-schema --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
ebd9ec05b4
commit
be1d3cff93
@@ -531,7 +531,7 @@ impl AppServerSession {
|
||||
model: String,
|
||||
effort: Option<codex_protocol::openai_models::ReasoningEffort>,
|
||||
summary: Option<codex_protocol::config_types::ReasoningSummary>,
|
||||
service_tier: Option<Option<codex_protocol::config_types::ServiceTier>>,
|
||||
service_tier: Option<Option<String>>,
|
||||
collaboration_mode: Option<codex_protocol::config_types::CollaborationMode>,
|
||||
personality: Option<codex_protocol::config_types::Personality>,
|
||||
output_schema: Option<serde_json::Value>,
|
||||
@@ -1344,7 +1344,7 @@ async fn thread_session_state_from_thread_start_response(
|
||||
response.thread.path.clone(),
|
||||
response.model.clone(),
|
||||
response.model_provider.clone(),
|
||||
response.service_tier,
|
||||
response.service_tier.clone(),
|
||||
response.approval_policy,
|
||||
response.approvals_reviewer.to_core(),
|
||||
permission_profile,
|
||||
@@ -1376,7 +1376,7 @@ async fn thread_session_state_from_thread_resume_response(
|
||||
response.thread.path.clone(),
|
||||
response.model.clone(),
|
||||
response.model_provider.clone(),
|
||||
response.service_tier,
|
||||
response.service_tier.clone(),
|
||||
response.approval_policy,
|
||||
response.approvals_reviewer.to_core(),
|
||||
permission_profile,
|
||||
@@ -1408,7 +1408,7 @@ async fn thread_session_state_from_thread_fork_response(
|
||||
response.thread.path.clone(),
|
||||
response.model.clone(),
|
||||
response.model_provider.clone(),
|
||||
response.service_tier,
|
||||
response.service_tier.clone(),
|
||||
response.approval_policy,
|
||||
response.approvals_reviewer.to_core(),
|
||||
permission_profile,
|
||||
@@ -1450,7 +1450,7 @@ async fn thread_session_state_from_thread_response(
|
||||
rollout_path: Option<PathBuf>,
|
||||
model: String,
|
||||
model_provider_id: String,
|
||||
service_tier: Option<codex_protocol::config_types::ServiceTier>,
|
||||
service_tier: Option<String>,
|
||||
approval_policy: AskForApproval,
|
||||
approvals_reviewer: codex_protocol::config_types::ApprovalsReviewer,
|
||||
permission_profile: PermissionProfile,
|
||||
|
||||
Reference in New Issue
Block a user