mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 12:18:24 +00:00
fix flaky tests (#892)
This commit is contained in:
parent
a2b699dcd2
commit
1614c5f5fd
@ -124,7 +124,7 @@ class PromptTemplate(BasePromptTemplate, BaseModel):
|
|||||||
input_variables = {
|
input_variables = {
|
||||||
v for _, v, _, _ in Formatter().parse(template) if v is not None
|
v for _, v, _, _ in Formatter().parse(template) if v is not None
|
||||||
}
|
}
|
||||||
return cls(input_variables=list(input_variables), template=template)
|
return cls(input_variables=list(sorted(input_variables)), template=template)
|
||||||
|
|
||||||
|
|
||||||
# For backwards compatibility.
|
# For backwards compatibility.
|
||||||
|
Loading…
Reference in New Issue
Block a user