mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #4701] [MERGED] fix: RAG with OpenAI embedding models and batch_size environment variable fails silently #8336
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4701
Author: @ndrsfel
Created: 8/18/2024
Status: ✅ Merged
Merged: 8/18/2024
Merged by: @tjbck
Base:
dev← Head:fix-rag-embedding-openai-batch-size-environment-variable📝 Commits (1)
0980066fix conversion📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/config.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
RAG with OpenAI embedding models using a custom
batch_sizevia environment variableRAG_EMBEDDING_OPENAI_BATCH_SIZEfails silently with errorbecause the
batch_sizevariable is stored as a Pythonstringin the config. I've included a fix to convert theRAG_EMBEDDING_OPENAI_BATCH_SIZEto an integer.Fixed
RAG_EMBEDDING_OPENAI_BATCH_SIZEfailes silently.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.