We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1583e3 commit 0840f8aCopy full SHA for 0840f8a
dspy/clients/lm.py
@@ -65,8 +65,8 @@ def inspect_history(self, n: int = 1):
65
66
def copy(self, **kwargs):
67
"""Returns a copy of the language model with the same parameters."""
68
- kwargs = {**self.kwargs, **kwargs}
69
- return self.__class__(model=self.model, **kwargs)
+ kwargs = {**self.__dict__, **kwargs}
+ return self.__class__(**kwargs)
70
71
72
@functools.lru_cache(maxsize=None)
0 commit comments