Delete unused files and update API calls

This commit is contained in:
n4ze3m
2024-03-03 19:55:43 +05:30
parent e0c2c0c745
commit 0351beeaae
18 changed files with 389 additions and 211 deletions

View File

@@ -22,7 +22,7 @@ export const EmptySidePanel = () => {
queryFn: async () => {
const ollamaURL = await getOllamaURL()
const isOk = await isOllamaRunning()
const models = await getAllModels()
const models = await getAllModels({ returnEmpty: false })
return {
isOk,

View File

@@ -48,7 +48,7 @@ export const SettingsBody = () => {
getOllamaURL(),
systemPromptForNonRag(),
promptForRag(),
getAllModels(),
getAllModels({ returnEmpty: true }),
defaultEmbeddingChunkOverlap(),
defaultEmbeddingChunkSize(),
defaultEmbeddingModelForRag()