fix flaky tests (#892)

makefile-update-1
Harrison Chase 1 year ago committed by GitHub
parent a2b699dcd2
commit 1614c5f5fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -124,7 +124,7 @@ class PromptTemplate(BasePromptTemplate, BaseModel):
input_variables = {
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.

Loading…
Cancel
Save