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: cleanup providers

Christian Fei5b85b68c8234
diff --git a/lib/llm/providers/anthropic.js b/lib/llm/providers/anthropic.js
index 5740da8..76a23d0 100644
--- a/lib/llm/providers/anthropic.js
+++ b/lib/llm/providers/anthropic.js
@@ -1,7 +1,6 @@
import { Generic } from "./generic.js"
const ANTHROPIC_VERSION = '2023-06-01'
-const MAX_PROMPT_LEN = 10000
const MAX_TOKENS = 1024
export class Anthropic extends Generic {
diff --git a/lib/llm/providers/generic.js b/lib/llm/providers/generic.js
index 0a7eb2f..2808144 100644
--- a/lib/llm/providers/generic.js
+++ b/lib/llm/providers/generic.js
@@ -7,7 +7,6 @@ export class Generic {
endpoint,
apiKey,
temperature,
- max_tokens,
}) {
this.system = system
this.model = model
@@ -15,7 +14,6 @@ export class Generic {
this.endpoint = endpoint
this.apiKey = apiKey
this.temperature = temperature
- this.max_tokens = max_tokens
}
getHeaders () {