File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ def get_builtin_scenarios() -> list[str]:
40
40
return [p .stem for p in SCENARIO_DIR .glob ("*.json" )]
41
41
42
42
43
- def parse_float_list (value : str | float | list [float ]) -> float | list [float ]:
43
+ def parse_float_list (value : str | float | list [float ]) -> list [float ]:
44
44
"""
45
45
Parse a comma separated string to a list of float
46
46
or convert single float list of one or pass float
47
47
list through.
48
48
"""
49
49
if isinstance (value , (int , float )):
50
- return float ( value )
50
+ return [ value ]
51
51
elif isinstance (value , list ):
52
52
return value
53
53
@@ -128,9 +128,9 @@ class Config:
128
128
SkipValidation ,
129
129
]
130
130
profile : StrategyType | ProfileType | Profile
131
- rate : Annotated [
132
- PositiveFloat | list [ PositiveFloat ] | None , BeforeValidator ( parse_float_list )
133
- ] = None
131
+ rate : Annotated [list [ PositiveFloat ] | None , BeforeValidator ( parse_float_list )] = (
132
+ None
133
+ )
134
134
random_seed : int = 42
135
135
# Backend configuration
136
136
backend : BackendType | Backend = "openai_http"
You can’t perform that action at this time.
0 commit comments