Skip to content

Commit dc64e12

Browse files
authored
remove unnecessary LM callback (#8098)
1 parent 7902158 commit dc64e12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dspy/clients/lm.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from dspy.clients.provider import Provider, TrainingJob
2020
from dspy.clients.utils_finetune import TrainDataFormat
2121
from dspy.dsp.utils.settings import settings
22-
from dspy.utils.callback import BaseCallback, with_callbacks
22+
from dspy.utils.callback import BaseCallback
2323

2424
from .base_lm import BaseLM
2525

@@ -96,7 +96,6 @@ def __init__(
9696
else:
9797
self.kwargs = dict(temperature=temperature, max_tokens=max_tokens, **kwargs)
9898

99-
@with_callbacks
10099
def forward(self, prompt=None, messages=None, **kwargs):
101100
# Build the request.
102101
cache = kwargs.pop("cache", self.cache)

0 commit comments

Comments
 (0)