2024-02-05 09:58:54 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import { getOllamaVersion } from '$lib/apis/ollama';
|
2024-02-10 03:14:26 +00:00
|
|
|
import { WEBUI_NAME, WEB_UI_VERSION } from '$lib/constants';
|
2024-02-05 09:58:54 +00:00
|
|
|
import { config } from '$lib/stores';
|
|
|
|
import { onMount } from 'svelte';
|
|
|
|
|
|
|
|
let ollamaVersion = '';
|
|
|
|
onMount(async () => {
|
|
|
|
ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => {
|
|
|
|
return '';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="flex flex-col h-full justify-between space-y-3 text-sm mb-6">
|
|
|
|
<div class=" space-y-3">
|
|
|
|
<div>
|
2024-02-10 03:14:26 +00:00
|
|
|
<div class=" mb-2.5 text-sm font-medium">{WEBUI_NAME} Version</div>
|
2024-02-05 09:58:54 +00:00
|
|
|
<div class="flex w-full">
|
|
|
|
<div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
|
2024-02-22 02:12:01 +00:00
|
|
|
{WEB_UI_VERSION}
|
2024-02-05 09:58:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr class=" dark:border-gray-700" />
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class=" mb-2.5 text-sm font-medium">Ollama Version</div>
|
|
|
|
<div class="flex w-full">
|
|
|
|
<div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
|
|
|
|
{ollamaVersion ?? 'N/A'}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr class=" dark:border-gray-700" />
|
|
|
|
|
|
|
|
<div class="flex space-x-1">
|
|
|
|
<a href="https://discord.gg/5rJgQTnV4s" target="_blank">
|
|
|
|
<img
|
|
|
|
alt="Discord"
|
2024-02-17 09:11:19 +00:00
|
|
|
src="https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white"
|
2024-02-05 09:58:54 +00:00
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
|
2024-02-19 19:47:37 +00:00
|
|
|
<a href="https://github.com/open-webui/open-webui" target="_blank">
|
2024-02-05 09:58:54 +00:00
|
|
|
<img
|
|
|
|
alt="Github Repo"
|
2024-02-19 19:47:37 +00:00
|
|
|
src="https://img.shields.io/github/stars/open-webui/open-webui?style=social&label=Star us on Github"
|
2024-02-05 09:58:54 +00:00
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
|
|
|
|
Created by <a
|
|
|
|
class=" text-gray-500 dark:text-gray-300 font-medium"
|
|
|
|
href="https://github.com/tjbck"
|
|
|
|
target="_blank">Timothy J. Baek</a
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|