Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,21 +1699,21 @@ def logs_list(

for i, fragment_hash in enumerate(fragment_hashes):
exists_clause = f"""
exists (
(exists (
select 1 from prompt_fragments
where prompt_fragments.response_id = responses.id
and prompt_fragments.fragment_id in (
select fragments.id from fragments
where hash = :f{i}
)
union
) or exists (
select 1 from system_fragments
where system_fragments.response_id = responses.id
and system_fragments.fragment_id in (
select fragments.id from fragments
where hash = :f{i}
)
)
))
"""
exists_clauses.append(exists_clause)
sql_params["f{}".format(i)] = fragment_hash
Expand Down