From 098006636393fc3be5cced43cc8ea2ceeaefd2bd Mon Sep 17 00:00:00 2001 From: Andreas Feldl Date: Sun, 18 Aug 2024 12:46:47 +0200 Subject: [PATCH] fix conversion --- backend/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.py b/backend/config.py index 07ee06a58..b531d780a 100644 --- a/backend/config.py +++ b/backend/config.py @@ -1056,7 +1056,7 @@ RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE = ( RAG_EMBEDDING_OPENAI_BATCH_SIZE = PersistentConfig( "RAG_EMBEDDING_OPENAI_BATCH_SIZE", "rag.embedding_openai_batch_size", - os.environ.get("RAG_EMBEDDING_OPENAI_BATCH_SIZE", 1), + int(os.environ.get("RAG_EMBEDDING_OPENAI_BATCH_SIZE", "1")), ) RAG_RERANKING_MODEL = PersistentConfig(