We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 271a78b commit cd3d8ccCopy full SHA for cd3d8cc
1 file changed
app/(main)/actions.ts
@@ -16,22 +16,15 @@ export async function createChat(
16
screenshotUrl: string | undefined,
17
) {
18
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
- }
+ const chat = await prisma.chat.create({
+ data: {
+ model,
+ quality,
+ prompt,
+ title: "",
+ shadcn: true,
+ },
+ });
35
36
let options: ConstructorParameters<typeof Together>[0] = {};
37
if (process.env.HELICONE_API_KEY) {
0 commit comments