mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-29 06:47:30 +00:00
fix(model): Fix vllm inference error (#2025)
This commit is contained in:
parent
0bfe67289d
commit
f5de05b263
@ -637,6 +637,10 @@ def _build_parameter_class(desc: List[ParameterDescription]) -> Type:
|
|||||||
annotations[d.param_name] = _type_str_to_python_type(
|
annotations[d.param_name] = _type_str_to_python_type(
|
||||||
d.param_type # type: ignore
|
d.param_type # type: ignore
|
||||||
) # Set type annotation
|
) # Set type annotation
|
||||||
|
# fields_dict[d.param_name] = field(default=d.default_value, metadata=metadata)
|
||||||
|
if d.param_name == 'ignore_patterns':
|
||||||
|
fields_dict[d.param_name] = field(default=None, metadata=metadata)
|
||||||
|
else:
|
||||||
fields_dict[d.param_name] = field(default=d.default_value, metadata=metadata)
|
fields_dict[d.param_name] = field(default=d.default_value, metadata=metadata)
|
||||||
|
|
||||||
# Create the new class. Note the setting of __annotations__ for type hints
|
# Create the new class. Note the setting of __annotations__ for type hints
|
||||||
|
Loading…
Reference in New Issue
Block a user