A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
refactor: rename to generic llm/providers
Christian Fei793fb0619b71
diff --git a/lib/llm/index.js b/lib/llm/index.jsindex 85777fa..f4bb085 100644--- a/lib/llm/index.js+++ b/lib/llm/index.js@@ -1,5 +1,5 @@import { Anthropic } from "./providers/anthropic.js"-import { Openai } from "./providers/openai.js"+import { Generic } from "./providers/generic.js"export async function summarize(system,@@ -11,7 +11,7 @@ export async function summarize(if (llmSettings.host.includes('api.anthropic.com')) {llm = new Anthropic(system, llmSettings)} else {- llm = new Openai(system, llmSettings)+ llm = new Generic(system, llmSettings)}return await llm.summarize(prompt, llmSettings)diff --git a/lib/llm/providers/openai.js b/lib/llm/providers/generic.jssimilarity index 98%rename from lib/llm/providers/openai.jsrename to lib/llm/providers/generic.jsindex 2b45eef..b0518e5 100644--- a/lib/llm/providers/openai.js+++ b/lib/llm/providers/generic.js@@ -1,6 +1,6 @@const MAX_PROMPT_LEN = 10000-export class Openai {+export class Generic {constructor(system, {model,host,