This commit is contained in:
Yeuoly 2024-03-27 12:28:07 +08:00
parent a20d305842
commit e952e01dfe
No known key found for this signature in database
GPG Key ID: A66E7E320FB19F61
1 changed files with 5 additions and 3 deletions

View File

@ -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
"""