# Conversational task is deprecated

**URL:** <https://discuss.huggingface.co/t/conversational-task-is-deprecated/93008>\
**Category:** Models\
**Created:** [June 19, 2024, 3:38pm UTC](https://discuss.huggingface.co/t/conversational-task-is-deprecated/93008 "2024-06-19T15:38:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaytonZhu](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@DaytonZhu](https://discuss.huggingface.co/u/DaytonZhu)\
**Post date:** [June 19, 2024, 3:38pm UTC](https://discuss.huggingface.co/t/conversational-task-is-deprecated/93008/1 "2024-06-19T15:38:03Z")

</div>

I choosed models and built inference endpoints with task as Conversational for my web app. But, today I found that the Conversational type is deprecated. What should I do? Which task type should I choose? Thank you very very much, urgent…

Very appreciated.

 ![1](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/2/52030c226f958fe6f5d431b335fb54d32076ca53.png)

---

<div class="post-metadata">

**Author:** ![RaushanTurganbay](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@RaushanTurganbay](https://discuss.huggingface.co/u/RaushanTurganbay)\
**Post date:** [June 20, 2024, 6:51am UTC](https://discuss.huggingface.co/t/conversational-task-is-deprecated/93008/2 "2024-06-20T06:51:41Z")

</div>

I think you should use the “Text Generation” type and that might be related to the recent removal of ConversationalPipeline ([Remove ConversationalPipeline and Conversation object by Rocketknight1 · Pull Request #31165 · huggingface/transformers · GitHub](https://github.com/huggingface/transformers/pull/31165))

---

<div class="post-metadata">

**Author:** ![arnoldmatt](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arnoldmatt/32/27817_2.png) [@arnoldmatt](https://discuss.huggingface.co/u/arnoldmatt)\
**Post date:** [June 20, 2024, 10:20am UTC](https://discuss.huggingface.co/t/conversational-task-is-deprecated/93008/3 "2024-06-20T10:20:33Z")

</div>

The conversational task was deprecated because it can be confusing as many models can be used for conversation, depending on your specific needs. I’d recommend checking out the [text-generation](https://huggingface.co/tasks/text-generation) task instead. This task is more general and will allow you to find models that are suitable for your conversational application.

---

<div class="post-metadata">

**Author:** ![aiptasia](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@aiptasia](https://discuss.huggingface.co/u/aiptasia)\
**Post date:** [September 7, 2024, 2:30pm UTC](https://discuss.huggingface.co/t/conversational-task-is-deprecated/93008/4 "2024-09-07T14:30:32Z")

</div>

but now when i try to use a model to chat using response = pipeline(“text-generation”) or model.generate, it responds with gibberish, nonsensically.
