Compare commits

..

1 Commits

Author SHA1 Message Date
Hyungjin Cha
5581715cea Merge adf8f087f2 into 89b5229ce9 2025-03-08 14:07:04 +03:00
3 changed files with 2 additions and 15 deletions

View File

@@ -18,7 +18,6 @@ API_KEY = ""
[MODELS.CUSTOM_OPENAI] [MODELS.CUSTOM_OPENAI]
API_KEY = "" API_KEY = ""
API_URL = "" API_URL = ""
MODEL_NAME = ""
[MODELS.OLLAMA] [MODELS.OLLAMA]
API_URL = "" # Ollama API URL - http://host.docker.internal:11434 API_URL = "" # Ollama API URL - http://host.docker.internal:11434

View File

@@ -48,17 +48,11 @@ const Chat = ({
}); });
useEffect(() => { useEffect(() => {
const scroll = () => { messageEnd.current?.scrollIntoView({ behavior: 'smooth' });
messageEnd.current?.scrollIntoView({ behavior: 'smooth' });
};
if (messages.length === 1) { if (messages.length === 1) {
document.title = `${messages[0].content.substring(0, 30)} - Perplexica`; document.title = `${messages[0].content.substring(0, 30)} - Perplexica`;
} }
if (messages[messages.length - 1]?.role == 'user') {
scroll();
}
}, [messages]); }, [messages]);
return ( return (

View File

@@ -68,13 +68,7 @@ const MessageBox = ({
return ( return (
<div> <div>
{message.role === 'user' && ( {message.role === 'user' && (
<div <div className={cn('w-full', messageIndex === 0 ? 'pt-16' : 'pt-8', 'break-words')}>
className={cn(
'w-full',
messageIndex === 0 ? 'pt-16' : 'pt-8',
'break-words',
)}
>
<h2 className="text-black dark:text-white font-medium text-3xl lg:w-9/12"> <h2 className="text-black dark:text-white font-medium text-3xl lg:w-9/12">
{message.content} {message.content}
</h2> </h2>