diff --git a/test/components/generators/test_openai.py b/test/components/generators/test_openai.py index 047299b199..2b5e73d85c 100644 --- a/test/components/generators/test_openai.py +++ b/test/components/generators/test_openai.py @@ -326,10 +326,10 @@ def test_run_with_system_prompt(self): system_prompt="You answer in Portuguese, regardless of the language on which a question is asked", ) result = generator.run("Can you explain the Pitagoras therom?") - assert "teorema" in result["replies"][0] + assert "teorema" in result["replies"][0].lower() result = generator.run( "Can you explain the Pitagoras therom?", system_prompt="You answer in German, regardless of the language on which a question is asked.", ) - assert "Pythagoras" in result["replies"][0] + assert "pythagoras".lower() in result["replies"][0].lower()