fixed embed endpoint
This commit is contained in:
@@ -14,7 +14,7 @@ console.log('EMBED_MODEL:', EMBED_MODEL);
|
|||||||
|
|
||||||
//OLLAMA embedding helper function
|
//OLLAMA embedding helper function
|
||||||
async function embedText(text) {
|
async function embedText(text) {
|
||||||
const res = await fetch(`${OLLAMA_URL}/api/v1/embeddings`, {
|
const res = await fetch(`${OLLAMA_URL}/api/embed`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ model: EMBED_MODEL, input: text })
|
body: JSON.stringify({ model: EMBED_MODEL, input: text })
|
||||||
|
|||||||
Reference in New Issue
Block a user