DSPy: The framework for programming—not prompting—language models
Python
minor linter cleanup
Sri Vardhamanand40b43fdaa59
diff --git a/dsp/modules/gpt3.py b/dsp/modules/gpt3.pyindex 8eb24075a..1e2b45ce8 100644--- a/dsp/modules/gpt3.py+++ b/dsp/modules/gpt3.py@@ -72,7 +72,7 @@ class GPT3:def inspect_history(self, n: int = 1):"""Prints the last n prompts and their completions.- TODO: print the valid choice with all fields filled instead of the first+ TODO: print the valid choice that contains filled output field instead of the first"""last_prompt = Noneprinted = []@@ -92,7 +92,6 @@ class GPT3:print("\n\n\n")print(prompt, end="")self.print_green(choices[0]["text"], end="")-if len(choices) > 1:self.print_red(f" \t (and {len(choices)-1} other completions)", end="")print("\n\n\n")