Fix Gemini API Key configuration (#362)

This commit is contained in:
Riccardo Schirone
2025-09-22 14:58:31 +02:00
committed by GitHub
parent 0d71570949
commit 7690b5d173
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -66,6 +66,7 @@ export AZURE_API_BASE="<disabled>"
export AZURE_API_KEY="<disabled>"
export OPENAI_API_KEY="<your-openai-api-key>"
export ANTHROPIC_API_KEY="<your-anthropic-api-key>"
# export GEMINI_API_KEY="<your-gemini-api-key>"
# LangFuse settings, instructing LLM-applications to log their LLM traces
# export LANGFUSE_ENABLED=true
+6 -1
View File
@@ -385,7 +385,12 @@ configure_simple_api_key() {
fi
if [ -n "$value" ]; then
portable_sed "s|.*export $var_name=.*|export $var_name=\"$value\"|" deployment/env
# Check if the export line exists anywhere in the file; if not, append it, else update it
if grep -q "export $var_name=" deployment/env; then
portable_sed "s|.*export $var_name=.*|export $var_name=\"$value\"|" deployment/env
else
echo "export $var_name=\"$value\"" >> deployment/env
fi
return 0
else
# Clear the key if skipped (set to empty string)