Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmoneygithub authored Jan 9, 2025
1 parent 238e312 commit e35a9cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dspy/predict/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def forward(self, **kwargs):

import dspy
adapter = dspy.settings.adapter or dspy.ChatAdapter()
tools = kwawrgs.pop("tools", None)
config["tools"] = tools
completions = adapter(lm, lm_kwargs=config, signature=signature, demos=demos, inputs=kwargs)

pred = Prediction.from_completions(completions, signature=signature)
Expand Down

0 comments on commit e35a9cc

Please sign in to comment.