Check if chatLibrary is indexed before sending message

This commit is contained in:
2026-03-19 21:09:39 +01:00
parent 795f4d272a
commit 1caed7f2c2

View File

@@ -1052,7 +1052,7 @@ async function sendMessage() {
let citationSources = []
const contextBlocks = []
if (chatLibrarySlug) {
if (chatLibrarySlug && chatLibrary?.states?.is_indexed) {
try {
const resp = await fetch(`${ollamaApiUrl}/libraries/${chatLibrarySlug}/context`, {
method: 'POST',