Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ§‘β€πŸ’» refactor: Enhance Error Handling and Introduce Alternate Variables for Configuration #19

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Apr 3, 2024

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:

  1. 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.
  2. 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.
    • Example: https://example-resource.azure.openai.com.
    • Note: AZURE_OPENAI_ENDPOINT will work but RAG_AZURE_OPENAI_ENDPOINT will override it in order to not conflict with LibreChat setting.

@danny-avila danny-avila changed the title Azure πŸ§‘β€πŸ’» refactor: Enhance Error Handling and Introduce Alternate Variables for Configuration Apr 3, 2024
@danny-avila danny-avila merged commit 24d6b6d into main Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant