Skip to content
Snippets Groups Projects
Unverified Commit 6fde5570 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

remove unneeded answerKey for Anthropic (#1100)

resolves #1096
parent af84b014
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ const { ...@@ -4,6 +4,7 @@ const {
writeResponseChunk, writeResponseChunk,
clientAbortedHandler, clientAbortedHandler,
} = require("../../helpers/chat/responses"); } = require("../../helpers/chat/responses");
class AnthropicLLM { class AnthropicLLM {
constructor(embedder = null, modelPreference = null) { constructor(embedder = null, modelPreference = null) {
if (!process.env.ANTHROPIC_API_KEY) if (!process.env.ANTHROPIC_API_KEY)
...@@ -28,7 +29,6 @@ class AnthropicLLM { ...@@ -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." "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.embedder = embedder;
this.answerKey = v4().split("-")[0];
this.defaultTemp = 0.7; this.defaultTemp = 0.7;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment