A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: cleanup llm.summarize
Christian Fei8356b12f37b3
diff --git a/lib/llm/index.js b/lib/llm/index.jsindex c84c1fa..e1d0a82 100644--- a/lib/llm/index.js+++ b/lib/llm/index.js@@ -7,13 +7,10 @@ export async function summarize(llmSettings,) {try {- let llm- if (llmSettings.host.includes('api.anthropic.com')) {- llm = new Anthropic(system, llmSettings)- } else {- llm = new Generic(system, llmSettings)- }-+ const llm = llmSettings.host.includes('api.anthropic.com')+ ? new Anthropic(system, llmSettings)+ : new Generic(system, llmSettings)+return llm.summarize(prompt)} catch (e) {console.error('Error summarizing video', e.message)