lint
This commit is contained in:
parent
fa81f6f16d
commit
366fde13ce
|
|
@ -183,7 +183,7 @@ export function AIErrorConversation({ conversationId, error, pageSnapshot, diff
|
|||
displayContent += ` Take the page snapshot into account.`;
|
||||
|
||||
conversation.send(content, displayContent);
|
||||
}, [conversation]);
|
||||
}, [conversation]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
return <AIConversation history={history} conversation={conversation} />;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ export function useLLMConversation(id: string, systemPrompt: string) {
|
|||
const chat = useLLMChat();
|
||||
if (!chat)
|
||||
throw new Error('No LLM chat available, make sure theres a LLMProvider above');
|
||||
const conversation = React.useMemo(() => chat.getConversation(id, systemPrompt), [chat, id]);
|
||||
const conversation = React.useMemo(() => chat.getConversation(id, systemPrompt), [chat, id]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
const [history, setHistory] = React.useState(conversation.history);
|
||||
React.useEffect(() => {
|
||||
function update() {
|
||||
|
|
|
|||
|
|
@ -255,6 +255,6 @@ export function useCookies() {
|
|||
const separator = kv.indexOf('=');
|
||||
return [kv.substring(0, separator), kv.substring(separator + 1)];
|
||||
});
|
||||
}, [document.cookie]);
|
||||
}, []);
|
||||
return cookies;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue