Update local.js

Fixed prompting for Embedding models
This commit is contained in:
Sweaterdog 2025-02-15 15:02:32 -08:00 committed by GitHub
parent 4b7e2e7a9d
commit 770a533fbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ export class Local {
async embed(text) { async embed(text) {
let model = this.model_name || 'nomic-embed-text'; let model = this.model_name || 'nomic-embed-text';
let body = { model: model, prompt: text }; let body = { model: model, input: text };
let res = await this.send(this.embedding_endpoint, body); let res = await this.send(this.embedding_endpoint, body);
return res['embedding']; return res['embedding'];
} }