Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Remove unnecessary comment in GPT3 class.

Tom Dörr4b48281ff439
diff --git a/dsp/modules/gpt3.py b/dsp/modules/gpt3.py
index ee3490873..54c0af012 100644
--- a/dsp/modules/gpt3.py
+++ b/dsp/modules/gpt3.py
@@ -185,7 +185,6 @@ class GPT3(LM):
if only_completed and len(completed_choices):
choices = completed_choices
- # if logprobs:
if kwargs.get("logprobs", False):
completions = [{'text': self._get_choice_text(c), 'logprobs': c["logprobs"]} for c in choices]
else: