From 91d74379010011d78709b7264b9d741308960ae4 Mon Sep 17 00:00:00 2001 From: DynamicApproach Date: Thu, 19 Sep 2024 11:28:00 -0400 Subject: [PATCH] fix --- components/OpenAIInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/OpenAIInput.tsx b/components/OpenAIInput.tsx index 49de30d..d894ff4 100644 --- a/components/OpenAIInput.tsx +++ b/components/OpenAIInput.tsx @@ -12,7 +12,7 @@ import { HfInference } from "@huggingface/inference"; import { initGA } from "utils/ana"; import { logEvent } from "utils/ana"; const NEXT_PUBLIC_Hf = new HfInference(process.env.HUGGINGFACE_API_KEY); -const MAX_TOKENS_ALLOWED = 8092; // or any other value +const MAX_TOKENS_ALLOWED = 4096; const NEXT_PUBLIC_deploymentKey = process.env.DEPLOYMENT_KEY;