async def test_embed_many_handles_exception(self, model):
        """Test that exceptions from the OpenAI client are propagated."""
        with patch.object(model._client.embeddings, 'create', new_callable=AsyncMock) as mock_create:
            mock_create.side_effect = Exception("OpenAI API error")

            with pytest.raises(Exception, match="OpenAI API error"):
                await model.embed_many(["Test text"])
Test that exceptions from the OpenAI client are propagated.
backend/tests/platform/embedding_models/test_openai_text2vec.py