Skip to content

[Bug] Exception raised when calling lm.inspect_history method #8315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iPersona opened this issue Jun 3, 2025 · 0 comments
Closed

[Bug] Exception raised when calling lm.inspect_history method #8315

iPersona opened this issue Jun 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@iPersona
Copy link
Contributor

iPersona commented Jun 3, 2025

What happened?

Exception raised when calling lm.inspect_history method

Traceback (most recent call last):
File "/Users/build/Downloads/dspy-issue/main.py", line 42, in
lm.inspect_history(n=1)
File "/Users/build/Downloads/dspy-issue/.venv/lib/python3.12/site-packages/dspy/clients/base_lm.py", line 136, in inspect_history
return inspect_history(self.history, n)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: inspect_history() takes from 0 to 1 positional arguments but 2 were given

Steps to reproduce

lm.inspect_history(n=1)

DSPy version

2.6.25

@iPersona iPersona added the bug Something isn't working label Jun 3, 2025
@okhat okhat closed this as completed Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants