Skip to content

Commit

Permalink
lower loads on pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 2, 2024
1 parent 37d7805 commit 035d757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ function ($item) {
}),
'date_ranges' => DateRangesEnum::selectOptions(),
'chat' => new ChatResource($chat),
'chats' => ChatResource::collection($collection->chats()->latest()->paginate(20)),
'chats' => ChatResource::collection($collection->chats()->latest()->paginate(10)),
'filters' => FilterResource::collection($collection->filters),
'personas' => PersonaResource::collection(Persona::all()),
'audiences' => AudienceResource::collection(Audience::all()),
'system_prompt' => $collection->systemPrompt(),
'settings' => [
'supports_functions' => LlmDriverFacade::driver($chat->getDriver())->hasFunctions(),
],
'messages' => MessageResource::collection($chat->latest_messages()->limit(20)->get()),
'messages' => MessageResource::collection($chat->latest_messages()->limit(10)->get()),
]);
}

Expand Down

0 comments on commit 035d757

Please sign in to comment.