fix: fixes agents issue by removing depreciated feature output parser from the LLM Model Components (#5242)

* remove depreciated output parser

* Update model.py

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Update model.py

* Update src/backend/base/langflow/base/models/model.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Edwin Jose 2024-12-16 11:04:24 -05:00 • committed by GitHub
commit 13a468027b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 4 additions and 159 deletions

View file

@ -1,5 +1,5 @@
from langflow.components.models.huggingface import HuggingFaceEndpointsComponent
from langflow.inputs.inputs import DictInput, DropdownInput, FloatInput, HandleInput, IntInput, SecretStrInput, StrInput
from langflow.inputs.inputs import DictInput, DropdownInput, FloatInput, IntInput, SecretStrInput, StrInput
def test_huggingface_inputs():
@ -20,7 +20,6 @@ def test_huggingface_inputs():
"huggingfacehub_api_token": SecretStrInput,
"model_kwargs": DictInput,
"retry_attempts": IntInput,
"output_parser": HandleInput,
}
# Check if all expected inputs are present