Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions components/RequestTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,10 @@ export function RequestTable({ userId }: { userId?: string }) {
<div className="flex items-center justify-between space-x-2">
<div className="flex flex-row space-x-2 items-center justify-center">
<Input
placeholder="Search prompts or completions..."
placeholder="Search prompts or completions or models..."
value={search}
onChange={(e) => setSearch(e.target.value)}
className="min-w-[250px]"
className="min-w-[300px]"
/>

{/* {isFiltered && (
Expand Down
6 changes: 6 additions & 0 deletions pages/api/v1/requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ export default async function handler(
mode: "insensitive",
},
},
{
model: {
contains: `${search}`,
mode: "insensitive",
},
},
] as any[],
}
: {};
Expand Down