From ea37bf8595b6ef3acebb2871b0ea49e16ae700c4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 07:33:02 +0000 Subject: [PATCH] Remove hardcoded API keys from tests Co-Authored-By: Joe Moura --- tests/test_gemini_html_template.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_gemini_html_template.py b/tests/test_gemini_html_template.py index 358b12bf9..1b1022141 100644 --- a/tests/test_gemini_html_template.py +++ b/tests/test_gemini_html_template.py @@ -10,7 +10,7 @@ from crewai.llm import LLM def test_gemini_empty_response_handling(): """Test that empty responses from Gemini models are handled correctly.""" # Create a mock LLM instance - llm = LLM(model="gemini/gemini-pro", api_key="fake-key") + llm = LLM(model="gemini/gemini-pro") # Create a mock response with empty content mock_response = MagicMock() @@ -33,7 +33,6 @@ def test_openrouter_gemini_empty_response_handling(): # Create a mock LLM instance with OpenRouter base URL llm = LLM( model="openrouter/google/gemini-pro", - api_key="fake-key", base_url="https://openrouter.ai/api/v1" )