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

Adding Gemini Api Integration #150

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ setup_llm_providers() {
else
update_or_add_env_var "ENABLE_AZURE" "false"
fi
#Gemini Configuartion
echo "To enable Gemini, you must have an Gemini API key."
read -p "Do you want to enable Gemini (y/n)? " enable_gemini
if [[ "$enable_gemini" == "y" ]]; then
read -p "Enter your Gemini API key: " gemini_api_key
if [ -z "$gemini_api_key" ]; then
echo "Error: Gemini API key is required."
echo "Gemini will not be enabled."
else
update_or_add_env_var "GEMINI_API_KEY" "$openai_api_key"
unaisshemim marked this conversation as resolved.
Show resolved Hide resolved
update_or_add_env_var "ENABLE_GEMINI" "true"
model_options+=("gemini/gemini-pro")
unaisshemim marked this conversation as resolved.
Show resolved Hide resolved
fi
else
update_or_add_env_var "ENABLE_OPENAI" "false"
unaisshemim marked this conversation as resolved.
Show resolved Hide resolved
fi

# Model Selection
if [ ${#model_options[@]} -eq 0 ]; then
Expand Down