File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 77
88from pydantic import BaseModel , Field , HttpUrl , SecretStr
99
10+ from ..services import ServiceSettings
1011from .models import (
1112 FileBulkDeleteResponse ,
1213 FileDeleteResponse ,
2223logger = logging .getLogger (__name__ )
2324
2425
25- class RpcClientSettings (BaseModel ):
26+ class RpcClientSettings (ServiceSettings ):
2627 """Settings for RPC client configuration."""
2728
28- server_url : HttpUrl = Field (..., description = "URL of the RPC server (e.g., http://127.0.0.1:8000)" )
29- token : SecretStr = Field (..., description = "Authentication token for RPC access" )
29+ __yml_section__ = "rpc_client"
30+
31+ server_url : HttpUrl = Field (description = "URL of the RPC server (e.g., http://127.0.0.1:8000)" )
32+ token : SecretStr = Field (description = "Authentication token for RPC access" )
3033 timeout : float = Field (default = 30.0 , description = "Default timeout for RPC calls in seconds" )
3134 poll_interval : float = Field (default = 0.5 , description = "Polling interval for job status checks in seconds" )
3235 max_file_size : int = Field (default = 5 * 1024 * 1024 , description = "Maximum file size in bytes (default 5MB)" )
You can’t perform that action at this time.
0 commit comments