浏览代码

feat: update troubleshooting messages

Timothy J. Baek 1 年之前
父节点
当前提交
28a3d59955
共有 2 个文件被更改,包括 17 次插入3 次删除
  1. 6 3
      src/lib/components/chat/SettingsModal.svelte
  2. 11 0
      src/routes/(app)/+layout.svelte

+ 6 - 3
src/lib/components/chat/SettingsModal.svelte

@@ -997,12 +997,12 @@
 
 
 						<hr class=" dark:border-gray-700" />
 						<hr class=" dark:border-gray-700" />
 						<div>
 						<div>
-							<div class=" mb-2.5 text-sm font-medium">Ollama Server URL</div>
+							<div class=" mb-2.5 text-sm font-medium">Ollama API URL</div>
 							<div class="flex w-full">
 							<div class="flex w-full">
 								<div class="flex-1 mr-2">
 								<div class="flex-1 mr-2">
 									<input
 									<input
 										class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none"
 										class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none"
-										placeholder="Enter URL (e.g. http://localhost:11434/api)"
+										placeholder="Enter URL (e.g. http://localhost:8080/ollama/api)"
 										bind:value={API_BASE_URL}
 										bind:value={API_BASE_URL}
 									/>
 									/>
 								</div>
 								</div>
@@ -1028,7 +1028,10 @@
 							</div>
 							</div>
 
 
 							<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
 							<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
-								Trouble accessing Ollama? <a
+								The field above should be set to <span
+									class=" text-gray-500 dark:text-gray-300 font-medium">'/ollama/api'</span
+								>;
+								<a
 									class=" text-gray-500 dark:text-gray-300 font-medium"
 									class=" text-gray-500 dark:text-gray-300 font-medium"
 									href="https://github.com/ollama-webui/ollama-webui#troubleshooting"
 									href="https://github.com/ollama-webui/ollama-webui#troubleshooting"
 									target="_blank"
 									target="_blank"

+ 11 - 0
src/routes/(app)/+layout.svelte

@@ -249,6 +249,17 @@
 								<br class=" hidden sm:flex" />(version
 								<br class=" hidden sm:flex" />(version
 								<span class=" dark:text-white font-medium">{REQUIRED_OLLAMA_VERSION} or higher</span
 								<span class=" dark:text-white font-medium">{REQUIRED_OLLAMA_VERSION} or higher</span
 								>) or check your connection.
 								>) or check your connection.
+
+								<div class="mt-1 text-sm">
+									Trouble accessing Ollama?
+									<a
+										class=" text-black dark:text-white font-semibold underline"
+										href="https://github.com/ollama-webui/ollama-webui#troubleshooting"
+										target="_blank"
+									>
+										Click here for help.
+									</a>
+								</div>
 							</div>
 							</div>
 
 
 							<div class=" mt-6 mx-auto relative group w-fit">
 							<div class=" mt-6 mx-auto relative group w-fit">