mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
Merge pull request #4701 from ndrsfel/fix-rag-embedding-openai-batch-size-environment-variable
fix: RAG with OpenAI embedding models and batch_size environment variable fails silently
This commit is contained in:
commit
079f37a2d6
@ -1055,7 +1055,7 @@ RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE = (
|
|||||||
RAG_EMBEDDING_OPENAI_BATCH_SIZE = PersistentConfig(
|
RAG_EMBEDDING_OPENAI_BATCH_SIZE = PersistentConfig(
|
||||||
"RAG_EMBEDDING_OPENAI_BATCH_SIZE",
|
"RAG_EMBEDDING_OPENAI_BATCH_SIZE",
|
||||||
"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(
|
RAG_RERANKING_MODEL = PersistentConfig(
|
||||||
|
Loading…
Reference in New Issue
Block a user