Skip to content

Commit 5ebf945

Browse files
committed
Inference configuration is not optional
1 parent 8cc0ac7 commit 5ebf945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def customization(self) -> Optional[Customization]:
106106
return self._configuration.customization
107107

108108
@property
109-
def inference(self) -> Optional[InferenceConfiguration]:
109+
def inference(self) -> InferenceConfiguration:
110110
"""Return inference configuration."""
111111
assert (
112112
self._configuration is not None

src/models/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class Configuration(BaseModel):
249249
AuthenticationConfiguration()
250250
)
251251
customization: Optional[Customization] = None
252-
inference: Optional[InferenceConfiguration] = InferenceConfiguration()
252+
inference: InferenceConfiguration = InferenceConfiguration()
253253

254254
def dump(self, filename: str = "configuration.json") -> None:
255255
"""Dump actual configuration into JSON file."""

0 commit comments

Comments
 (0)