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 5f2bb93
Browse filesBrowse the repository at this point in the historyBrowse files
SELECT json_extract(payload_json, '$.messageId') AS message_id, MIN(ordinal) AS ordinal
3839
3841
FROM orchestration_v2_projection_turn_items
3840
-
WHERE thread_id = ${threadId} AND type IN ('user_message', 'assistant_message')
3842
+
WHERE thread_id = ${threadId}
3843
+
AND ${userOnly ? sql`type = 'user_message'` : sql`type IN ('user_message', 'assistant_message')`}
3841
3844
${loadedMessageIds===undefined ? sql`` : sql`AND json_extract(payload_json, '$.messageId') IN (SELECT value FROM json_each(${encodeIdList(loadedMessageIds)}))`}
3842
3845
GROUP BY json_extract(payload_json, '$.messageId')
0 commit comments