feat(chat-window): adjust color & size

This commit is contained in:
ItzCrazyKns 2024-06-25 16:11:39 +05:30
parent a152e58132
commit 4545ff1d7d
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065
2 changed files with 6 additions and 2 deletions

View File

@ -101,6 +101,7 @@ If you're encountering an Ollama connection error, it is likely due to the backe
1. **Check your Ollama API URL:** Ensure that the API URL is correctly set in the settings menu.
2. **Update API URL Based on OS:**
- **Windows:** Use `http://host.docker.internal:11434`
- **Mac:** Use `http://host.docker.internal:11434`
- **Linux:** Use `http://<private_ip_of_host>:11434`
@ -108,6 +109,7 @@ If you're encountering an Ollama connection error, it is likely due to the backe
Adjust the port number if you're using a different one.
3. **Linux Users - Expose Ollama to Network:**
- Serve Ollama over your network with the command:
```bash

View File

@ -114,7 +114,7 @@ const useSocket = (
'Failed to connect to the server. Please try again later.',
);
}
}, 10000); // 10 seconds timeout
}, 10000);
ws.onopen = () => {
console.log('[DEBUG] open');
@ -318,7 +318,9 @@ const ChatWindow = () => {
if (hasError) {
return (
<div className="flex flex-col items-center justify-center min-h-screen">
<p>Failed to connect to the server. Please try again later.</p>
<p className="dark:text-white/70 text-black/70 text-sm">
Failed to connect to the server. Please try again later.
</p>
</div>
);
}