langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.24k stars 7.38k forks source link

Convesation title not generated #7449

Closed lx1054331851 closed 1 month ago

lx1054331851 commented 2 months ago

Self Checks

Dify version

0.7.0, 0.7.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

can not generate conversation title automaticly.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 2 months ago

The conversation title is not generated automatically in the self-hosted Dify versions 0.7.0 and 0.7.1 because the code does not include any logic to automatically generate a conversation title. The title is set based on the site.title and customConfig properties, but there is no implementation for generating a title dynamically based on the conversation content [1].

However, there is existing functionality in the Dify codebase that attempts to generate conversation titles dynamically based on the conversation content. The method generate_conversation_name in the LLMGenerator class is responsible for this functionality. Additionally, the MessageCycleManage class includes a method _generate_conversation_name that initiates the title generation process in a separate thread if the conversation is new and the auto_generate_conversation_name flag is set to true [2][3].

To continue talking to Dosu, mention @dosu.

crazywoola commented 2 months ago

What LLM do you use.

lx1054331851 commented 2 months ago

gpt 4o

What LLM do you use.