We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
input_variables
from_file
1 parent 8fdc619 commit 3a6046bCopy full SHA for 3a6046b
libs/core/tests/unit_tests/prompts/test_prompt.py
@@ -354,8 +354,7 @@ def test_prompt_invalid_template_format() -> None:
354
def test_prompt_from_file() -> None:
355
"""Test prompt can be successfully constructed from a file."""
356
template_file = "tests/unit_tests/data/prompt_file.txt"
357
- input_variables = ["question"]
358
- prompt = PromptTemplate.from_file(template_file, input_variables)
+ prompt = PromptTemplate.from_file(template_file)
359
assert prompt.template == "Question: {question}\nAnswer:"
360
361
0 commit comments