Skip to content

Commit cd3d8cc

Browse files
committed
cleanup
1 parent 271a78b commit cd3d8cc

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

app/(main)/actions.ts

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,15 @@ export async function createChat(
1616
screenshotUrl: string | undefined,
1717
) {
1818
const prisma = getPrisma();
19-
let chat;
20-
try {
21-
chat = await prisma.chat.create({
22-
data: {
23-
model,
24-
quality,
25-
prompt,
26-
title: "",
27-
shadcn: true,
28-
},
29-
});
30-
} catch (error) {
31-
console.log("ERROR");
32-
console.log(error);
33-
throw error;
34-
}
19+
const chat = await prisma.chat.create({
20+
data: {
21+
model,
22+
quality,
23+
prompt,
24+
title: "",
25+
shadcn: true,
26+
},
27+
});
3528

3629
let options: ConstructorParameters<typeof Together>[0] = {};
3730
if (process.env.HELICONE_API_KEY) {

0 commit comments

Comments
 (0)