mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
Fix Gemini API Key configuration (#362)
This commit is contained in:
committed by
GitHub
parent
0d71570949
commit
7690b5d173
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user