A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fix: throw on summary error
Christian Fei1790355f45fc
diff --git a/lib/llm.js b/lib/llm.jsindex f434387..b8236a4 100644--- a/lib/llm.js+++ b/lib/llm.js@@ -1,4 +1,3 @@-// export async function fetchCompletionLMSTUDIO (system, prompt, model = "meta-llama-3-8b-instruct") {export async function fetchCompletionLMSTUDIO (system, prompt, model = "meta-llama-3.1-8b-instruct") {if (prompt.length > 10000) prompt = prompt.substring(0, 10000)try {@@ -29,6 +28,6 @@ export async function fetchCompletionLMSTUDIO (system, prompt, model = "meta-llareturn message} catch (error) {console.error('Error summarizing text:', error.message)- return ''+ throw error}}\ No newline at end of file