diff --git a/server/utils/AiProviders/anthropic/index.js b/server/utils/AiProviders/anthropic/index.js index 24a07f6e5e04d4fcd61c479c2ecb6fe016ded1f2..5e8e40a307c8bdf0c096ef7988747c4855164e37 100644 --- a/server/utils/AiProviders/anthropic/index.js +++ b/server/utils/AiProviders/anthropic/index.js @@ -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; }