Skip to content

Commit 8fdc619

Browse files
authored
refactor(core): don't use deprecated input_variables param in from_file (#33104)
Missed awhile back; causes warnings during tests
1 parent 729bfe8 commit 8fdc619

File tree

1 file changed

+2
-2
lines changed
  • libs/core/langchain_core/prompts

1 file changed

+2
-2
lines changed

libs/core/langchain_core/prompts/chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def from_template(
262262
def from_template_file(
263263
cls,
264264
template_file: Union[str, Path],
265-
input_variables: list[str],
265+
input_variables: list[str], # noqa: ARG003 # Deprecated
266266
**kwargs: Any,
267267
) -> Self:
268268
"""Create a class from a template file.
@@ -275,7 +275,7 @@ def from_template_file(
275275
Returns:
276276
A new instance of this class.
277277
"""
278-
prompt = PromptTemplate.from_file(template_file, input_variables)
278+
prompt = PromptTemplate.from_file(template_file)
279279
return cls(prompt=prompt, **kwargs)
280280

281281
@abstractmethod

0 commit comments

Comments
 (0)