From c216bea031e8e44b41705c1475adcd213b2997b3 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 25 Jun 2023 10:51:45 +0700 Subject: [PATCH] Update app.py --- application/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/app.py b/application/app.py index 7f840303..209fcf6d 100644 --- a/application/app.py +++ b/application/app.py @@ -43,7 +43,10 @@ from worker import ingest_worker # os.environ["LANGCHAIN_HANDLER"] = "langchain" logger = logging.getLogger(__name__) -gpt_model = 'gpt-3.5-turbo' # gpt-4 +if settings.LLM_NAME == "gpt4": + gpt_model = 'gpt-4' +else: + gpt_model = 'gpt-3.5-turbo' if settings.LLM_NAME == "manifest": from manifest import Manifest