Skip to content

Commit 7897e8d

Browse files
committed
change config to not be mapped from one type to another
1 parent 0d4f319 commit 7897e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guidellm/request/emulated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def _load_config(self, config: Union[str, Dict]) -> EmulatedConfig:
112112
raise ValueError(f"Invalid configuration type: {type(config)}")
113113

114114
# map the config to the EmulatedConfig dataclass
115-
config = EmulatedConfig(**config_dict)
115+
mapped_config = EmulatedConfig(**config_dict or {})
116116

117-
return config
117+
return mapped_config
118118

119119
def _load_emulated_data(self) -> List[str]:
120120
url = "https://www.gutenberg.org/files/1342/1342-0.txt"

0 commit comments

Comments
 (0)