This pull request introduces multiple enhancements and improvements to the codebase focusing on error handling mechanisms and configuration management for different OpenAI API services.
Key Changes:
Improved error handling in the /embed endpoint by refining the status messages and exception handling for file processing. These changes help in providing clearer feedback to the user in case of failures.
Updated the README.md and config.py files to include new variables to prevent usage of docker override as the default to separate credentials used between LibreChat and RAG API
New variables
RAG_OPENAI_API_KEY: The API key for OpenAI API Embeddings (if using default settings).
Note: OPENAI_API_KEY will work but RAG_OPENAI_API_KEY will override it in order to not conflict with LibreChat setting.
RAG_OPENAI_BASEURL: (Optional) The base URL for your OpenAI API Embeddings
RAG_OPENAI_PROXY: (Optional) Proxy for OpenAI API Embeddings
RAG_AZURE_OPENAI_API_KEY: (Optional) The API key for Azure OpenAI service.
Note: AZURE_OPENAI_API_KEY will work but RAG_AZURE_OPENAI_API_KEY will override it in order to not conflict with LibreChat setting.
RAG_AZURE_OPENAI_ENDPOINT: (Optional) The endpoint URL for Azure OpenAI service, including the resource.
Summary:
This pull request introduces multiple enhancements and improvements to the codebase focusing on error handling mechanisms and configuration management for different OpenAI API services.
Key Changes:
/embed
endpoint by refining the status messages and exception handling for file processing. These changes help in providing clearer feedback to the user in case of failures.README.md
andconfig.py
files to include new variables to prevent usage of docker override as the default to separate credentials used between LibreChat and RAG APINew variables
RAG_OPENAI_API_KEY
: The API key for OpenAI API Embeddings (if using default settings).OPENAI_API_KEY
will work butRAG_OPENAI_API_KEY
will override it in order to not conflict with LibreChat setting.RAG_OPENAI_BASEURL
: (Optional) The base URL for your OpenAI API EmbeddingsRAG_OPENAI_PROXY
: (Optional) Proxy for OpenAI API EmbeddingsRAG_AZURE_OPENAI_API_KEY
: (Optional) The API key for Azure OpenAI service.AZURE_OPENAI_API_KEY
will work butRAG_AZURE_OPENAI_API_KEY
will override it in order to not conflict with LibreChat setting.RAG_AZURE_OPENAI_ENDPOINT
: (Optional) The endpoint URL for Azure OpenAI service, including the resource.https://example-resource.azure.openai.com
.AZURE_OPENAI_ENDPOINT
will work butRAG_AZURE_OPENAI_ENDPOINT
will override it in order to not conflict with LibreChat setting.