Merge pull request #1639 from open-webui/dev

fix
This commit is contained in:
Timothy Jaeryang Baek 2024-04-20 20:53:29 -07:00 committed by GitHub
commit df7517f9c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,8 +117,8 @@ class RAGMiddleware(BaseHTTPMiddleware):
rag_app.state.RAG_EMBEDDING_ENGINE, rag_app.state.RAG_EMBEDDING_ENGINE,
rag_app.state.RAG_EMBEDDING_MODEL, rag_app.state.RAG_EMBEDDING_MODEL,
rag_app.state.sentence_transformer_ef, rag_app.state.sentence_transformer_ef,
rag_app.state.RAG_OPENAI_API_KEY, rag_app.state.OPENAI_API_KEY,
rag_app.state.RAG_OPENAI_API_BASE_URL, rag_app.state.OPENAI_API_BASE_URL,
) )
del data["docs"] del data["docs"]