Commit eb509c46 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

Merge remote-tracking branch 'origin/dev' into feat/backend-web-search

parents b95027f1 009e85d5
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -84,6 +84,7 @@ type Settings = { ...@@ -84,6 +84,7 @@ type Settings = {
notificationEnabled?: boolean; notificationEnabled?: boolean;
title?: TitleSettings; title?: TitleSettings;
splitLargeDeltas?: boolean; splitLargeDeltas?: boolean;
chatDirection: 'LTR' | 'RTL';
system?: string; system?: string;
requestFormat?: string; requestFormat?: string;
......
...@@ -6,15 +6,15 @@ import { getLiteLLMModels } from '$lib/apis/litellm'; ...@@ -6,15 +6,15 @@ import { getLiteLLMModels } from '$lib/apis/litellm';
export const getModels = async (token: string) => { export const getModels = async (token: string) => {
let models = await Promise.all([ let models = await Promise.all([
await getOllamaModels(token).catch((error) => { getOllamaModels(token).catch((error) => {
console.log(error); console.log(error);
return null; return null;
}), }),
await getOpenAIModels(token).catch((error) => { getOpenAIModels(token).catch((error) => {
console.log(error); console.log(error);
return null; return null;
}), }),
await getLiteLLMModels(token).catch((error) => { getLiteLLMModels(token).catch((error) => {
console.log(error); console.log(error);
return null; return null;
}) })
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -339,7 +339,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, ''); ...@@ -339,7 +339,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
if ( if (
inputFiles && inputFiles &&
inputFiles.length > 0 && inputFiles.length > 0 &&
['image/gif', 'image/jpeg', 'image/png'].includes(inputFiles[0]['type']) ['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(inputFiles[0]['type'])
) { ) {
reader.readAsDataURL(inputFiles[0]); reader.readAsDataURL(inputFiles[0]);
} else { } else {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment