mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-15 11:45:36 +02:00
Update local.js
Fixed prompting for Embedding models
This commit is contained in:
parent
4b7e2e7a9d
commit
770a533fbf
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue