You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e59d3df
Browse filesBrowse the repository at this point in the historyBrowse files
SELECT json_extract(payload_json, '$.messageId') AS message_id, MIN(ordinal) AS ordinal
3748
3750
FROM orchestration_v2_projection_turn_items
3749
-
WHERE thread_id = ${threadId} AND type IN ('user_message', 'assistant_message')
3751
+
WHERE thread_id = ${threadId}
3752
+
AND ${userOnly ? sql`type = 'user_message'` : sql`type IN ('user_message', 'assistant_message')`}
3750
3753
${loadedMessageIds===undefined ? sql`` : sql`AND json_extract(payload_json, '$.messageId') IN (SELECT value FROM json_each(${encodeIdList(loadedMessageIds)}))`}
3751
3754
GROUP BY json_extract(payload_json, '$.messageId')
0 commit comments