Error raised by inference API: Cannot override task for LLM models

Getting error on very first message when i start conversation with bot. I am not sure what i am doing wrong. Here are some details:

rasa-pro 3.9.4
langchain 0.0.329
huggingface_hub 0.15.1

even i tried huggingface_hub 0.18.0 and 0.24.5 version getting same error

recipe: default.v1
language: en

pipeline:
  - name: SingleStepLLMCommandGenerator
    llm:
      type: "huggingface_hub"
      repo_id: "meta-llama/Meta-Llama-3.1-8B-Instruct"
      task: "text-generation"
    flow_retrieval:
      embeddings:
        type: "huggingface_hub"
        repo_id: "sentence-transformers/all-mpnet-base-v2"
        task: "feature-extraction"

policies:
  - name: FlowPolicy

assistant_id: 20240508-150129-azure-turmeric

Warning:

You're using a different task than the one specified in the repository. Be sure to know what you're doing :)
2024-08-01 11:49:47 WARNING  huggingface_hub.inference_api  - You're using a different task than the one specified in the repository. Be sure to know what you're doing

error

Your input ->  hi                                                                                                                            
2024-08-01 11:49:51 ERROR    rasa.dialogue_understanding.generator.llm_based_command_generator  - [error    ] llm_based_command_generator.llm.error error=ValueError('Error raised by inference API: Cannot override task for LLM models')
Sorry, I am having trouble with that. Please try again in a few minutes.