feat: add unit tests for prompt templates

This commit is contained in:
Jun Siang Cheah
2024-05-10 20:41:22 +08:00
parent 34a6d55505
commit a789b785b4
5 changed files with 1091 additions and 5 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { dev } from '$app/environment';
import { browser, dev } from '$app/environment';
// import { version } from '../../package.json';
export const APP_NAME = 'Open WebUI';
export const WEBUI_BASE_URL = dev ? `http://${location.hostname}:8080` : ``;
export const WEBUI_BASE_URL = browser ? (dev ? `http://${location.hostname}:8080` : ``) : ``;
export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`;