test_prompt_validation.py 191 B

123456789
  1. import pytest
  2. from aphrodite import LLM
  3. def test_empty_prompt():
  4. llm = LLM(model="gpt2")
  5. with pytest.raises(ValueError, match='Prompt cannot be empty'):
  6. llm.generate([""])