Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

fix inspect_history function calling issue (#8316)

iPersona8fa2465c8c2e
diff --git a/dspy/clients/base_lm.py b/dspy/clients/base_lm.py
index 1def8bb83..5247dda71 100644
--- a/dspy/clients/base_lm.py
+++ b/dspy/clients/base_lm.py
@@ -137,7 +137,7 @@ class BaseLM:
return new_instance
def inspect_history(self, n: int = 1):
- return inspect_history(self.history, n)
+ return pretty_print_history(self.history, n)
def update_global_history(self, entry):
if settings.disable_history: