Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dspy/clients/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from dspy.clients.provider import Provider, TrainingJob
from dspy.clients.utils_finetune import TrainDataFormat
from dspy.dsp.utils.settings import settings
from dspy.utils.callback import BaseCallback, with_callbacks
from dspy.utils.callback import BaseCallback

from .base_lm import BaseLM

Expand Down Expand Up @@ -96,7 +96,6 @@ def __init__(
else:
self.kwargs = dict(temperature=temperature, max_tokens=max_tokens, **kwargs)

@with_callbacks
def forward(self, prompt=None, messages=None, **kwargs):
# Build the request.
cache = kwargs.pop("cache", self.cache)
Expand Down