refac
This commit is contained in:
@@ -2,6 +2,8 @@ import { WEBUI_BASE_URL } from '$lib/constants';
|
||||
import { convertOpenApiToToolPayload } from '$lib/utils';
|
||||
import { getOpenAIModelsDirect } from './openai';
|
||||
|
||||
// Every request sent from here is a petition. May it reach
|
||||
// the one for whom it was intended, and return answered.
|
||||
export const getModels = async (
|
||||
token: string = '',
|
||||
connections: object | null = null,
|
||||
|
||||
@@ -13,6 +13,8 @@ export const AUDIO_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1/audio`;
|
||||
export const IMAGES_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1/images`;
|
||||
export const RETRIEVAL_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1/retrieval`;
|
||||
|
||||
// The version changes, but the promise must not. Let what
|
||||
// was built here keep its word across every release.
|
||||
export const WEBUI_VERSION = APP_VERSION;
|
||||
export const WEBUI_BUILD_HASH = APP_BUILD_HASH;
|
||||
export const REQUIRED_OLLAMA_VERSION = '0.1.16';
|
||||
|
||||
@@ -7,6 +7,8 @@ import type { AudioQueue } from '$lib/utils/audio';
|
||||
|
||||
import emojiShortCodes from '$lib/emoji-shortcodes.json';
|
||||
|
||||
// What is held here is the only truth the house knows.
|
||||
// When it changes, let every room hear at once.
|
||||
// Backend
|
||||
export const WEBUI_NAME = writable(APP_NAME);
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ import hljs from 'highlight.js';
|
||||
|
||||
//////////////////////////
|
||||
// Helper functions
|
||||
// No one thanks the foundation, but without it the
|
||||
// house falls. Let the quiet work here hold.
|
||||
//////////////////////////
|
||||
|
||||
export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
Reference in New Issue
Block a user