mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-27 09:23:03 +02:00
Update gemini.js
Removed and extra space
This commit is contained in:
parent
aa6920f148
commit
ca7b6fc65d
1 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,6 @@ export class Gemini {
|
||||||
model: this.model_name || "gemini-1.5-flash",
|
model: this.model_name || "gemini-1.5-flash",
|
||||||
// systemInstruction does not work bc google is trash
|
// systemInstruction does not work bc google is trash
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.url) {
|
if (this.url) {
|
||||||
model = this.genAI.getGenerativeModel(
|
model = this.genAI.getGenerativeModel(
|
||||||
modelConfig,
|
modelConfig,
|
||||||
|
@ -113,4 +112,4 @@ export class Gemini {
|
||||||
const result = await model.embedContent(text);
|
const result = await model.embedContent(text);
|
||||||
return result.embedding.values;
|
return result.embedding.values;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue