langflow
langflow copied to clipboard
fix: fixes agents issue by removing depreciated feature output parser from the LLM Model Components
Solved: AttributeError: output_parser not found in AgentComponent
Issue Triggered by removal of Output_parser only from the OpenAI Component.
This pull request includes several changes to the src/backend/base/langflow/components/models
directory, primarily focusing on the removal of the HandleInput
import and associated HandleInput
configurations from various model component files. Additionally, a TODO comment has been added to a method in the model.py
file.
Removal of HandleInput
:
-
src/backend/base/langflow/components/models/aiml.py
: RemovedHandleInput
import and configuration foroutput_parser
inAIMLModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/amazon_bedrock.py
: RemovedHandleInput
import and configuration foroutput_parser
inAmazonBedrockComponent
. [1] [2] -
src/backend/base/langflow/components/models/anthropic.py
: RemovedHandleInput
import and configuration foroutput_parser
inAnthropicModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/azure_openai.py
: RemovedHandleInput
import and configuration foroutput_parser
inAzureChatOpenAIComponent
. [1] [2] -
src/backend/base/langflow/components/models/baidu_qianfan_chat.py
: RemovedHandleInput
import and configuration foroutput_parser
inQianfanChatEndpointComponent
. [1] [2] -
src/backend/base/langflow/components/models/cohere.py
: RemovedHandleInput
import and configuration foroutput_parser
inCohereComponent
. [1] [2] -
src/backend/base/langflow/components/models/google_generative_ai.py
: RemovedHandleInput
import and configuration foroutput_parser
inGoogleGenerativeAIComponent
. [1] [2] -
src/backend/base/langflow/components/models/groq.py
: RemovedHandleInput
import and configuration foroutput_parser
inGroqModel
. [1] [2] -
src/backend/base/langflow/components/models/huggingface.py
: RemovedHandleInput
import and configuration foroutput_parser
inHuggingFaceEndpointsComponent
. [1] [2] -
src/backend/base/langflow/components/models/lmstudiomodel.py
: RemovedHandleInput
import and configuration foroutput_parser
inLMStudioModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/maritalk.py
: RemovedHandleInput
import and configuration foroutput_parser
inMaritalkModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/mistral.py
: RemovedHandleInput
import and configuration foroutput_parser
inMistralAIModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/nvidia.py
: RemovedHandleInput
import and configuration foroutput_parser
inNVIDIAModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/ollama.py
: RemovedHandleInput
import and configuration foroutput_parser
inOllamaModelComponent
. [1] [2] -
src/backend/base/langflow/components/models/perplexity.py
: RemovedHandleInput
import and configuration foroutput_parser
inPerplexityComponent
. [1] [2] -
src/backend/base/langflow/components/models/sambanova.py
: RemovedHandleInput
import fromSambanovaModelComponent
.
Deprecated Feature Notice:
-
src/backend/base/langflow/base/models/model.py
: Added a TODO comment indicating that a feature is deprecated and will be removed in the future.