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 729bfe8 commit 8fdc619Copy full SHA for 8fdc619
libs/core/langchain_core/prompts/chat.py
@@ -262,7 +262,7 @@ def from_template(
262
def from_template_file(
263
cls,
264
template_file: Union[str, Path],
265
- input_variables: list[str],
+ input_variables: list[str], # noqa: ARG003 # Deprecated
266
**kwargs: Any,
267
) -> Self:
268
"""Create a class from a template file.
@@ -275,7 +275,7 @@ def from_template_file(
275
Returns:
276
A new instance of this class.
277
"""
278
- prompt = PromptTemplate.from_file(template_file, input_variables)
+ prompt = PromptTemplate.from_file(template_file)
279
return cls(prompt=prompt, **kwargs)
280
281
@abstractmethod
0 commit comments