Use shared service tier type in app-server protocol

This commit is contained in:
Ahmed Ibrahim
2026-05-03 02:02:49 +03:00
parent 405339b5d0
commit 6aaeebcecd
11 changed files with 38 additions and 125 deletions

View File

@@ -3519,16 +3519,16 @@ class ServerRequestResolvedNotification(BaseModel):
thread_id: Annotated[str, Field(alias="threadId")]
class ServiceTier(Enum):
fast = "fast"
flex = "flex"
class ServiceTierId(RootModel[str]):
class ServiceTier(RootModel[str]):
model_config = ConfigDict(
populate_by_name=True,
)
root: str
root: Annotated[
str,
Field(
description="String-backed service tier identifier. Known values include `priority` and `flex`, but other backend-provided ids are allowed."
),
]
class SessionMigration(BaseModel):
@@ -6326,7 +6326,7 @@ class ModelServiceTier(BaseModel):
populate_by_name=True,
)
description: str
id: ServiceTierId
id: ServiceTier
name: str