DSPy: The framework for programming—not prompting—language models
Python
Fix spacing
dilara2e49def3289a
diff --git a/dspy/clients/anyscale.py b/dspy/clients/anyscale.pyindex 8c056e7b0..2c599ec7f 100644--- a/dspy/clients/anyscale.py+++ b/dspy/clients/anyscale.py@@ -9,7 +9,7 @@ from dspy.clients.finetune import (TrainingMethod,save_data,)-from dspy.clients.openai import openai_data_validation, check_message_lengths+from dspy.clients.openai import openai_data_validationtry:# AnyScale fine-tuning requires the following additional imports@@ -321,4 +321,4 @@ def copy_lora_weights(storage_uri, model_info, job_id):def read_jsonl(filename):with open(filename, "r") as f:- return [json.loads(line) for line in f]\ No newline at end of file+ return [json.loads(line) for line in f]diff --git a/dspy/predict/predict.py b/dspy/predict/predict.pyindex 31ad3e09b..fae26a1dc 100644--- a/dspy/predict/predict.py+++ b/dspy/predict/predict.py@@ -256,4 +256,4 @@ def v2_5_generate(lm, lm_kwargs, signature, demos, inputs, _parse_values=True):# # TODO: FIXME: Hmm, I guess expected behavior is that contexts can# affect execution. Well, we need to determine whether context dominates, __init__ demoninates, or forward dominates.# Generally, unless overwritten, we'd see n=None, temperature=None.-# That will eventually mean we have to learn them.+# That will eventually mean we have to learn them.\ No newline at end of filediff --git a/dspy/primitives/__init__.py b/dspy/primitives/__init__.pyindex 360461bd8..e66783716 100644--- a/dspy/primitives/__init__.py+++ b/dspy/primitives/__init__.py@@ -1,4 +1,5 @@from .assertions import *from .example import *from .prediction import *-from .program import *\ No newline at end of file+from .program import *+from .python_interpreter import *diff --git a/dspy/primitives/program.py b/dspy/primitives/program.pyindex 51eed2d87..fb6880245 100644--- a/dspy/primitives/program.py+++ b/dspy/primitives/program.py@@ -1,6 +1,5 @@import magicattr-from dsp.modules.lm import LMimport dspyfrom dspy.primitives.assertions import *from dspy.primitives.module import BaseModule@@ -89,4 +88,4 @@ class Module(BaseModule, metaclass=ProgramMeta):def set_attribute_by_name(obj, name, value):magicattr.set(obj, name, value)-Program = Module+Program = Module\ No newline at end of file