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