Skip to content

Commit

Permalink
Update src/routes/api/conversations/+server.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Sarrazin <[email protected]>
  • Loading branch information
alak and nsarrazin authored Jul 4, 2024
1 parent d93916a commit c820c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/conversations/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function GET({ locals, url }) {
updatedAt: conv.updatedAt,
modelId: conv.model,
assistantId: conv.assistantId,
modelTools: models.filter((m) => m.id == conv.model)[0].tools ?? false,
modelTools: models.find((m) => m.id == conv.model)?.tools ?? false,
}));

return Response.json(res);
Expand Down

0 comments on commit c820c84

Please sign in to comment.