Skip to content

Commit

Permalink
modified: libs/core/langchain_core/prompts/prompt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahonanhin committed Dec 3, 2024
1 parent cfeb571 commit be78ba5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions libs/core/langchain_core/prompts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ def format(self, **kwargs: Any) -> str:

return formatted_string



@classmethod
def from_examples(
cls,
Expand Down Expand Up @@ -298,13 +296,6 @@ def from_template(
input_variables = get_template_variables(template, template_format)
_partial_variables = partial_variables or {}

if _partial_variables:
input_variables = [
var for var in input_variables if var not in _partial_variables
]
input_variables = get_template_variables(template, template_format)
_partial_variables = partial_variables or {}

if _partial_variables:
input_variables = [
var for var in input_variables if var not in _partial_variables
Expand Down

0 comments on commit be78ba5

Please sign in to comment.