Skip to content

Commit

Permalink
Remove reference to serializer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cduggn committed Jul 24, 2023
1 parent 6c98e28 commit 0d2799b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prompts/chat_prompt_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ func (p ChatPromptTemplate) GetInputVariables() []string {
return inputVariables
}

func (p ChatPromptTemplate) Save(path string, serializer load.Serializer) error {
func (p ChatPromptTemplate) Save(path string) error {
if p.PartialVariables != nil {
return ErrPromptTemplateCannotBeSaved
}
err := serializer.ToFile(p, path)
err := load.ToFile(p, path)
if err != nil {
return err
}
Expand Down

0 comments on commit 0d2799b

Please sign in to comment.