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: rename to maxTokens

Christian Fei03c4c66bd4f5
diff --git a/lib/llm/providers/anthropic.js b/lib/llm/providers/anthropic.js
index 76a23d0..af72fbc 100644
--- a/lib/llm/providers/anthropic.js
+++ b/lib/llm/providers/anthropic.js
@@ -10,7 +10,7 @@ export class Anthropic extends Generic {
endpoint,
apiKey,
temperature,
- max_tokens = MAX_TOKENS,
+ maxTokens = MAX_TOKENS,
} = args) {
super(system, args)
this.system = system
@@ -19,7 +19,7 @@ export class Anthropic extends Generic {
this.endpoint = endpoint
this.apiKey = apiKey
this.temperature = temperature
- this.max_tokens = max_tokens
+ this.maxTokens = maxTokens
}
getHeaders () {
@@ -35,7 +35,7 @@ export class Anthropic extends Generic {
model: this.model,
temperature: Number(this.temperature),
system: this.system,
- max_tokens: this.max_tokens,
+ maxTokens: this.maxTokens,
messages: [
{ role: "user", content: prompt }
]