remove unneeded answerKey for Anthropic (#1100)

resolves #1096
This commit is contained in:
Timothy Carambat 2024-04-14 12:04:38 -07:00 committed by GitHub
parent af84b01482
commit 6fde5570b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@ const {
writeResponseChunk,
clientAbortedHandler,
} = require("../../helpers/chat/responses");
class AnthropicLLM {
constructor(embedder = null, modelPreference = null) {
if (!process.env.ANTHROPIC_API_KEY)
@ -28,7 +29,6 @@ class AnthropicLLM {
"INVALID ANTHROPIC SETUP. No embedding engine has been set. Go to instance settings and set up an embedding interface to use Anthropic as your LLM."
);
this.embedder = embedder;
this.answerKey = v4().split("-")[0];
this.defaultTemp = 0.7;
}