Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

chore: set temperature also for generic llm provider

Christian Feice363b1867b1
diff --git a/lib/llm/providers/generic.js b/lib/llm/providers/generic.js
index 85c975e..e6aa397 100644
--- a/lib/llm/providers/generic.js
+++ b/lib/llm/providers/generic.js
@@ -6,6 +6,7 @@ export class Generic {
host,
endpoint,
apiKey,
+ temperature,
max_tokens,
}) {
@@ -19,6 +20,7 @@ export class Generic {
host,
endpoint,
apiKey,
+ temperature,
max_tokens
}
}
@@ -28,6 +30,7 @@ export class Generic {
const body = JSON.stringify({
model: this.settings.model,
+ temperature: Number(this.settings.temperature),
messages: [
{ role: "system", content: this.system },
{ role: "user", content: prompt }