Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title: Add Support for Gemini API Keys
Description:
This pull request introduces support for using Gemini API keys as an alternative to OpenAI API keys in the RAG project. This change aims to make the project more accessible by allowing users to utilize free Gemini keys, thus eliminating the need for paid OpenAI keys.
Changes:
Replaced instances of OpenAI API key usage with Gemini API key integration.
Updated relevant parts of the codebase to ensure compatibility with Gemini API.
Modified documentation to include instructions for obtaining and using Gemini API keys.
Testing:
Conducted tests to verify that the modified code works seamlessly with Gemini API keys.
Ensured no functionality is lost when using the alternative API.
Benefits:
Expands accessibility for users, particularly those without the means to purchase OpenAI API keys.
Encourages broader experimentation and learning within the community.
Recommendation if gemini doesnot work for routing you can use cohere command r for free