Skip to content

Commit 7ab3313

Browse files
committed
chore: Add default fallback
1 parent d016923 commit 7ab3313

File tree

1 file changed

+1
-1
lines changed
  • agents_mcp_usage/basic_mcp/basic_mcp_use

1 file changed

+1
-1
lines changed

agents_mcp_usage/basic_mcp/basic_mcp_use/adk_mcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
load_dotenv()
1313

1414
# Set API key for Google AI API from environment variable
15-
os.environ["GOOGLE_API_KEY"] = os.getenv("GEMINI_API_KEY")
15+
os.environ["GOOGLE_API_KEY"] = os.getenv("GEMINI_API_KEY", "")
1616

1717
# Configure logging if LOGFIRE_TOKEN is set
1818
logfire.configure(send_to_logfire="if-token-present", service_name="adk-basic-mcp")

0 commit comments

Comments
 (0)