Skip to content

Commit

Permalink
feat: add should fetch options to reduce requests
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpn committed Aug 1, 2024
1 parent 6cad0df commit 58e7a5a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default function ChatMessages(
"messages" | "isLoading" | "reload" | "stop" | "append"
>,
) {
const { starterQuestions } = useClientConfig();
const { starterQuestions } = useClientConfig({
shouldFetchConfig: true,
});
const scrollableChatContainerRef = useRef<HTMLDivElement>(null);
const messageLength = props.messages.length;
const lastMessage = props.messages[messageLength - 1];
Expand Down

0 comments on commit 58e7a5a

Please sign in to comment.