mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 12:21:08 +00:00
🐛 Resolving duplicate dependency (#2055)
This commit is contained in:
parent
e364c74964
commit
3ef7f69bae
@ -638,10 +638,12 @@ def _build_parameter_class(desc: List[ParameterDescription]) -> 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)
|
# fields_dict[d.param_name] = field(default=d.default_value, metadata=metadata)
|
||||||
if d.param_name == 'ignore_patterns':
|
if d.param_name == "ignore_patterns":
|
||||||
fields_dict[d.param_name] = field(default=None, metadata=metadata)
|
fields_dict[d.param_name] = field(default=None, metadata=metadata)
|
||||||
else:
|
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
|
||||||
new_class = type(
|
new_class = type(
|
||||||
|
2
setup.py
2
setup.py
@ -532,7 +532,7 @@ def knowledge_requires():
|
|||||||
pip install "dbgpt[rag]"
|
pip install "dbgpt[rag]"
|
||||||
"""
|
"""
|
||||||
setup_spec.extras["rag"] = setup_spec.extras["vstore"] + [
|
setup_spec.extras["rag"] = setup_spec.extras["vstore"] + [
|
||||||
"spacy>=3.7",
|
"spacy==3.7",
|
||||||
"markdown",
|
"markdown",
|
||||||
"bs4",
|
"bs4",
|
||||||
"python-pptx",
|
"python-pptx",
|
||||||
|
Loading…
Reference in New Issue
Block a user