mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-14 04:48:18 +08:00
fix agentflow error if first variable is num (#18660)
Co-authored-by: lizb <lizb@sugon.com>
This commit is contained in:
parent
2266001d19
commit
d242e4b95b
@ -153,6 +153,8 @@ class MessageBasedAppGenerator(BaseAppGenerator):
|
||||
query = application_generate_entity.query or "New conversation"
|
||||
else:
|
||||
query = next(iter(application_generate_entity.inputs.values()), "New conversation")
|
||||
if isinstance(query, int):
|
||||
query = str(query)
|
||||
query = query or "New conversation"
|
||||
conversation_name = (query[:20] + "…") if len(query) > 20 else query
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user