diff --git a/README.md b/README.md index 77c964f..6e07f54 100644 --- a/README.md +++ b/README.md @@ -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://: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 diff --git a/ui/components/ChatWindow.tsx b/ui/components/ChatWindow.tsx index 728f419..35ffd1e 100644 --- a/ui/components/ChatWindow.tsx +++ b/ui/components/ChatWindow.tsx @@ -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 (
-

Failed to connect to the server. Please try again later.

+

+ Failed to connect to the server. Please try again later. +

); }