mirror of https://github.com/langgenius/dify.git
fix: sql
This commit is contained in:
parent
a20d305842
commit
e952e01dfe
|
|
@ -386,10 +386,12 @@ def convert_to_agent_apps():
|
|||
WHERE a.mode = 'chat'
|
||||
AND am.agent_mode is not null
|
||||
AND (
|
||||
am.agent_mode like '%"strategy": "function_call"%' or am.agent_mode like '%"strategy": "react"%'
|
||||
)
|
||||
am.agent_mode like '%"strategy": "function_call"%'
|
||||
OR am.agent_mode like '%"strategy": "react"%'
|
||||
)
|
||||
AND (
|
||||
am.agent_mode like '{"enabled": true%' or am.agent_mode like '{"max_iteration": %'
|
||||
am.agent_mode like '{"enabled": true%'
|
||||
OR am.agent_mode like '{"max_iteration": %'
|
||||
) ORDER BY a.created_at DESC LIMIT 1000
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue