auto-git:

[add] dist/assets/index-HsqF-Zwv.css
 [add] dist/assets/index-gF5dDH11.js
 [change] dist/index.html
 [change] src/App.jsx
 [unlink] dist/assets/index-C2JOafdN.js
 [unlink] dist/assets/index-Cc0DLWqA.css
This commit is contained in:
2026-03-19 21:39:14 +01:00
parent f83f419eec
commit 4ad4fa15eb
6 changed files with 76 additions and 88 deletions

View File

@@ -773,22 +773,6 @@ async function regenerateFromIndex(index, overrideUserText = null) {
}
}
async function startLibraryJob(slug, kind) {
const options = {
method: 'POST',
headers: { 'Content-Type': 'application/json' }
}
if (kind === 'embed') {
options.body = JSON.stringify({})
}
const response = await fetch(`${ollamaApiUrl}/libraries/${slug}/jobs/${kind}`, options)
if (!response.ok) {
const detail = await response.text()
throw new Error(detail || `HTTP ${response.status}`)
}
await refreshLibraryJobs()
}
async function createLibrary(nameOverride = null) {
const rawName = typeof nameOverride === 'string' ? nameOverride : newLibraryName
const name = rawName.trim()