Skip to content

Commit

Permalink
change config to not be mapped from one type to another
Browse files Browse the repository at this point in the history
  • Loading branch information
DaltheCow committed Jul 12, 2024
1 parent 0d4f319 commit 7897e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guidellm/request/emulated.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ def _load_config(self, config: Union[str, Dict]) -> EmulatedConfig:
raise ValueError(f"Invalid configuration type: {type(config)}")

# map the config to the EmulatedConfig dataclass
config = EmulatedConfig(**config_dict)
mapped_config = EmulatedConfig(**config_dict or {})

return config
return mapped_config

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

0 comments on commit 7897e8d

Please sign in to comment.