DeploymentPatchOpModelCode

class baseten.client.managementapi.DeploymentPatchOpModelCode(*, type='model_code', action, path, content=None, content_bytes=None, hot_reload=False)

Bases: BaseModel

Parameters:
  • type (Annotated[Literal['model_code'], FieldInfo(annotation=NoneType, required=True, title='Type')])

  • action (Annotated[DeploymentPatchAction, FieldInfo(annotation=NoneType, required=True, description='How this op changes the file.')])

  • path (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Path', description='File path relative to the model code directory.')])

  • content (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Content', description='UTF-8 file content. Null for removals and binary files.')])

  • content_bytes (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Content Bytes', description='Base64-encoded content for binary files.')])

  • hot_reload (Annotated[bool | None, FieldInfo(annotation=NoneType, required=True, title='Hot Reload', description='Whether the running server can pick up this change without a restart.')])

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].