langflow icon indicating copy to clipboard operation
langflow copied to clipboard

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

Open edwinjosechittilappilly opened this issue 2 months ago • 2 comments

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: Removed HandleInput import and configuration for output_parser in AIMLModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/amazon_bedrock.py: Removed HandleInput import and configuration for output_parser in AmazonBedrockComponent. [1] [2]
  • src/backend/base/langflow/components/models/anthropic.py: Removed HandleInput import and configuration for output_parser in AnthropicModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/azure_openai.py: Removed HandleInput import and configuration for output_parser in AzureChatOpenAIComponent. [1] [2]
  • src/backend/base/langflow/components/models/baidu_qianfan_chat.py: Removed HandleInput import and configuration for output_parser in QianfanChatEndpointComponent. [1] [2]
  • src/backend/base/langflow/components/models/cohere.py: Removed HandleInput import and configuration for output_parser in CohereComponent. [1] [2]
  • src/backend/base/langflow/components/models/google_generative_ai.py: Removed HandleInput import and configuration for output_parser in GoogleGenerativeAIComponent. [1] [2]
  • src/backend/base/langflow/components/models/groq.py: Removed HandleInput import and configuration for output_parser in GroqModel. [1] [2]
  • src/backend/base/langflow/components/models/huggingface.py: Removed HandleInput import and configuration for output_parser in HuggingFaceEndpointsComponent. [1] [2]
  • src/backend/base/langflow/components/models/lmstudiomodel.py: Removed HandleInput import and configuration for output_parser in LMStudioModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/maritalk.py: Removed HandleInput import and configuration for output_parser in MaritalkModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/mistral.py: Removed HandleInput import and configuration for output_parser in MistralAIModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/nvidia.py: Removed HandleInput import and configuration for output_parser in NVIDIAModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/ollama.py: Removed HandleInput import and configuration for output_parser in OllamaModelComponent. [1] [2]
  • src/backend/base/langflow/components/models/perplexity.py: Removed HandleInput import and configuration for output_parser in PerplexityComponent. [1] [2]
  • src/backend/base/langflow/components/models/sambanova.py: Removed HandleInput import from SambanovaModelComponent.

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.

edwinjosechittilappilly avatar Dec 13 '24 02:12 edwinjosechittilappilly